IPrivateKey<SIGNATURE extends ISignature, SIGNPARAMS extends ISigningParams, PK extends IPublicKey<IVerifiyingParams>> class abstract

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

Inheritance
Implemented types
Mixed-in types
Implementers

Constructors

IPrivateKey()

Properties

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

Methods

dispose() → void
Releases the native allocation and wipes owned key material. Idempotent: safe to call twice.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sign(SIGNPARAMS params) → SIGNATURE
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
inherited
toBytes({SecretTransform? transform}) → SecretBytes
override
toString() → String
A string representation of this object.
inherited
verificationKey() → PK
inherited

Operators

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

Static Methods

fromBytes(List<int> keyBytes, CryptoKeyType type) → IPrivateKey<ISignature, ISigningParams, IPublicKey<IVerifiyingParams>>
Factory method for creating an IPrivateKey instance from a byte array and an elliptic curve type.
fromHex(String keyHex, CryptoKeyType type) → IPrivateKey<ISignature, ISigningParams, IPublicKey<IVerifiyingParams>>
isValidBytes(List<int> keyBytes, CryptoKeyType type) → bool
Static method to check the validity of key bytes for a specific elliptic curve type.