IPublicKey class abstract

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

Implementers

Constructors

IPublicKey.fromBytes(List<int> keybytes, EllipticCurveTypes type)
Factory method for creating an IPublicKey instance from a byte array and an elliptic curve type.
factory
IPublicKey.fromHex(String keyHex, EllipticCurveTypes type)
factory

Properties

compressed List<int>
Get the compressed form of the public key as a byte array.
no setter
curve EllipticCurveTypes
Get the elliptic curve type associated with the public key.
no setter
hashCode int
The hash code for this object.
no setterinherited
length int
Get the compressed length of the public key in bytes.
no setter
point AbstractPoint
Get the abstract point representation of the public key.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uncompressed List<int>
Get the uncompressed form of the public key as a byte array.
no setter
uncompressedLength int
Get the length of the uncompressed public key in bytes.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toHex({bool withPrefix = true, bool lowerCase = true, String? prefix = ""}) String
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

isValidBytes(List<int> keyBytes, EllipticCurveTypes type) bool
Static method to check the validity of a byte array as a public key for a specific elliptic curve type.