ivilata / pymultihash

Python implementation of the multihash specification
19 stars 8 forks source link

Correct codes for blake2 #5

Open Stebalien opened 5 years ago

Stebalien commented 5 years ago

See: https://github.com/multiformats/multicodec/pull/25

Basically, we had to change the codes as blake2{b,s} are really hash function families, not hash functions.

ivilata commented 5 years ago

I see there are a bunch of values to set, I can either go the boring way and add all 63 entries, or add some loops to do it programmatically with partials on blake2 functions. I'd probably need to use the Enum('<NAME>', <MAPPING>) syntax.