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

Commit

Permalink
use new SHA-3 function names and codes (see multiformats/multihash#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivilata committed Jan 19, 2016
1 parent 9a688ee commit 05ac4b3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions multihash.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ class Func(Enum):
sha1 = 0x11
sha2_256 = 0x12
sha2_512 = 0x13
sha3 = 0x14
# See jbenet/multihash#12 for new SHA-3 function names and codes.
sha3_512 = 0x14
sha3_384 = 0x15
sha3_256 = 0x16
sha3_224 = 0x17
shake_128 = 0x18
shake_256 = 0x19
blake2b = 0x40
blake2s = 0x41

Expand Down Expand Up @@ -64,7 +70,6 @@ class Multihash(namedtuple('Multihash', 'func length digest')):
Traceback (most recent call last):
...
ValueError: ('invalid hash function code', 1234)
"""
__slots__ = ()

Expand Down

0 comments on commit 05ac4b3

Please sign in to comment.