table: update blake3

* Renamed from blake3-256 to blake3. We only need a single code because shorter hashes are just prefixes of longer hashes.
* Changed the code to 0x0202. This will turn into a two byte code, the previous code was 3 bytes when encoded. The other blake algorithms are in the 3 byte range because we needed _many_ codes.
This commit is contained in:
Steven Allen 2020-01-27 17:53:46 -08:00 committed by GitHub
parent b176bbeae7
commit 8b8161834b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,6 +99,7 @@ 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
@ -197,7 +198,6 @@ blake2s-232, multihash, 0xb25d,
blake2s-240, multihash, 0xb25e,
blake2s-248, multihash, 0xb25f,
blake2s-256, multihash, 0xb260,
blake3-256, multihash, 0xb261, BLAKE3 has a default 32 byte output length. The maximum length is (2^64)-1 bytes.
skein256-8, multihash, 0xb301, Skein256 consists of 32 output lengths that give different hashes
skein256-16, multihash, 0xb302,
skein256-24, multihash, 0xb303,

1 name tag code description
99 http multiaddr 0x01e0
100 json serialization 0x0200 JSON (UTF-8-encoded)
101 messagepack serialization 0x0201 MessagePack
102 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
198 blake2s-240 multihash 0xb25e
199 blake2s-248 multihash 0xb25f
200 blake2s-256 multihash 0xb260
blake3-256 multihash 0xb261 BLAKE3 has a default 32 byte output length. The maximum length is (2^64)-1 bytes.
201 skein256-8 multihash 0xb301 Skein256 consists of 32 output lengths that give different hashes
202 skein256-16 multihash 0xb302
203 skein256-24 multihash 0xb303