Skip to content

Commit 40e5cb1

Browse files
authored
Add murmur3-x64-64 & murmur3-x64-128 (#43)
1 parent 7be8ec0 commit 40e5cb1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/io/ipfs/multihash/Multihash.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
public class Multihash {
1111
public static final int MAX_IDENTITY_HASH_LENGTH = 1024*1024;
1212

13+
// From https://github.com/multiformats/multicodec/blob/master/table.csv
1314
public enum Type {
1415
id(0, -1),
1516
md5(0xd5, 16),
@@ -126,7 +127,11 @@ public enum Type {
126127
blake2s_232(0xb25d, 29),
127128
blake2s_240(0xb25e, 30),
128129
blake2s_248(0xb25f, 31),
129-
blake2s_256(0xb260, 32);
130+
blake2s_256(0xb260, 32),
131+
132+
// Murmur
133+
murmur3_x64_64(0x22, 8),
134+
murmur3_x64_128(0x1022, 16); // DRAFT status
130135

131136
public final int index, length;
132137

0 commit comments

Comments
 (0)