cryptocoinjs / bs58

Base58 encoding/decoding for Bitcoin
http://cryptocoinjs.com/modules/misc/bs58/
MIT License
216 stars 48 forks source link

Uncaught TypeError: Expected Buffer #41

Closed pundoo closed 4 years ago

pundoo commented 4 years ago

on api example, it says :

input must be a Buffer or an Array

but gives error when running :

bs58.encode(new Uint8Array([1, 2])); or

bs58.encode([1, 2]);

bundled using browserify and running on chrome (latest version)

junderw commented 4 years ago

This was introduced in base-x@3.0.5 and was a breaking change from 3.0.4, so anyone that re-installed or re-packed would get errors if they didn't use Buffers.

https://github.com/cryptocoinjs/base-x/issues

junderw commented 4 years ago

Closing this issue for the other:

https://github.com/cryptocoinjs/base-x/issues/63