Merge pull request #234 from multiformats/add-sha2-family

Add missing variations of sha2
This commit is contained in:
Eric Myhre 2021-09-30 13:40:42 +02:00 committed by GitHub
commit 31acf0bc7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,7 @@ keccak-256, multihash, 0x1b, draft,
keccak-384, multihash, 0x1c, draft,
keccak-512, multihash, 0x1d, draft,
blake3, multihash, 0x1e, draft, BLAKE3 has a default 32 byte output length. The maximum length is (2^64)-1 bytes.
sha2-384, multihash, 0x20, permanent, aka SHA-384; as specified by FIPS 180-4.
dccp, multiaddr, 0x21, draft,
murmur3-128, multihash, 0x22, draft,
murmur3-32, multihash, 0x23, draft,
@ -128,6 +129,9 @@ libp2p-relay-rsvp, libp2p, 0x0302, permanent, libp2
car-index-sorted, serialization, 0x0400, draft, CARv2 IndexSorted index format
car-multihash-index-sorted, serialization, 0x0401, draft, CARv2 MultihashIndexSorted index format
sha2-256-trunc254-padded, multihash, 0x1012, permanent, SHA2-256 with the two most significant bits from the last byte zeroed (as via a mask with 0b00111111) - used for proving trees as in Filecoin
sha2-224, multihash, 0x1013, permanent, aka SHA-224; as specified by FIPS 180-4.
sha2-512-224, multihash, 0x1014, permanent, aka SHA-512/224; as specified by FIPS 180-4.
sha2-512-256, multihash, 0x1015, permanent, aka SHA-512/256; as specified by FIPS 180-4.
ripemd-128, multihash, 0x1052, draft,
ripemd-160, multihash, 0x1053, draft,
ripemd-256, multihash, 0x1054, draft,

1 name tag code status description
19 keccak-384 multihash 0x1c draft
20 keccak-512 multihash 0x1d draft
21 blake3 multihash 0x1e draft BLAKE3 has a default 32 byte output length. The maximum length is (2^64)-1 bytes.
22 sha2-384 multihash 0x20 permanent aka SHA-384; as specified by FIPS 180-4.
23 dccp multiaddr 0x21 draft
24 murmur3-128 multihash 0x22 draft
25 murmur3-32 multihash 0x23 draft
129 car-index-sorted serialization 0x0400 draft CARv2 IndexSorted index format
130 car-multihash-index-sorted serialization 0x0401 draft CARv2 MultihashIndexSorted index format
131 sha2-256-trunc254-padded multihash 0x1012 permanent SHA2-256 with the two most significant bits from the last byte zeroed (as via a mask with 0b00111111) - used for proving trees as in Filecoin
132 sha2-224 multihash 0x1013 permanent aka SHA-224; as specified by FIPS 180-4.
133 sha2-512-224 multihash 0x1014 permanent aka SHA-512/224; as specified by FIPS 180-4.
134 sha2-512-256 multihash 0x1015 permanent aka SHA-512/256; as specified by FIPS 180-4.
135 ripemd-128 multihash 0x1052 draft
136 ripemd-160 multihash 0x1053 draft
137 ripemd-256 multihash 0x1054 draft