crypto/crypto/crypto library
The 'crypto' library provides a collection of cryptographic algorithms and utilities for various cryptographic operations and security functions.
Classes
-
Absorbing<
F extends Object> - AEAD
- Contract for an Authenticated Encryption with Associated Data (AEAD) cipher — encryption that also authenticates the ciphertext and any associated (unencrypted) data.
- AEADApi
- Constructs AEAD ciphers (ChaCha20-Poly1305, XSalsa20-Poly1305, AES-GCM)
- AES
- AES block cipher (128/192/256-bit keys), operating on single 16-byte blocks. Wrap in CBC or CTR for a mode of operation.
-
BaseBls12Point<
SCALAR extends JubJubField< SCALAR> , P extends BaseBls12Point<SCALAR, P> > -
BaseCommitDomain<
SCALAR extends PastaFieldElement< SCALAR> , BASE extends PastaFieldElement<BASE> , P extends PastaPoint<SCALAR, BASE, P> , AFFINE extends PastaAffinePoint<SCALAR, BASE, P> > -
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. -
BaseHashDomain<
SCALAR extends PastaFieldElement< SCALAR> , BASE extends PastaFieldElement<BASE> , P extends PastaPoint<SCALAR, BASE, P> , AFFINE extends PastaAffinePoint<SCALAR, BASE, P> > -
BaseJubJubAffinePoint<
SCALAR extends JubJubScalar< SCALAR> > - Base class for affine JubJub points.
-
BaseJubJubNielsPoint<
SCALAR extends JubJubScalar< SCALAR> > - Base class for Niels-form JubJub points (used for fast addition).
-
BaseJubJubPoint<
SCALAR extends JubJubScalar< SCALAR> , P extends BaseJubJubPoint<SCALAR, P> > - Base abstract class for JubJub points with full group and cofactor operations.
- BaseMLDSAPrivateKey
- Base of every ML-DSA (FIPS 204) private key.
- BaseMLDSAPublicKey
- Base of every ML-DSA (FIPS 204) public key.
-
BasePastaPoint<
SCALAR extends PastaFieldElement< SCALAR> , BASE extends PastaFieldElement<BASE> > - Contract shared by every Pasta point representation (projective and affine).
-
BasePedersenHash<
T extends JubJubScalar< T> , E extends BaseJubJubPoint<T, E> > -
BaseRedJubJubPoint<
SCALAR extends JubJubScalar< SCALAR> > -
Field elements are represented as multiple fixed-size limbs (typically
4
Uint64s) with algorithms written in a constant-time style. Because they rely on multi-precision arithmetic over Dart ints, these implementations are not guaranteed to be constant-time at the machine level and should not be considered fully side-channel resistant. Base abstract class for JubJub points in extended/projective coordinates. -
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.
- BinaryNumeralString
- Numeral string representation for FF1 in binary form (radix = 2).
- BLAKE2b
- Implementation of the BLAKE2b hash function that implements the SerializableHash interface.
- Blake2Config
- Configuration class for the Blake2b hash function.
- BLAKE2s
- Implementation of the BLAKE2s hash function that implements the SerializableHash interface.
- Blake2State
- Serializable snapshot of an in-progress BLAKE2b computation.
- BlockCipher
- A raw block cipher: encrypts/decrypts exactly one fixed-size block at a time, with no mode of operation applied.
- BlockCipherCbc
- A block cipher running in CBC mode. Unlike BlockCipher, this is stateful: each call chains off the previous block's ciphertext, so the same instance must be used for a message's blocks in order.
- BlockCipherPadding
- Adds and removes block cipher padding. See the library comment above for why unpad is written the way it is.
-
Bls12AffinePoint<
P extends Bls12Point< P> > - Affine-coordinate BLS12 point with limbs field elements.
- Bls12AggregateSigningParams
- Bls12FastAggregateSigningParams
- Bls12Fp
- Implementation of the BLS12-381 base field GF(p).
- Bls12Fp12
- Quadratic extension field GF(p¹²) over GF(p⁶), represented as c0 + c1·w with w² = v.
- Bls12Fp2
- Implements arithmetic over the quadratic extension field Fp2.
- Bls12Fp6
- Cubic extension field GF(p⁶) over GF(p²), represented as c0 + c1·v + c2·v² with v³ = u + 1.
- Bls12FpConst
- Constants for the BLS12-381 base field GF(p).
- 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 * skinstead ofG1Projective.generator * sk. All the scalar byte-encoding notes on Bls12G1PrivateKey (IETF big-endian in/out, LE internally via JubJubFq) apply unchanged --skis 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).
- Bls12PairingUtils
- Utilities for computing pairings and Miller loop operations on BLS12-381.
-
Bls12Point<
P extends Bls12Point< P> > - Generic BLS12 point using limbs field representation (field elements are split into limbs).
- Bls12SigningParams
-
BlsField<
F extends BlsField< F> > - Base interface for BLS scalar or base fields.
- BlsG1Constants
-
Constants for hashing to BLS12-381 G1, per RFC 9380 §8.8.1
(suite
BLS12381G1_XMD:SHA-256_SSWU_RO_). - BlsG2Constants
- BLS12-381 G2 isogeny/SSWU constants. Generated data — do not hand-edit the numeric values.
- BlsHashToG1
-
Hash-to-curve for BLS12-381 G1 (RFC 9380 suite
BLS12381G1_XMD:SHA-256_SSWU_RO_) — the counterpart to BlsHashToG2 for min-signature-size BLS ciphersuites (G2 public keys, G1 signatures). - BlsHashToG2
- RFC 9380 hash-to-curve for BLS12-381 G2 (SSWU map + isogeny).
- 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).
- Bn254Fp
- Bn254Fp12
- Bn254Fp2
- Bn254Fp6
- Bn254FpConst
- Bn254Fr
- Bn254FrConst
- Bn254G1AffinePoint
- Bn254G1CurveApi
- BN254 (alt_bn128) G1 curve operations (no extras beyond CurveApi). Points are 64-byte uncompressed (EIP-197), scalars 32-byte big-endian. Only the native (Rust) implementation exists; the pure-Dart implementation throws UnsupportedError.
- Bn254G1Projective
- Bn254G2AffinePoint
- Bn254G2CurveApi
- BN254 (alt_bn128) G2 curve operations (no extras beyond CurveApi). Points are 128-byte uncompressed (EIP-197 word order x1,x0,y1,y0), scalars 32-byte big-endian. Only the native (Rust) implementation exists; the pure-Dart implementation throws UnsupportedError.
- Bn254G2Projective
- Bn254Pairing
- BnFp2SqrtResult
-
BnSqrtResult<
T> - CBC
-
CBC mode over a
BuBlockCipher. Stateful: encrypt/decrypt each handle one block and carry the chaining value forward to the next call. - ChaCha20
- ChaCha20 stream cipher (RFC 8439).
- ChaCha20Poly1305
- ChaCha20-Poly1305 (RFC 8439) AEAD cipher.
- ChaCha20Rng
- A Rng backed by ChaCha20 in counter mode (RFC 8439-style), buffering output 4 blocks (256 bytes) at a time.
-
CofactorGroupElement<
SCALAR extends CryptoField< SCALAR> , F extends CryptoGroupElement<F, SCALAR> > - Contract for a group element on a curve with a non-trivial cofactor.
- CommitDomain
- A Sinsemilla commitment domain over the Pallas curve.
-
Coordinates<
F extends Object> - A pair of field-element coordinates (e.g. affine x/y).
- Crc16
-
CRC-16/CCITT, computed bit-by-bit over the message with 2 zero bytes
appended (the "augmented message" trick, so the CRC of
message + CRCcomes out to zero). - Crc32
- CRC-32 (IEEE 802.3: reflected poly 0xEDB88320, init/xorout 0xFFFFFFFF).
-
CryptoField<
F extends CryptoField< F> > - Contract for a field element (prime field or an extension field built on top of one).
- CryptoFieldElement
- Marker base for a field element type.
-
CryptoGroupElement<
F, SCALAR extends CryptoField< SCALAR> > -
Contract for a point on an elliptic curve group over scalar field
SCALAR. -
CryptoPrimeFieldElement<
F extends CryptoPrimeFieldElement< F> > - A CryptoField element backed by a prime field (as opposed to an extension field).
- CTR
- Counter (CTR) mode: turns a block cipher into a stream cipher by encrypting successive counter values and XORing them with the data.
- CurveApi
- Common byte-level curve operations, shared across every supported curve. pointLen/scalarLen vary per curve — e.g. 32 bytes for Ed25519, 48 for BLS12-381 G1.
- DartAEADApi
- AEADApi backed by the pure-Dart implementations in this package (GCM/AES, ChaCha20Poly1305, XSalsa20Poly1305).
- DartBn254G1CurveApi
- Pure-Dart BN254 (alt_bn128) G1 curve API.
- DartBn254G2CurveApi
- Pure-Dart BN254 (alt_bn128) G2 curve API.
- DartDkls23KeysApi
- Dkls23KeysApi backed by this package's pure-Dart DKLs23 engine.
- DartED25519SigningApi
- Pure-Dart implementation of ed25519-family signing/verification.
- DartFrostApi
-
FrostApi backed by this package's pure-Dart engines
(FrostSecp256k1 / FrostEd25519) — the MuSig2 precedent
(DartMuSig2Api delegates to
MuSig2). - DartG1ProjectiveCurveApi
- Pure-Dart BLS12-381 G1 curve API.
- DartG2ProjectiveCurveApi
- Pure-Dart BLS12-381 G2 curve API.
- DartHashApi
- HashApi backed by this package's pure-Dart hash implementations.
- DartJubJubCurveApi
- Pure-Dart Jubjub curve API (Uint64 Montgomery JubJubFr / JubJubPoint).
- DartKeyDerivationApi
- KeyDerivationApi backed by the pure-Dart implementations in this package (PBKDF2, Scrypt, HKDF).
- DartMLDSASigningApi
- Pure-Dart implementation of ML-DSA key generation/signing/verification.
- DartMuSig2Api
-
MuSig2Api backed by this package's pure-Dart
MuSig2. - DartPallasCurveApi
- PallasCurveApi backed by the pure-Dart implementation in this package (PallasPoint with VestaFq as the scalar field).
- 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.
- DartSolanaZkApi
- DartVestaCurveApi
- VestaCurveApi backed by the pure-Dart implementation in this package (VestaPoint with PallasFp as the scalar field).
- DartX25519Api
- X25519Api backed by the pure-Dart implementation in this package (X25519).
- 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.
-
DklsEngine<
S extends WeierstrassScalar< S> , B extends CryptoField<B> , P extends WeierstrassPoint<S, B, P> > - Typed DKLs23 suite engine.
- DklsK1Engine
-
secp256k1 (K1) suite engine: typed Secp256k1Fr/Secp256k1Point
math, no
dynamic, no per-call curve dispatch. - DklsR1Engine
-
secp256r1 (R1) suite engine: typed Secp256r1Fr/Secp256r1Point
math, no
dynamic, no per-call curve dispatch. - DklsUtils
-
Static entry point of the pure-Dart DKLs23 engine (the FROST precedent:
FrostSecp256k1/FrostEd25519behindDartFrostApi). - ECB
- Electronic Codebook (ECB) mode for AES encryption and decryption.
- EcdsaKeysConst
- Constants related to ECDSA (Elliptic Curve Digital Signature Algorithm) keys.
-
ECPoint<
SCALAR extends Object, POINT extends ECPoint< SCALAR, POINT> > - Contract every elliptic-curve point implementation follows.
- 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).
- Ed25519CurveApi
- Ed25519/EdDSA-specific curve operations, beyond the shared CurveApi.
- Ed25519Fp
- Ed25519FpConst
- Ed25519Fr
- Ed25519FrConst
- 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.
-
EdwardsField<
F extends EdwardsField< F> > - EdwardsLimbOps
-
Byte-level Ed25519 group operations on the limb backend
(EdwardsLimbPoint/Ed25519Fr): the BigInt-free replacement for the
ref10
CryptoOps/Ed25519Utilscombination. - EdwardsLimbParams
- EdwardsLimbPoint
-
EdwardsPrimeField<
F extends EdwardsPrimeField< F> > -
EdwardsScalar<
F extends EdwardsScalar< F> > -
FF1<
T extends NumeralString< T> > - FF1Binary
- FF1 format-preserving encryption specialized for binary data.
- FF1Flexible
- FF1 format-preserving encryption using a flexible numeral string.
- FF1Radix
- Represents an FF1 radix configuration, including its type and length constraints.
-
FieldSqrtResult<
F extends CryptoField< F> > - The result of a field square-root computation: the candidate result plus whether the input was actually a quadratic residue (isSquare).
- FlexibleNumeralString
- Numeral string representation for FF1 with flexible radix digits.
- FortunaPRNG
- The Fortuna CSPRNG (AES-CTR based, with automatic re-keying after every block generation to resist state compromise).
- FrostApi
- RFC 9591 FROST signing surface (both ciphersuites).
- FrostCommitment
-
One participant's entry in the commitment list: identifier + raw
hiding/binding commitment points (33 bytes secp256k1, 32 bytes
Ed25519; mirrors
BuFrostCommitment). - FrostDealerShard
-
Trusted-dealer shard output: per-participant share records plus the
full polynomial coefficients (32 bytes each, secret first; mirrors
BuFrostShard). - FrostEd25519
- FROST(Ed25519, SHA-512) — RFC 9591 Section 6.1.
- 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.
-
FrostEngine<
P, S> -
Shared interface of the pure-Dart FROST engines (FrostSecp256k1
/ FrostEd25519, RFC 9591 Sections 4-5 plus Appendix C) — the
MuSig2 precedent (
MuSig2ContextbehindDartMuSig2Api). -
FrostEngineCommitment<
P> -
One participant's entry in the commitment list (RFC 9591
Section 4.3), shared by both engine suites.
idis a plain 1-basedu32-range participant counter (wire order + sorting need ordering, which field types deliberately lack); scalar values useS. - FrostEngineHex
- Hex helpers for test vectors (hex-encoded values).
-
FrostEngineNonces<
P, S> -
One participant's nonce pair + public commitments (RFC 9591
Section 5.1), shared by both engine suites (
Pis the point type,Sthe scalar type:Secp256k1Fron secp256k1,Ed25519Fron Ed25519). -
Shamir share for one participant (RFC 9591 Appendix C.1), shared
by both engine suites (
Sis the suite scalar type). - FrostGroupInfo
-
Group info output: group key + member public keys, in id order
(
1..=max). - FrostK1Member
- One member entry: FROST identifier + share public key.
-
One FROST key share: 1-based participant identifier (
u32, mirrorsBuFrostShare) + 32-byte secret scalar. -
FrostMember<
T> - One FROST quorum member: participant identifier + share public key. Implemented by FrostK1Member / FrostEdMember; the typed key flowing through BaseFrostPublicKey.
- FrostNoncePair
-
Round-1 nonce output: hiding/binding scalars (32 bytes each) plus
their commitments as raw point bytes (mirrors
BuFrostNonces). -
Threshold-reshare output: fresh per-participant shares as one
concatenated blob (
nx 32-byte scalars,idsorder) + member public keys (nelements) + group key. - FrostSecp256k1
- FROST(secp256k1, SHA-256) — RFC 9591 Section 6.5.
- 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.
- FrostThresholdSignature
-
Final FROST threshold signature
(R, z):Ras raw point bytes (33 bytes secp256k1, 32 bytes Ed25519) + 32-byte scalar (mirrorsBuFrostSignature). - FrostVerifyingParams
- Parameters for verifying a final FROST signature.
- G1AffinePoint
- BLS12-381 G1 group in affine coordinates (x, y) plus infinity flag.
- G1Projective
- BLS12-381 G1 group in projective coordinates (x : y : z).
- G1ProjectiveCurveApi
- BLS12-381 G1: compressed (48) + uncompressed (96) forms.
- G2AffinePoint
- BLS12-381 G2 group afiine in projective coordinates (x : y : z) over GF(p²).
- G2Prepared
- Precomputes Miller loop coefficients for a G2 point to speed up pairings.
- G2Projective
- BLS12-381 G2 group in projective coordinates (x : y : z) over GF(p²).
- G2ProjectiveCurveApi
- BLS12-381 G2: compressed (96) + uncompressed (192) forms.
- GammaDistribution
- Samples from a Gamma(shape, scale) distribution via Marsaglia and Tsang's method (shape >= 1) or Johnk's algorithm (shape < 1).
- GCM
- Galois/Counter Mode (GCM): authenticated encryption built from a 16-byte-block cipher run in CTR mode, with a GHASH-based tag.
-
Grain<
F extends PastaFieldElement< F> > - The Grain LFSR used to derive Poseidon round constants.
- Gt
- Element of GT, the BLS12-381 pairing target group, represented additively.
- Hash
-
The
Hashabstract class defines the basic operations for hash algorithms. - HashApi
- Constructs hash and HMAC instances for the supported algorithms.
- HashBytesState
-
The
HashBytesStateclass represents the state of a hashing process that operates on a byte array. - HashDomain
- HashDomainConst
- Domain-separation constants for Sinsemilla hashing.
- HashState
-
The
HashStateabstract class serves as a marker interface for hash state classes. - HKDF
- A Dart implementation of the HKDF (HMAC-based Key Derivation Function) as defined in RFC 5869. This class supports both the extract and expand phases.
- HMAC
-
The
HMACclass represents a Hash-based Message Authentication Code. - HMACState
- Serializable snapshot of an in-progress HMAC computation.
-
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/secp256r1private keys, party order:secretKeys[i]is partyi's share). Signing rebuilds the native share records from these scalars plus the aggregate key (P) metadata and runs a qualifying subset;Tis 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.
Tis 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 viapartialSigVerify(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).
- JubJubAffineNielsPoint
-
An affine JubJub point precomputed in Niels form
(v+u, v-u, 2d*t). - JubJubAffinePoint
-
A JubJub point in affine coordinates
(u, v). - JubJubCurveApi
- JubJub curve operations, beyond the shared CurveApi.
-
JubJubField<
F extends JubJubField< F> > - A JubJubPrimeField element of the base field Fq.
- JubJubFq
- Element of the JubJub base field Fq, internally represented as 4 64-bit limbs Uint64 in Montgomery form.
- JubJubFqConst
- JubJub base-field (Fq) domain parameters. Generated data — do not hand-edit the numeric values.
- JubJubFr
- Element of the JubJub scalar field Fr, internally represented as 4 64-bit limbs Uint64 in Montgomery form.
- JubJubFrConst
- JubJub scalar-field (Fr) domain parameters. Generated data — do not hand-edit the numeric values.
- JubJubNielsPoint
-
A projective JubJub point precomputed in "Niels" form
(v+u, v-u, z, 2d*t), the addend form used for fast mixed addition. - JubJubPoint
-
A JubJub point in extended coordinates
(u, v, z, t1, t2), the main representation for group arithmetic. -
JubJubPrimeField<
F extends JubJubPrimeField< F> > - A JubJub prime-field element in Montgomery form, backed by 4 64-bit limbs.
-
JubJubScalar<
F extends JubJubScalar< F> > - A JubJubPrimeField element of the scalar field Fr.
- Jwt
- A JSON Web Token: a JwtHeader plus a JwtPayload, with signing and verification.
- JwtHeader
- The decoded JOSE header of a Jwt.
- JwtPayload
- The decoded claims set of a Jwt.
- Keccak
- KeccakState
- Serializable snapshot of an in-progress Keccak computation.
- KeyDerivationApi
- PBKDF2 (SHA-256/SHA-512), scrypt and HKDF key derivation.
- MD4
- Implementation of the MD4 (Message Digest 4) hash function.
- MD5
- A class that represents the MD5 hash algorithm, which is used to compute MD5 message digests. This class implements the SerializableHash interface.
-
MdsGenerateResult<
F extends PastaFieldElement< F> > - The MDS matrix and its inverse, produced during Poseidon setup.
- MerlinTranscript
- A transcript object for the Merlin cryptographic protocol.
-
MillerLoopDriver<
O> - Interface defining operations required to drive a Miller loop computation.
- MillerLoopDriverBls12
- Drives a multi-pairing Miller loop over a batch of (G1, prepared-G2) terms.
- MillerLoopDriverBls12Pairing
- Implements the Miller loop driver for BLS12-381 pairings using affine G1 and projective G2 points.
- MillerLoopResultBls12
- The accumulated (unreduced) output of the Miller loop; call MillerLoopResultBls12.finalExponentiation to get a Gt element.
- MLDSA
- ML-DSA instance for a given parameter set.
- 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).
- MLDSAKeyPair
- Result of key generation.
- MLDSAParams
- Parameters for one ML-DSA parameter set.
- 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.
- MoneroH2C
- Monero hash-to-point (Elligator2-style map + ×8 cofactor clearing).
-
MultiMillerLoop<
TERMS extends Object, RESULT extends Object> - Interface for performing multi-Miller loop computations over multiple term pairs.
- MultiMillerLoopBls12
- Computes a combined Miller loop over multiple G1/G2 pairs for BLS12-381.
- 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.
- MuSig2Api
-
BIP-327 MuSig2 — public factory returns
BuResultonly. - Musig2Const
-
MuSig2variant over the limb-based Secp256k1Point backend. - MuSig2Constants
- Fixed byte lengths defined by the MuSig2 (BIP-327) spec.
- Musig2Context
- Contract for a MuSig2 signing session: nonce generation/aggregation, key aggregation, partial signing, and signature aggregation.
- MuSig2DeterministicSignature
- A MuSig2 partial signature produced deterministically, with the public nonce that accompanies it.
- MuSig2GenerateNoncesParams
- Inputs for generating a MuSig2 nonce pair.
- MuSig2GenerateSessionParams
- Inputs for starting a MuSig2 signing session.
- MuSig2KeyAggContext
- The result of aggregating signer public keys, plus any applied tweaks.
- MuSig2Nonce
- A MuSig2 nonce pair: the secret nonce and its public counterpart.
- 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 topartialSigVerify). - Musig2PrivateKey
- MuSig2Session
- Per-signer state for one MuSig2 signing session.
- MuSig2SessionValues
- Values derived once per session and reused across partial signatures.
- MuSig2Signature
- MuSig2Tweak
- A tweak applied to an aggregated MuSig2 key (x-only or plain).
- MuSig2UtilsConst
-
Constants backing
MuSig2Utilsfor the blinded signing path. - NativeAEADApi
- AEADApi backed by a native (FFI/platform) implementation.
- NativeBn254G1CurveApi
- Bn254G1CurveApi backed by a native (FFI/platform) implementation.
- NativeBn254G2CurveApi
- Bn254G2CurveApi backed by a native (FFI/platform) implementation.
- NativeDkls23KeysApi
- Dkls23KeysApi backed by a native (FFI/platform) implementation.
- NativeED25519SigningApi
- Native (FFI) implementation of ed25519-family signing/verification.
- NativeFrostApi
- FrostApi backed by a native (FFI/platform) implementation.
- NativeG1ProjectiveCurveApi
- G1ProjectiveCurveApi backed by a native (FFI/platform) implementation.
- NativeG2ProjectiveCurveApi
- G2ProjectiveCurveApi backed by a native (FFI/platform) implementation.
- NativeHashApi
- HashApi backed by a native (FFI/platform) implementation.
- NativeJubJubCurveApi
- JubJubCurveApi backed by a native (FFI/platform) implementation.
- NativeKeyDerivationApi
- KeyDerivationApi backed by a native (FFI/platform) implementation.
- NativeMLDSASigningApi
- Native (FFI) implementation of ML-DSA key generation/signing/verification.
- NativeMuSig2Api
- MuSig2Api backed by a native (FFI/platform) implementation.
- NativePallasCurveApi
- PallasCurveApi backed by a native (FFI/platform) implementation.
- NativeRedJubJubSigningApi
- Native (FFI) implementation of RedJubjub (Zcash Sapling RedDSA) signing/verification.
- NativeRedPallasSigningApi
- Native (FFI) implementation of RedPallas (Zcash Orchard RedDSA) signing/verification.
- NativeSecp256k1CurveApi
- Secp256k1CurveApi backed by a native (FFI/platform) implementation.
- NativeSecp256r1CurveApi
- Secp256r1CurveApi backed by a native (FFI/platform) implementation.
- NativeSecp256r1SigningApi
- Native (FFI) implementation of secp256r1 signing/verification.
- NativeSolanaZkApi
-
SolanaZkApi backed by the Rust
solana_zkbackend (FFI/platform). All proofs use on-chain instruction transcripts. - NativeVestaCurveApi
- VestaCurveApi backed by a native (FFI/platform) implementation.
- NativeX25519Api
- X25519Api backed by a native (FFI/platform) implementation.
-
NumeralString<
T extends NumeralString< T> > - Abstract interface representing a numeral string over some radix.
- P128Pow5T3Fp
- P128Pow5T3Fq
- PallasAffinePoint
- A Pallas point in affine (Montgomery-limb) coordinates.
- PallasCurveApi
- Pallas curve operations, beyond the shared CurveApi.
- PallasFp
- Pallas base field (Fp) element, internally represented as 4 64-bit limbs Uint64 in Montgomery form. Also Vesta's scalar field.
- PallasFPConst
- Pallas base-field (Fp) domain parameters and isogeny constants. Generated data — do not hand-edit the numeric values.
- PallasIsoAffinePoint
- PallasIsoPoint in affine coordinates.
- PallasIsoPoint
- A point on the isogenous curve used to compute the Pallas SSWU hash-to-curve map, in projective coordinates.
- PallasPoint
- A Pallas point in projective (Montgomery-limb) coordinates.
-
PastaAffinePoint<
SCALAR extends PastaFieldElement< SCALAR> , BASE extends PastaFieldElement<BASE> , P extends PastaPoint<SCALAR, BASE, P> > - A Pasta point in affine coordinates.
-
PastaCurveParams<
F extends PastaFieldElement< F> > -
A Pasta curve's Weierstrass coefficients (
y^2 = x^3 + a*x + b). -
PastaFieldElement<
F extends PastaFieldElement< F> > - Abstract base class for elements of a Pasta prime field, supporting arithmetic, comparison, and byte/bit conversions.
-
PastaPoint<
SCALAR extends PastaFieldElement< SCALAR> , BASE extends PastaFieldElement<BASE> , P extends PastaPoint<SCALAR, BASE, P> > - A Pasta point in projective coordinates, with full group and cofactor operations.
-
PastaSqrtTables<
F extends PastaFieldElement< F> > - Precomputed lookup tables for the Pasta field square-root algorithm (sqrtAlt/sqrtRatio), a table-based variant of Tonelli-Shanks.
- PastaUtils
- Shared hash-to-curve and square-root helpers used by the Pasta curves.
- PBKDF2
-
PBKDF2 (RFC 8018) key derivation, parameterized by an HMAC
mac. - PedersenHash
- The Pedersen hash over JubJub.
- PedersenUtils
- Precomputed generators and helpers for the Pedersen hash.
- Personalization
- PersonalizationMerkleTree
- PersonalizationNoteCommitment
-
PoseidonHash<
F extends PastaFieldElement< F> > - The Poseidon algebraic hash function.
-
PoseidonHashDomain<
F extends PastaFieldElement< F> > - Domain separation for a PoseidonHash.
-
PoseidonSpec<
F extends PastaFieldElement< F> > - PoseidonUtils
- Helpers for deriving Poseidon round constants and MDS matrices.
- 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.
- RFC6979
- Deterministic per-signature nonce ("k") generation for DSA/ECDSA, per RFC 6979 (https://www.rfc-editor.org/rfc/rfc6979). Curve-agnostic: pass the curve's order explicitly.
- RIPEMD128
-
A class representing the RIPEMD-128 hash algorithm, extending the
_RIPEMDbase class. - RIPEMD160
-
A class representing the RIPEMD-160 hash algorithm, extending the
_RIPEMDbase class. - RIPEMD256
-
A class representing the RIPEMD-256 hash algorithm, extending the
_RIPEMDbase class. - RIPEMD320
-
A class representing the RIPEMD-320 hash algorithm, extending the
_RIPEMDbase class. - RistrettoCurveApi
- Ristretto group operations, beyond the shared CurveApi.
- RistrettoPoint
- A Ristretto255 point: a coset representative stored as an EdwardsLimbPoint in extended coordinates.
- Rng
- Mixin adding convenience number-generation methods on top of a nextBytes-producing random source.
- Salsa20
-
Salsa20 stream cipher (Bernstein, Salsa20/20) with
HSalsa20and XSalsa20 keystream derivation. - SalsaBox
-
NaCl
crypto_box: X25519 key agreement + XSalsa20-Poly1305. - Scrypt
- scrypt (RFC 7914) key derivation.
- Secp256k1AffinePoint
- Secp256k1Bip340SigningParams
- Parameters for a BIP-340 Schnorr sign/verify over secp256k1.
- Secp256k1CurveApi
- secp256k1 curve operations: compressed (33) + uncompressed (65) forms.
- Secp256k1Fp
- Secp256k1FpConst
- Secp256k1Fr
- Secp256k1FrConst
- Secp256k1Params
- Secp256k1Point
- 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.
- Secp256r1AffinePoint
- Secp256r1CurveApi
- secp256r1 (NIST P-256): compressed (33) + uncompressed (65) forms.
- Secp256r1Fp
- Secp256r1FpConst
- Secp256r1Fr
- Secp256r1FrConst
- Secp256r1Params
- Secp256r1Point
- 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.
-
SerializableHash<
T extends BuHashState> -
The
SerializableHashabstract class extends theHashclass and adds functionality for saving, restoring, and cleaning hash states. - SessionCrypto
-
TON Connect session cryptography (
SessionCryptoin@tonconnect/protocol). - SH1State
- The SH1State class represents the state of the SHA-1 hash algorithm.
- SHA1
- A class representing the SHA-1 (Secure Hash Algorithm 1) hash algorithm.
- SHA224
-
The
SHA224class represents the SHA-224 hash algorithm, which is a variant of SHA-256. - SHA256
- The SHA256 class represents the SHA-256 hash algorithm.
- SHA256State
- Serializable snapshot of an in-progress SHA-256 computation.
- SHA3
-
The
SHA3class is used to compute hash digests of data, and it allows customization of the digest length - SHA3224
- The SHA3224 class represents a specific implementation of the SHA-3 (Secure Hash Algorithm 3) hash function with a digest length of 224 bits (28 bytes).
- SHA3256
- The SHA3256 class represents a specific implementation of the SHA-3 (Secure Hash Algorithm 3) hash function with a digest length of 256 bits (32 bytes).
- SHA3384
- The SHA3384 class represents a specific implementation of the SHA-3 (Secure Hash Algorithm 3) hash function with a digest length of 384 bits (48 bytes).
- SHA3512
- The SHA3512 class represents a specific implementation of the SHA-3 (Secure Hash Algorithm 3) hash function with a digest length of 512 bits (64 bytes).
- SHA384
-
The
SHA384class extends the SHA-512 hash algorithm to produce 384-bit digests. - SHA512
-
The
SHA512class implements the SHA-512 hash algorithm. - SHA512256
- The SHA512256 class extends the SHA-512 hash function, specifically truncating its output to 256 bits (32 bytes). It inherits the implementation of the SHA-512 hash algorithm
- SHA512State
-
The
SHA512Stateclass represents the state of a SHA-512 hash calculation. - SHAKE
- The SHAKE class represents the SHAKE (Secure Hash Algorithm KEccak) extendable-output hash function.
- SHAKE128
- SHAKE128 is an implementation of the SHAKE128 extendable-output function.
- SHAKE256
- SHAKE256 is an implementation of the SHAKE256 extendable-output function.
- SinsemillaConst
- SinsemillaPad
- Pads the given iterator
- SolanaAeCiphertext
- AES decryptable balance (32 bytes, symmetric sidecar).
- SolanaElGamalCiphertext
- Solana ElGamal ciphertext (commitment || handle, 64 bytes).
- SolanaElGamalPubkey
- Validated Solana ElGamal pubkey (32-byte Ristretto point).
- SolanaZkApi
-
High-level Solana ZK API (dalek Bulletproofs + Sigma
protocols). Lengths follow the on-chain
zk-elgamal-proofencodings. Amounts are full-range Dart ints (validated to u64 at the boundary). - SolanaZkConstants
- Solana Twisted ElGamal byte types (dalek Bulletproofs stack, NOT Monero Bulletproofs+). Pure-Dart codecs only; proving lives in Rust.
- SolanaZkProofBytes
- Opaque proof bytes with kind tag (proving is native-only).
-
Sponge<
F extends PastaFieldElement< F> > - Sponge construction driving a Poseidon permutation.
-
SpongeMode<
F extends Object> -
Squeezing<
F extends Object> - Strobe
- Strobe is a cryptographic framework for building secure, stateful, and authenticated cryptographic protocols. Strobe-128/1600 and Strobe-256/1600 for standards compliance.
- StrobeFlags
- Class representing Strobe operation flags.
- StrobeOperation
- enum representing Strobe operations.
- StrobeSecParam
- Security level for a Strobe instance (128- or 256-bit).
- 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.
- TonConnectKeyPair
-
Serializable TON Connect session keypair (hex strings, no
0xprefix). - UnsupportedEcPoint
- A placeholder ECPoint for curves/operations that aren't implemented; every operation throws.
- ValidatedAEADApi
- AEADApi wrapper that validates key length before delegating.
- ValidatedBn254G1CurveApi
- Bn254G1 with validation.
- ValidatedBn254G2CurveApi
- Bn254G2 with validation.
- ValidatedCurveApi
- Validates lengths on every CurveApi call, then delegates to inner.
- ValidatedDkls23KeysApi
- Dkls23KeysApi wrapper that validates argument lengths before delegating.
- ValidatedED25519SigningApi
- Validates argument lengths/key types before delegating to the inner backend.
- ValidatedG1ProjectiveCurveApi
- G1 with validation.
- ValidatedG2ProjectiveCurveApi
- G2 with validation.
- ValidatedHashApi
- HashApi wrapper that validates arguments before delegating.
- ValidatedJubJubCurveApi
- ValidatedCurveApi wrapper for a JubJubCurveApi implementation.
- ValidatedKeyDerivationApi
- KeyDerivationApi wrapper that rejects negative numeric arguments before delegating.
- ValidatedMLDSASigningApi
- Validates arguments before delegating to the inner backend.
- ValidatedMuSig2Api
- MuSig2Api wrapper that validates argument lengths before delegating.
- ValidatedPallasCurveApi
- ValidatedCurveApi wrapper for a PallasCurveApi implementation.
- ValidatedRedJubJubSigningApi
- Validates argument lengths before delegating to the inner backend.
- ValidatedRedPallasSigningApi
- Validates argument lengths before delegating to the inner backend.
- ValidatedSecp256k1CurveApi
- ValidatedCurveApi wrapper for a Secp256k1CurveApi implementation.
- ValidatedSecp256r1CurveApi
- ValidatedCurveApi wrapper for a Secp256r1CurveApi implementation.
- ValidatedSecp256r1SigningApi
- Validates argument lengths before delegating to the inner backend.
- ValidatedVestaCurveApi
- ValidatedCurveApi wrapper for a VestaCurveApi implementation.
- ValidatedX25519Api
- X25519Api wrapper that validates every argument's length before delegating.
- VestaAffinePoint
- A Vesta point in affine (Montgomery-limb) coordinates.
- VestaCurveApi
- Vesta curve operations, beyond the shared CurveApi.
- VestaFq
- Vesta base field (Fq) element, internally represented as 4 64-bit limbs (Uint64) in Montgomery form. Also Pallas's scalar field.
- VestaFQConst
- Vesta base-field (Fq) domain parameters and isogeny constants. Generated data — do not hand-edit the numeric values.
- VestaIsoAffinePoint
- VestaIsoPoint in affine coordinates.
- VestaIsoPoint
- A point on the isogenous curve used to compute the Vesta SSWU hash-to-curve map, in projective coordinates.
- VestaPoint
- A Vesta point in projective (Montgomery-limb) coordinates.
-
WeierstrassCurveParams<
B> -
WeierstrassField<
F extends WeierstrassField< F> > -
WeierstrassPoint<
SCALAR extends CryptoField< SCALAR> , BASE extends CryptoField<BASE> , P extends WeierstrassPoint<SCALAR, BASE, P> > -
WeierstrassPrimeField<
F extends WeierstrassPrimeField< F> > -
WeierstrassScalar<
F extends WeierstrassScalar< F> > - WeierstrassSecp256k1CurveApi
- Secp256k1CurveApi backed by the limb-based Secp256k1Point.
- WeierstrassSecp256r1CurveApi
- Secp256r1CurveApi backed by the limb-based Secp256r1Point.
- X25519
- Implements scalar multiplication on Curve25519 using the Montgomery ladder. This is the basis for X25519 key agreement as described in RFC 7748.
- X25519Api
- X25519 (Curve25519 Diffie-Hellman, RFC 7748) operations.
- X25519Keypair
- Represents an X25519 keypair used for elliptic curve Diffie-Hellman (ECDH).
- XModemCrc
- A class for calculating and verifying XModem CRC (Cyclic Redundancy Check).
- XSalsa20Poly1305
-
XSalsa20-Poly1305 authenticated encryption (NaCl
crypto_secretbox). - XXHash
- xxHash: a fast, non-cryptographic hash. Do not use where collision resistance matters.
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). - DklsProtocolCurve
- 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.
- FF1Encoding
- Encoding modes for FF1 format-preserving encryption.
- FieldType
- Which prime field a Poseidon instance operates over.
- FrostCurve
-
FROST threshold key-family curve selector (
0= secp256k1,1= Ed25519). Pure data: record/encoding curve tag shared by the keys layer. - JwtSupportedAlgorithm
- JWS algorithms supported for signing/verifying a Jwt.
- KeccakFamily
- PaddingAlgorithm
- Block cipher padding schemes.
- PastaCurveName
-
Field elements are represented as multiple fixed-size limbs (typically
4
Uint64s) with algorithms written in a constant-time style. Because they rely on multi-precision arithmetic over Dart ints, these implementations are not guaranteed to be constant-time at the machine level and should not be considered fully side-channel resistant. Identifies which of the four Pasta curves a point belongs to. - RedJubJubVariant
- Sapling RedJubjub domain (spend-auth vs binding).
- RedPallasVariant
- Orchard RedPallas domain (spend-auth vs binding).
- SboxType
- Which S-box a Poseidon instance uses.
- SolanaZkProofKind
- zk-token-proof kinds. Solana uses dalek Bulletproofs + Sigma protocols; none of these verify against Monero Bulletproofs+.
Extensions
Functions
-
pastaCtEqualsMask(
PastaFieldElement< PastaFieldElement> a, PastaFieldElement<PastaFieldElement> b) → Uint64 - 0/1 mask: 1 iff the field elements are equal. Fixed iteration count, no early exit.
-
pastaIsZeroMask(
PastaFieldElement< PastaFieldElement> e) → Uint64 -
0/1 mask: 1 iff the field element is zero. Branch-free identity test
for point arithmetic (no
boolon secret data).
Typedefs
- CbGenerateRandom = BuBytes Function(int length)
-
Generates
lengthbytes of random data. -
CbHashFunc<
T extends BuHashState> = BuSerializableHash< T> Function()