SubstrateEcdsaVerifier.fromKeyBytes constructor
Implementation
factory SubstrateEcdsaVerifier.fromKeyBytes(List<int> keyBytes) {
final point = ProjectiveECCPoint.fromBytes(
curve: CryptoSignerConst.generatorSecp256k1.curve,
data: keyBytes,
order: null,
);
final verifyingKey = ECDSAPublicKey(
CryptoSignerConst.generatorSecp256k1,
point,
);
return SubstrateEcdsaVerifier._(ECDSAVerifyKey(verifyingKey));
}