TronSigner.fromKeyBytes constructor

TronSigner.fromKeyBytes(
  1. List<int> keyBytes
)

Factory method to create a TronSigner from a byte representation of a private key.

Implementation

factory TronSigner.fromKeyBytes(List<int> keyBytes) {
  final signingKey =
      ECDSAPrivateKey.fromBytes(keyBytes, ETHSignerConst.secp256);
  return TronSigner._(EcdsaSigningKey(signingKey));
}