bitcoinjs / bip32

A BIP32 compatible library.
MIT License
177 stars 127 forks source link

toWIF failed in browser? #86

Closed guotie closed 2 months ago

guotie commented 7 months ago

next.js 14.1

Uncaught TypeError: Cannot read properties of undefined (reading 'call')
    at Hash.CipherBase (index.js:7:15)
    at new Hash (browser.js:8:10)
    at createHash (browser.js:23:12)
    at sha256x2 (index.js:6:15)
    at Object.encode (base.js:7:24)
    at Object.encode (index.js:38:55)
    at BIP32.toWIF (bip32.js:151:24)
    at generateBTCAddress (addr.ts:90:35)
    at generateAddress (BTCAddress.tsx:11:36)
housenkui commented 2 months ago

me too. who can fix the bug?

junderw commented 2 months ago

4.0.0 no longer uses create-hash at all.