validateAndGetEd25519PubKey static method
IPublicKey<IVerifiyingParams>
validateAndGetEd25519PubKey(
- List<
int> pubKey, { - CryptoKeyType type = CryptoKeyType.ed25519,
Validate and get an ed25519 public key.
Implementation
static IPublicKey validateAndGetEd25519PubKey(
List<int> pubKey, {
CryptoKeyType type = CryptoKeyType.ed25519,
}) {
if (!type.isED25519()) {
throw CoreErrors.missingOrInvalidAddressArguments(
reason: "Ivalid ED25519 key type.",
);
}
return _validateAndGetGenericKey(pubKey, type);
}