Nist256p1PublicKey.fromBytes constructor
Factory method for creating a Nist256p1PublicKey from a byte array.
Implementation
factory Nist256p1PublicKey.fromBytes(List<int> keyBytes) {
final point = ProjectiveECCPoint.fromBytes(
curve: Curves.curve256, data: keyBytes, order: null);
final pub = ECDSAPublicKey(Curves.generator256, point);
return Nist256p1PublicKey._(pub);
}