AddrKeyValidator class

Class for address utility functions.

Constructors

AddrKeyValidator()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

getAddrArg<T extends Object?>(T? obj, String argName) → T
Get a required address argument, or throw if missing.
getConfigArg<T extends Object?>(T? obj, String argName) → T
Get a required config argument, or throw if missing.
hasValidPubkeyBytes(List<int> pubKey, CryptoKeyType type) → bool
Whether bytes form a valid public key for the given curve.
validateAndGetBlsG1PublicKey(List<int> pubKey) → IPublicKey<IVerifiyingParams>
Validate and get a BLS12-381 G1 public key.
validateAndGetEd25519Blake2bKeyBytes(List<int> pubKey) → BuBytes
Validate and get an ed25519-blake2b public key.
validateAndGetEd25519KeyBytes(List<int> pubKey) → BuBytes
Validate and get compressed ed25519 public key bytes.
validateAndGetEd25519MoneroKeyBytes(List<int> pubKey) → BuBytes
Validate and get an ed25519-monero public key.
validateAndGetEd25519PubKey(List<int> pubKey, {CryptoKeyType type = CryptoKeyType.ed25519}) → IPublicKey<IVerifiyingParams>
Validate and get an ed25519 public key.
validateAndGetMLDSA44PubKey(List<int> pubKey) → IPublicKey<IVerifiyingParams>
Validate and get an ML-DSA-44 public key.
validateAndGetNist256p1Key(List<int> pubKey) → IPublicKey<IVerifiyingParams>
Validate and get a nist256p1 public key.
validateAndGetSecp256k1Key(List<int> pubKey) → IPublicKey<IVerifiyingParams>
Validate and get a secp256k1 public key.
validateAndGetSecp256k1OrEd25519(List<int> pubKey) → IPublicKey<IVerifiyingParams>
Validate and get a secp256k1 or Ed25519 public key.
validateAndGetSr25519Key(List<int> pubKey) → IPublicKey<IVerifiyingParams>
Validate and get an sr25519 public key.