cmdruid / tapscript

A humble library for working with Tapscript and Bitcoin Transactions.
https://www.npmjs.com/package/@cmdcode/tapscript
Creative Commons Zero v1.0 Universal
188 stars 49 forks source link

Sign transaction error #6

Closed viettienbk closed 1 year ago

viettienbk commented 1 year ago

My code in Typescript const init_sig = Signer.taproot.sign(seckey, init_redeemtx, 0, { extension: init_leaf }); but it throws error: throw new Error('crypto.getRandomValues must be defined');

viettienbk commented 1 year ago

Same with https://github.com/cmdruid/tapscript/issues/2