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
-
- Object
- ICryptoKey
- IPrivateKey
- Implemented types
-
- ISigningKey<
SIGNATURE, SIGNPARAMS, PK>
- ISigningKey<
- Mixed-in types
- Implementers
- BaseEd25519PrivateKey
- BaseMLDSAPrivateKey
- BaseRedJubJubPrivateKey
- BaseRedPallasPrivateKey
- BaseSecp256k1PrivateKey
- BaseSecp256r1PrivateKey
- Bls12G1AggregatePrivateKey
- Bls12G1PrivateKey
- Bls12G2AggregatePrivateKey
- Bls12G2PrivateKey
- Dkls23Secp256k1PrivateKey
- Dkls23Secp256r1PrivateKey
- FrostEd25519PrivateKey
- FrostSecp256k1PrivateKey
- Musig2PrivateKey
- SR25519PrivateKey
Constructors
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.