Secp256k1PrivateKeyEcdsa.fromBytes constructor

Secp256k1PrivateKeyEcdsa.fromBytes(
  1. List<int> keyBytes
)

Factory method for creating a Secp256k1PrivateKeyEcdsa from a byte array.

Implementation

factory Secp256k1PrivateKeyEcdsa.fromBytes(List<int> keyBytes) {
  final prv = ECDSAPrivateKey.fromBytes(keyBytes, Curves.generatorSecp256k1);
  return Secp256k1PrivateKeyEcdsa._(prv);
}