In-memory single key implementation for Bitcoin transaction signing.
// Create from hex stringconst key = SingleKey.fromHex('your_private_key_hex');// Create from raw bytesconst key = SingleKey.fromPrivateKey(privateKeyBytes);// Sign a transactionconst signedTx = await key.sign(transaction); Copy
// Create from hex stringconst key = SingleKey.fromHex('your_private_key_hex');// Create from raw bytesconst key = SingleKey.fromPrivateKey(privateKeyBytes);// Sign a transactionconst signedTx = await key.sign(transaction);
Optional
Static
In-memory single key implementation for Bitcoin transaction signing.
Example