The descriptors spec mentions multihash+base58 as an example of an algorithm that is not registered. I'm interested to use multihashes in application/vnd.oci.image.manifest.v1+json, and to pull tags by multihash digest from distribution.
Multihashes encode the algorithm in the digest, so multihash+base58 itself isn't sufficient to generate digests (FromReader, FromBytes, FromString) or to return the size of the hash. Perhaps multihash+base58:encoded are transformed to its respective algorithm:encoded for validation / verifying purposes.
I'm curious to hear thoughts about supporting multihash (in or out of package) in a way that projects like containerd and distribution can consume them.
The descriptors spec mentions
multihash+base58as an example of analgorithmthat is not registered. I'm interested to use multihashes inapplication/vnd.oci.image.manifest.v1+json, and to pull tags by multihash digest from distribution.Multihashes encode the algorithm in the digest, so
multihash+base58itself isn't sufficient to generate digests (FromReader,FromBytes,FromString) or to return the size of the hash. Perhapsmultihash+base58:encodedare transformed to its respectivealgorithm:encodedfor validation / verifying purposes.I'm curious to hear thoughts about supporting multihash (in or out of package) in a way that projects like containerd and distribution can consume them.