CosmosNist256p1Verifier.fromKeyBytes constructor
Factory method to create a CosmosNist256p1Verifier from a byte representation of a public key.
Implementation
factory CosmosNist256p1Verifier.fromKeyBytes(List<int> keyBytes) {
final point = ProjectiveECCPoint.fromBytes(
curve: _NistSignerConst.nist256256.curve, data: keyBytes, order: null);
final verifyingKey = ECDSAPublicKey(_NistSignerConst.nist256256, point);
return CosmosNist256p1Verifier._(ECDSAVerifyKey(verifyingKey));
}