bitcoinjs / tiny-secp256k1

A tiny secp256k1 native/JS wrapper
MIT License
86 stars 55 forks source link

validate type can be typed array or buffer #137

Open bucko13 opened 2 months ago

bucko13 commented 2 months ago

Not sure if this is desirable and not really clear to me how tiny-secp256k1 is validating in other environments, but this resolves #136 for me. At some level though it makes sense that if bitcoinjs-lib passes the ecc library a Buffer but it's expecting explicitly an Uint8Array that that might be a problem.