BaseEd25519PublicKey class abstract
Base class for an ed25519-family public key.
The key is stored as immutable canonical base-encoding bytes; the live point is parsed once on first use (compute paths), while carry, compare and serialize paths use keyBytes directly with no conversions.
- Inheritance
-
- Object
- IEd25519VerificationKey
- BaseEd25519PublicKey
- Implemented types
- Mixed-in types
- Implementers
Constructors
- BaseEd25519PublicKey(BuBytes keyBytes)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- keyBytes → BuBytes
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → CryptoKeyType
-
no setteroverride
- variables → List
-
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBip32PublicKeyBytes(
) → BuBytes -
toBytes(
{CryptoKeyEncoding mode = CryptoKeyEncoding.base}) → BuBytes -
override
-
toDer(
) → BuBytes -
toPoint(
) → EdwardsLimbPoint -
toString(
) → String -
A string representation of this object.
inherited
-
verify(
Ed25519VerifyingParams verifyParams) → bool -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromBytes(
{required List< int> bytes, required CryptoKeyType type}) → BaseEd25519PublicKey -
Factory method for creating an IPublicKey instance from a byte array and an elliptic curve type.
override
-
isValidBytes(
List< int> bytes) → bool -
Static method to check the validity of a byte array as a public key for a specific elliptic curve type.
override
-
isValidKeyEncoding(
List< int> keyBytes, CryptoKeyEncoding encoding) → bool -
Checks whether
keyByteshas a valid length for the givenencoding.override -
normalizePublicKey(
List< int> bytes) → BuBytes? -
Validates
bytesthrough the backend signing API and returns the canonical 32-byte base encoding, or null when invalid. Accepts the 33-byte0xed-prefixed form (stripped before the API call, since the backend takes raw fixed-length bytes). Single source of truth for key parsing.