PrivateKeySigner constructor
Implementation
PrivateKeySigner(this.privateKey, this.chainId) {
if (privateKey.length != 32) {
throw ArgumentError('Private key must be 32 bytes');
}
_address = EthereumAddress.fromPublicKey(
Secp256k1.getPublicKey(privateKey),
Keccak256.hash,
);
}