crypto/crypto/keys/keys library

Classes

BaseDkls23PublicKey<T extends IPublicKey<IVerifiyingParams>>
Base class for a DKLs23 aggregate public key: the group key verifiers check the final threshold signature against, plus the member keys of the quorum.
BaseEd25519PrivateKey<PK extends BaseEd25519PublicKey>
Base class for an ed25519-family private key.
BaseEd25519PublicKey
Base class for an ed25519-family public key.
BaseFrostPublicKey<T extends IPublicKey<IVerifiyingParams>>
Base class for a FROST aggregate public key: the group key verifiers check the final threshold signature against, plus the member entries (id, key) of the quorum.
BaseMLDSAPrivateKey
Base of every ML-DSA (FIPS 204) private key.
BaseMLDSAPublicKey
Base of every ML-DSA (FIPS 204) public key.
BaseRedJubJubPrivateKey<P extends BaseRedJubJubPublicKey>
Base class for a RedJubjub (Zcash Sapling) private key.
BaseRedJubJubPublicKey
Base class for a RedJubjub (Zcash Sapling) public key.
BaseRedPallasPrivateKey<P extends BaseRedPallasPublicKey>
Base class for a RedPallas (Zcash Orchard) private key.
BaseRedPallasPublicKey
Base class for a RedPallas (Zcash Orchard) public key.
BaseSecp256k1PrivateKey<P extends BaseSecp256k1PublicKey>
Base class for a secp256k1 private key implementing IPrivateKey.
BaseSecp256k1PublicKey
Base class for a secp256k1 public key implementing IPublicKey.
BaseSecp256r1PrivateKey<P extends BaseSecp256r1PublicKey>
A class representing a NIST P-256 private key that implements the IPrivateKey interface.
BaseSecp256r1PublicKey
A class representing a NIST P-256 public key that implements the IPublicKey interface.
Bls12AggregateSigningParams
Bls12FastAggregateSigningParams
Bls12G1AggregateBatchVerifiyingParams
Bls12G1AggregateFastVerifiyingParams
Bls12G1AggregatePrivateKey
A collection of min-pubkey-size BLS private keys used to co-sign (aggregate-sign) as a group.
Bls12G1AggregatePublicKey
An aggregate of multiple min-pubkey-size BLS public keys.
Bls12G1AggregateVerifiyingParams
Bls12G1BatchSignature
Bls12G1PrivateKey
Bls12G1PublicKey
Bls12G1Signature
Bls12G1VerifiyingParams
Bls12G2AggregateBatchVerifiyingParams
Bls12G2AggregateFastVerifiyingParams
Bls12G2AggregatePrivateKey
A collection of min-signature-size BLS private keys used to co-sign (aggregate-sign) as a group.
Bls12G2AggregatePublicKey
An aggregate of multiple min-signature-size BLS public keys.
Bls12G2AggregateVerifiyingParams
Bls12G2BatchSignature
Bls12G2KeyConst
BLS12-381 min-signature-size scheme constants (keys in G2, signatures in G1).
Bls12G2PrivateKey
Min-signature-size private key -- mirror of Bls12G1PrivateKey. Only the public-key line changes: G2Projective.generator * sk instead of G1Projective.generator * sk. All the scalar byte-encoding notes on Bls12G1PrivateKey (IETF big-endian in/out, LE internally via JubJubFq) apply unchanged -- sk is still an element of Fr regardless of which group the public key is computed in.
Bls12G2PublicKey
Min-signature-size public key -- mirror of Bls12G1PublicKey, but the point lives in G2 (compressed = 96 bytes, vs. 48 for G1).
Bls12G2Signature
Min-signature-size scheme: the signature lives in G1 (48 bytes compressed) instead of G2 (96 bytes) -- the mirror image of the min-pubkey-size scheme, where it's the public key that's small.
Bls12G2VerifiyingParams
Bls12KeyConst
BLS12-381 min-pubkey-size scheme constants (keys in G1, signatures in G2).
Bls12SigningParams
BlsMinPubkeyAggregateUtils
Mirror of BlsMinSigAggregateUtils for the min-pubkey-size scheme: public keys in G1 (Bls12G1PublicKey), signatures in G2 (Bls12G1Signature) -- matches IBlsSigningKey / IBlsVerificationKey, whose per-signer verify equation is e(pk, H(m)) == e(G1.generator, sig).
BlsMinSigAggregateUtils
Aggregate signature / aggregate public key / aggregate-verify utilities for the min-signature-size BLS scheme: public keys in G2 (Bls12G2PublicKey), signatures in G1 (Bls12G2Signature) -- matches IBlsMinSigSigningKey / IBlsMinSigVerificationKey, whose per-signer verify equation is e(H(m), pk) == e(sig, G2.generator).
DartDkls23KeysApi
Dkls23KeysApi backed by this package's pure-Dart DKLs23 engine.
DartED25519SigningApi
Pure-Dart implementation of ed25519-family signing/verification.
DartMLDSASigningApi
Pure-Dart implementation of ML-DSA key generation/signing/verification.
DartRedJubJubSigningApi
Pure-Dart implementation of RedJubjub (Zcash Sapling RedDSA) signing/verification.
DartRedPallasSigningApi
Pure-Dart implementation of RedPallas (Zcash Orchard RedDSA) signing/verification.
DartSecp256r1SigningApi
Pure-Dart secp256r1 signing/verification on Secp256r1Point.
Dkls23KeysApi
Backend interface for the DKLs23 threshold key family.
Dkls23Secp256k1PrivateKey
DKLs23 coordinator key over secp256k1, mirroring Musig2PrivateKey: typed share secrets in party order plus the aggregate public key. The sign behavior itself lives in IDkls23SigningKey (verify_signing.dart).
Dkls23Secp256k1PublicKey
DKLs23 aggregate public key over secp256k1.
Dkls23Secp256r1PrivateKey
DKLs23 coordinator key over secp256r1 (NIST P-256), mirroring Musig2PrivateKey: typed share secrets in party order plus the aggregate public key. The sign behavior itself lives in IDkls23SigningKey (verify_signing.dart).
Dkls23Secp256r1PublicKey
DKLs23 aggregate public key over secp256r1 (NIST P-256).
Dkls23SignParams
Parameters for a DKLs23 threshold signing operation.
Dkls23VerifyParams
Parameters for verifying a DKLs23 threshold signature.
EcdsaKeysConst
Constants related to ECDSA (Elliptic Curve Digital Signature Algorithm) keys.
ED25519Blake2bPrivateKey
An ed25519 private key that hashes with Blake2b (used e.g. by Nano).
ED25519Blake2bPublicKey
An ed25519 public key that hashes with Blake2b (used e.g. by Nano).
Ed25519KeysConst
Constants related to BaseEd25519 keys, including public and private keys.
ED25519KeyUtils
Ed25519 key derivation helpers (RFC 8032 clamping, etc).
ED25519KholawPrivateKey
A Cardano/Khalow-derivation-scheme ed25519 private key (64-byte extended form: 32-byte scalar + 32-byte iv/chain-code material).
ED25519KholawPublicKey
A Cardano/Khalow-derivation-scheme ed25519 public key.
ED25519MoneroPrivateKey
A Monero ed25519 private key.
ED25519MoneroPublicKey
A Monero ed25519 public key (zero/identity point is allowed, e.g. for certain view-key derivations).
ED25519PrivateKey
A plain ed25519 private key.
ED25519PublicKey
A plain ed25519 public key.
ED25519Signature
An ed25519 signature (32-byte R + 32-byte S).
ED25519SigningApi
Backend interface for ed25519-family signing/verification.
Ed25519SigningParams
Parameters for an ed25519 sign operation: the message bytes.
Ed25519VerifyingParams
Parameters for an ed25519 verify operation: message + signature.
FrostEd25519PrivateKey
A FROST(Ed25519) coordinator key: threshold shares in position order, parallel FROST identifiers, and the aggregate public key. The sign behavior itself lives in IFrostSigningKey (verify_signing.dart).
FrostEd25519PublicKey
A FROST(Ed25519) group public key: group key + member entries + threshold.
FrostEdMember
One member entry: FROST identifier + share public key.
FrostK1Member
One member entry: FROST identifier + share public key.
FrostMember<T>
One FROST quorum member: participant identifier + share public key. Implemented by FrostK1Member / FrostEdMember; the typed key flowing through BaseFrostPublicKey.
FrostSecp256k1PrivateKey
A FROST(secp256k1) coordinator key: typed share secrets in position order, parallel FROST identifiers, and the aggregate public key — mirroring Musig2PrivateKey. The sign behavior itself lives in IFrostSigningKey (verify_signing.dart).
FrostSecp256k1PublicKey
A FROST(secp256k1) group public key: group key + member entries + threshold.
FrostSignature
Final FROST Schnorr signature: R (curve-encoded: 33-byte compressed secp256k1, 32-byte ed25519; RFC 9591 Appendix A) + z (32-byte scalar).
FrostSigningParams
Parameters for threshold signing.
FrostVerifyingParams
Parameters for verifying a final FROST signature.
IBlsAggregateMinSigSigningKey<P extends IBlsAggregateMinSigVerificationKey>
IBlsAggregateMinSigVerificationKey
IBlsAggregateSigningKey<P extends IBlsAggregateVerificationKey>
IBlsAggregateVerificationKey
IBlsMinSigSigningKey<P extends IBlsMinSigVerificationKey>
Min-signature-size scheme (mirror of IBlsSigningKey):
IBlsMinSigVerificationKey
Mirror of IBlsVerificationKey: the public key now lives in G2 (via G2Projective.generator), so verification checks e(H(m), pk) == e(sig, G2.generator) which is the same pairing identity as the min-pubkey-size scheme, just with the roles of G1 and G2 swapped -- see the derivation in the PR description / accompanying notes for why this equation (rather than e(pk, H(m)) == e(G2.generator, sig)) is the one that actually holds: sig = skH(m), pk = skG2.generator, and pairing bilinearity gives e(H(m), pk) = e(H(m), G2.generator)^sk = e(sig, G2.generator).
IBlsSigningKey<P extends IBlsVerificationKey>
IBlsVerificationKey
ICryptoKey
Common interface for every key type (public or private).
IDkls23SigningKey<P extends BaseDkls23PublicKey<T>, S, T extends IPublicKey<IVerifiyingParams>>
Common interface for a DKLs23 coordinator key holding the group's shares as typed single-key secrets (secp256k1 / secp256r1 private keys, party order: secretKeys[i] is party i's share). Signing rebuilds the native share records from these scalars plus the aggregate key (P) metadata and runs a qualifying subset; T is the member/aggregate key type flowing through verificationKey.
IDkls23VerificationKey
Common interface for a DKLs23 aggregate public key: the group key verifiers check the final threshold signature against. The typed key material (aggKey / members) lives on BaseDkls23PublicKey, which also implements verification.
IECDSASignature
An ECDSA signature (r, s, and an optional recovery id).
IEd25519SigningKey<P extends IEd25519VerificationKey>
Common interface every ed25519-family private key implements.
IEd25519VerificationKey
Common interface every ed25519-family public key implements.
IFrostSigningKey<P extends BaseFrostPublicKey<T>, S, T extends IPublicKey<IVerifiyingParams>>
Common interface for a FROST coordinator key holding the group's shares as typed secrets in position order, plus the parallel FROST participant identifiers. Signing orchestrates the protocol FrostApi backend directly (prepare → commit → sign → aggregate) over a qualifying subset; each backend handles its own secret math, the keys layer only moves bytes. T is the member/aggregate key type flowing through verificationKey.
IFrostVerificationKey
Common interface for a FROST aggregate public key: the group key verifiers check the final threshold signature against. The typed key material (aggKey / members) lives on BaseFrostPublicKey, which also implements verification.
IMLDSASigningKey<P extends IMLDSAVerificationKey>
Common interface every ML-DSA private key implements.
IMLDSAVerificationKey
Common interface every ML-DSA public key implements.
IMuSig2SigningKey<P extends IMuSig2VerificationKey>
Common interface for a MuSig2 co-signer holding one or more of the group's private keys.
IMuSig2VerificationKey
Analogue of IBlsAggregateVerificationKey: verifies one participant's partial signature via partialSigVerify (see verify).
IPrivateKey<SIGNATURE extends ISignature, SIGNPARAMS extends ISigningParams, PK extends IPublicKey<IVerifiyingParams>>
An abstract class representing a generic private key interface for different elliptic curve types.
IPublicKey<VERIFYPARAMS extends IVerifiyingParams>
An abstract class representing a generic public key interface for different elliptic curve types.
IRedJubJubSigningKey<P extends IRedJubJubVerificationKey>
Common interface every RedJubjub private key implements.
IRedJubJubVerificationKey
Common interface every RedJubjub public key implements.
IRedPallasSigningKey<P extends IRedPallasVerificationKey>
Common interface every RedPallas private key implements.
IRedPallasVerificationKey
Common interface every RedPallas public key implements.
ISecp256k1SigningKey<P extends ISecp256k1VerificationKey>
Common interface every secp256k1 private key implements.
ISecp256k1VerificationKey
Common interface every secp256k1 public key implements.
ISecp256r1SigningKey<P extends ISecp256r1VerificationKey>
Common interface every secp256r1 private key implements.
ISecp256r1VerificationKey
Common interface every secp256r1 public key implements.
ISignature
Common interface every signature type implements.
ISigningKey<SIGNATURE extends ISignature, SIGNPARAMS extends ISigningParams, VK extends IVerifiyingKey<IVerifiyingParams>>
Common interface every private (signing) key implements.
ISigningParams
Marker for a signing scheme's parameters (e.g. hash to sign).
IVerifiyingKey<VERIFYPARAMS extends IVerifiyingParams>
Common interface every public (verification) key implements.
IVerifiyingParams
Marker for a verification scheme's parameters (e.g. message + signature).
MLDSA44PrivateKey
ML-DSA-44 private key.
MLDSA44PublicKey
ML-DSA-44 public key (1312 bytes).
MLDSA65PrivateKey
ML-DSA-65 private key.
MLDSA65PublicKey
ML-DSA-65 public key (1952 bytes).
MLDSA87PrivateKey
ML-DSA-87 private key.
MLDSA87PublicKey
ML-DSA-87 public key (2592 bytes).
MLDSASignature
An ML-DSA signature.
MLDSASigningApi
Backend interface for ML-DSA (FIPS 204) key generation/signing/verification.
MLDSASigningParams
Parameters for an ML-DSA sign operation.
MLDSAVerifyingParams
Parameters for an ML-DSA verify operation.
MuSig2AggregatePublicKey
A MuSig2 aggregate public key (the x-only key a verifier checks a final aggregated signature against).
MuSig2AggregateVerifiyingParams
Parameters for verifying a final aggregated MuSig2 signature.
MuSig2GenerateNoncesParams
Inputs for generating a MuSig2 nonce pair.
MuSig2GenerateSessionParams
Inputs for starting a MuSig2 signing session.
MuSig2PartialSignature
A single participant's partial signature, carrying along the pubnonce that produced it (needed later for partialSigVerify / aggregation).
MuSig2PartialSigningParams
Parameters for producing one participant's partial signature.
MuSig2PartialVerifiyingParams
Params to verify one participant's partial signature against a session (mirrors the exact args your sign() already passes to partialSigVerify).
Musig2PrivateKey
MuSig2Signature
NativeDkls23KeysApi
Dkls23KeysApi backed by a native (FFI/platform) implementation.
NativeED25519SigningApi
Native (FFI) implementation of ed25519-family signing/verification.
NativeMLDSASigningApi
Native (FFI) implementation of ML-DSA key generation/signing/verification.
NativeRedJubJubSigningApi
Native (FFI) implementation of RedJubjub (Zcash Sapling RedDSA) signing/verification.
NativeRedPallasSigningApi
Native (FFI) implementation of RedPallas (Zcash Orchard RedDSA) signing/verification.
NativeSecp256r1SigningApi
Native (FFI) implementation of secp256r1 signing/verification.
ReddsaSignature
Represents a RedDSA signature consisting of r and s components.
RedJubJubBindingPrivateKey
A Zcash Sapling value-balance binding (RedJubjub) private key.
RedJubJubBindingPublicKey
A Zcash Sapling value-balance binding (RedJubjub) public key.
RedJubJubSigningApi
Jubjub RedDSA signing API (Native connector or pure Dart).
RedJubJubSigningParams
Parameters for a RedJubjub sign operation.
RedJubJubSpendPrivateKey
A Zcash Sapling spend-authorizing (RedJubjub) private key.
RedJubJubSpendPublicKey
A Zcash Sapling spend-authorizing (RedJubjub) public key.
RedJubJubVerifyingParams
Parameters for a RedJubjub verify operation.
RedPallasBindingPrivateKey
A Zcash Orchard value-balance binding (RedPallas) private key.
RedPallasBindingPublicKey
A Zcash Orchard value-balance binding (RedPallas) public key.
RedPallasSigningApi
Pallas RedDSA signing API (Native connector or pure Dart).
RedPallasSigningParams
Parameters for a RedPallas sign operation.
RedPallasSpendPrivateKey
A Zcash Orchard spend-authorizing (RedPallas) private key.
RedPallasSpendPublicKey
A Zcash Orchard spend-authorizing (RedPallas) public key.
RedPallasVerifyingParams
Parameters for a RedPallas verify operation.
Secp256k1Bip340SigningParams
Parameters for a BIP-340 Schnorr sign/verify over secp256k1.
Secp256k1PrivateKey
A secp256k1 private key implementing IPrivateKey.
Secp256k1PublicKey
A secp256k1 public key implementing IPublicKey.
Secp256k1SigningParams
Parameters for a plain ECDSA sign/verify over secp256k1.
Secp256k1VerifyingParams
Parameters for verifying a plain ECDSA signature over secp256k1.
Secp256r1PrivateKey
A NIST P-256 (secp256r1) private key.
Secp256r1PublicKey
A NIST P-256 (secp256r1) public key.
Secp256r1SigningApi
Backend interface for secp256r1 signing/verification operations.
Secp256r1SigningParams
Parameters for a plain ECDSA sign/verify over secp256r1.
Secp256r1VerifyingParams
Parameters for verifying a plain ECDSA signature over secp256r1.
SuiHybridSecp256r1PrivateKey
A NIST P-256 private key using Sui's hybrid (compressed+flag) encoding.
SuiHybridSecp256r1PublicKey
A NIST P-256 public key using Sui's hybrid (compressed+flag) encoding.
ValidatedDkls23KeysApi
Dkls23KeysApi wrapper that validates argument lengths before delegating.
ValidatedED25519SigningApi
Validates argument lengths/key types before delegating to the inner backend.
ValidatedMLDSASigningApi
Validates arguments before delegating to the inner backend.
ValidatedRedJubJubSigningApi
Validates argument lengths before delegating to the inner backend.
ValidatedRedPallasSigningApi
Validates argument lengths before delegating to the inner backend.
ValidatedSecp256r1SigningApi
Validates argument lengths before delegating to the inner backend.

Enums

CryptoKeyEncoding
CryptoKeyType
An enumeration of common elliptic curve types used in cryptographic operations.
Dkls23Curve
DKLs23 threshold ECDSA curve selector (0 = secp256k1, 1 = secp256r1 on the native boundary).
ECDSASignatureEncoding
Byte layouts for an ECDSA signature: raw=r+s only; suffixRecoveryId/ prefixRecoveryId add a recovery byte after/before r+s; ethereumLegacy is r+s+v (v = recovery id + 27); der is ASN.1 DER; bip137 is a header byte (encoding recovery id + compression) followed by r+s.
FrostCurve
FROST threshold key-family curve selector (0 = secp256k1, 1 = Ed25519). Pure data: record/encoding curve tag shared by the keys layer.
RedJubJubVariant
Sapling RedJubjub domain (spend-auth vs binding).
RedPallasVariant
Orchard RedPallas domain (spend-auth vs binding).