BaseMLDSAPublicKey class abstract
Base of every ML-DSA (FIPS 204) public key.
The security level lives in the concrete subclass (MLDSA44PublicKey, MLDSA65PublicKey, MLDSA87PublicKey): a key's level is its type, so a wrong-level key is a type error instead of a runtime length check at each call site. Length-based dispatch across levels stays available through BaseMLDSAPublicKey.fromBytes for untagged inputs (e.g. raw hex import).
- Inheritance
-
- Object
- IMLDSAVerificationKey
- BaseMLDSAPublicKey
- Implemented types
- Mixed-in types
- Implementers
Constructors
Properties
- bytes → BuBytes
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- params → MLDSAParams
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → CryptoKeyType
-
no setterinherited
- variables → List
-
no setteroverride
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(
MLDSAVerifyingParams verifyParams) → bool -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromBytes(
List< int> bytes) → BaseMLDSAPublicKey -
Parses untagged bytes into the matching level key. Throws when the
length matches no ML-DSA parameter set.
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 givenencodingunder any ML-DSA level.override