BaseEd25519PrivateKey<PK extends BaseEd25519PublicKey> class abstract

Base class for an ed25519-family private key.

Inheritance
Implemented types
Mixed-in types
Implementers

Constructors

BaseEd25519PrivateKey({required SecretBytes sk, required PK publicKey})

Properties

hashCode → int
The hash code for this object.
no setterinherited
publicKey → PK
Get the associated public key.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sk → SecretBytes
final
type → CryptoKeyType
no setteroverride
variables → List
no setteroverride

Methods

dispose() → void
Releases the native allocation and wipes owned key material. Idempotent: safe to call twice.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sign(Ed25519SigningParams params) → ED25519Signature
inherited
takeSecretKey() → SecretBytes
Returns the live secret key object (not a copy). Do not zero, transform-destructively, or retain it past the key's dispose; after dispose
override
toBytes({SecretTransform? transform}) → SecretBytes
override
toString() → String
A string representation of this object.
inherited
verificationKey() → PK
override

Operators

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

Static Methods

fromBytes({required List<int> bytes, required CryptoKeyType type}) → BaseEd25519PrivateKey<BaseEd25519PublicKey>
Factory method for creating an IPrivateKey instance from a byte array and an elliptic curve type.
override