sign method

ETHSignature sign(
  1. List<int> transactionDigest, {
  2. bool hashMessage = true,
})

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;
}