Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

Commit 05ac4b3

Browse files
committed
use new SHA-3 function names and codes (see multiformats/multihash#12)
1 parent 9a688ee commit 05ac4b3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

multihash.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ class Func(Enum):
2424
sha1 = 0x11
2525
sha2_256 = 0x12
2626
sha2_512 = 0x13
27-
sha3 = 0x14
27+
# See jbenet/multihash#12 for new SHA-3 function names and codes.
28+
sha3_512 = 0x14
29+
sha3_384 = 0x15
30+
sha3_256 = 0x16
31+
sha3_224 = 0x17
32+
shake_128 = 0x18
33+
shake_256 = 0x19
2834
blake2b = 0x40
2935
blake2s = 0x41
3036

@@ -64,7 +70,6 @@ class Multihash(namedtuple('Multihash', 'func length digest')):
6470
Traceback (most recent call last):
6571
...
6672
ValueError: ('invalid hash function code', 1234)
67-
6873
"""
6974
__slots__ = ()
7075

0 commit comments

Comments
 (0)