multiformats / js-multihashing

Use all the functions in multihash.
MIT License
11 stars 18 forks source link

Split up createHash into two functions for name and code. #28

Open garrensmith opened 6 years ago

garrensmith commented 6 years ago

Currently mh.createHash can accept a hash code or a hash name. This can be confusing for consumers of the library. It would be better to break that up into two functions. Possibly mh.createHashFromCode and mh.createHashFromName.