Nist256p1PrivateKey.fromBytes constructor

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

Factory method for creating a Nist256p1PrivateKey from a byte array.

Implementation

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