Error with Bitcore-lib signing transaction

260 Views Asked by At

I'm trying to sign the transaction, but this error occured. I'm using testnet (I have tried to use fromWIF secret, secret via constuctor, secret like a string)

Error trace

1

There are 1 best solutions below

0
On

window.Buffer = require("buffer").Buffer;

And

node: { Buffer: true, }, (webpack.config.js)