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