URI Formats
UMSH defines URI forms for nodes, channels, and CoAP resources.
Node URIs
Nodes are identified by their 32-byte public key encoded in Base58.
Example:
umsh:n:HJC9DJaaQEn88tAzbMM7BrYbsepNEB69RK1gZiKEYCPp
Node identity information may optionally be appended after a colon, encoded in a suitable representation of the identity structure and optional signature.
Example:
umsh:n:HJC9DJaaQEn88tAzbMM7BrYbsepNEB69RK1gZiKEYCPp:Rgx5U993cN52iHc9rPEFPpLTB66o2JLaDvSpCxmhPdReNd3QtrYcyrACdWV89L1xfZPJz4rZGeHX9BypGtDDYJXbDrWKJZixp9A8d3qcDNFq
This allows a node identity bundle to be embedded in a QR code.
Channel URIs
Internally, channels are identified by a 32-byte shared key.
Example direct-key URI:
umsh:ck:5BFn8YGKJ6pZR4qV3tW7mNhDrXsCxEaL9kUv2wAjT8bP
Additional metadata may be attached as URI parameters:
umsh:ck:5BFn8YGKJ6pZR4qV3tW7mNhDrXsCxEaL9kUv2wAjT8bP?n=MyPrivateChannel;mh=6;r=Eugine
Where, for example:
n= channel namemh= recommended maximum flood hopsr= recommended region
A channel may also be identified by a string from which the channel key is derived:
umsh:cs:Public
CoAP-over-UMSH URIs
CoAP resources on a node use the coap-umsh scheme, with the node public key as the authority component.
Example:
coap-umsh://HJC9DJaaQEn88tAzbMM7BrYbsepNEB69RK1gZiKEYCPp/data/1