IPublicKey<VERIFYPARAMS extends IVerifiyingParams> class abstract

An abstract class representing a generic public key interface for different elliptic curve types.

Inheritance
Implemented types
Implementers

Constructors

IPublicKey()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → CryptoKeyType
Get the elliptic curve type associated with the public key.
no setteroverride
variables → List
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBytes({CryptoKeyEncoding mode = CryptoKeyEncoding.base}) → BuBytes
override
toString() → String
A string representation of this object.
inherited
verify(VERIFYPARAMS params) → bool
inherited

Operators

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

Static Methods

fromBytes(List<int> keybytes, CryptoKeyType type) → IPublicKey<IVerifiyingParams>
Factory method for creating an IPublicKey instance from a byte array and an elliptic curve type.
fromHex(String keyHex, CryptoKeyType type) → IPublicKey<IVerifiyingParams>
isValidBytes(List<int> keyBytes, CryptoKeyType type) → bool
Static method to check the validity of a byte array as a public key for a specific elliptic curve type.
isValidKeyEncoding(List<int> keyBytes, CryptoKeyType type, CryptoKeyEncoding encoding) → bool
Checks whether keyBytes is a valid public key of the given type when interpreted with the given encoding.