sign method
Signs a transaction digest using the private key.
Optionally, hashMessage
can be set to false to skip hashing the message before signing.
Implementation
ETHSignature sign(List<int> transactionDigest, {bool hashMessage = true}) {
final ethsigner = ETHSigner.fromKeyBytes(toBytes());
final sign = ethsigner.sign(transactionDigest, hashMessage: hashMessage);
return sign;
}