w3c-ccg / multihash

An IETF Internet Draft for the Multihash data format
https://w3c-ccg.github.io/multihash/index.xml
Other
10 stars 8 forks source link

Add multihash to the NI hash registry #17

Closed IS4Code closed 2 years ago

IS4Code commented 2 years ago

This adds multihash to the registry for the ni: and nih: URI schemes, allowing its use in general URIs referencing objects by their hash.

The mh name was chosen for consistency with the other registration in the HTTP Digest Algorithm Values registry.

The ID of 49 is taken from the identification of multihash itself in the multicodec table, for possible use in the binary format specified by RFC 6920. Sharing the identifier is not necessary in itself, but it ensures that it is not confused with an actual existing multihash identifier in the binary representation.

It should be noted that the digest value in ni: is encoded using the base64url encoding, with no = padding characters.