switch blake3 to a 1 byte code

It's likely secure and people are also likely to use it in content addresses where size really matters.
This commit is contained in:
Steven Allen 2020-01-27 18:28:12 -08:00 committed by GitHub
parent 8b8161834b
commit 713350946b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@ keccak-224, multihash, 0x1a, keccak has varia
keccak-256, multihash, 0x1b,
keccak-384, multihash, 0x1c,
keccak-512, multihash, 0x1d,
blake3, multihash, 0x1e, BLAKE3 has a default 32 byte output length. The maximum length is (2^64)-1 bytes.
dccp, multiaddr, 0x21,
murmur3-128, multihash, 0x22,
murmur3-32, multihash, 0x23,
@ -99,7 +100,6 @@ p2p-websocket-star, multiaddr, 0x01df,
http, multiaddr, 0x01e0,
json, serialization, 0x0200, JSON (UTF-8-encoded)
messagepack, serialization, 0x0201, MessagePack
blake3, multihash, 0x0202, BLAKE3 has a default 32 byte output length. The maximum length is (2^64)-1 bytes.
x11, multihash, 0x1100,
sm3-256, multihash, 0x534d,
blake2b-8, multihash, 0xb201, Blake2b consists of 64 output lengths that give different hashes

1 name tag code description
15 keccak-256 multihash 0x1b
16 keccak-384 multihash 0x1c
17 keccak-512 multihash 0x1d
18 blake3 multihash 0x1e BLAKE3 has a default 32 byte output length. The maximum length is (2^64)-1 bytes.
19 dccp multiaddr 0x21
20 murmur3-128 multihash 0x22
21 murmur3-32 multihash 0x23
100 http multiaddr 0x01e0
101 json serialization 0x0200 JSON (UTF-8-encoded)
102 messagepack serialization 0x0201 MessagePack
blake3 multihash 0x0202 BLAKE3 has a default 32 byte output length. The maximum length is (2^64)-1 bytes.
103 x11 multihash 0x1100
104 sm3-256 multihash 0x534d
105 blake2b-8 multihash 0xb201 Blake2b consists of 64 output lengths that give different hashes