BitcoinSigner.fromKeyBytes constructor

BitcoinSigner.fromKeyBytes(
  1. List<int> privateKeyBytes
)

Factory constructor for creating a BitcoinSigner from private key bytes.

Implementation

factory BitcoinSigner.fromKeyBytes(List<int> privateKeyBytes) {
  final privateKey = ECDSAPrivateKey.fromBytes(
      privateKeyBytes, BitcoinSignerUtils._generator);
  return BitcoinSigner._(EcdsaSigningKey(privateKey));
}