CosmosNist256p1Signer.fromKeyBytes constructor

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

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

Implementation

factory CosmosNist256p1Signer.fromKeyBytes(List<int> keyBytes) {
  final signingKey =
      ECDSAPrivateKey.fromBytes(keyBytes, _NistSignerConst.nist256256);
  return CosmosNist256p1Signer._(EcdsaSigningKey(signingKey));
}