crypto/crypto/protocol/protocol library

Classes

DartFrostApi
FrostApi backed by this package's pure-Dart engines (FrostSecp256k1 / FrostEd25519) — the MuSig2 precedent (DartMuSig2Api delegates to MuSig2).
DartMuSig2Api
MuSig2Api backed by this package's pure-Dart MuSig2.
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.
DklsProtocolShare
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 / FrostEd25519 behind DartFrostApi).
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.
FrostEngine<P, S>
Shared interface of the pure-Dart FROST engines (FrostSecp256k1 / FrostEd25519, RFC 9591 Sections 4-5 plus Appendix C) — the MuSig2 precedent (MuSig2Context behind DartMuSig2Api).
FrostEngineCommitment<P>
One participant's entry in the commitment list (RFC 9591 Section 4.3), shared by both engine suites. id is a plain 1-based u32-range participant counter (wire order + sorting need ordering, which field types deliberately lack); scalar values use S.
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 (P is the point type, S the scalar type: Secp256k1Fr on secp256k1, Ed25519Fr on Ed25519).
FrostEngineShare<S>
Shamir share for one participant (RFC 9591 Appendix C.1), shared by both engine suites (S is the suite scalar type).
FrostGroupInfo
Group info output: group key + member public keys, in id order (1..=max).
FrostKeyShare
One FROST key share: 1-based participant identifier (u32, mirrors BuFrostShare) + 32-byte secret scalar.
FrostNoncePair
Round-1 nonce output: hiding/binding scalars (32 bytes each) plus their commitments as raw point bytes (mirrors BuFrostNonces).
FrostReshare
Threshold-reshare output: fresh per-participant shares as one concatenated blob (n x 32-byte scalars, ids order) + member public keys (n elements) + group key.
FrostSecp256k1
FROST(secp256k1, SHA-256) — RFC 9591 Section 6.5.
FrostThresholdSignature
Final FROST threshold signature (R, z): R as raw point bytes (33 bytes secp256k1, 32 bytes Ed25519) + 32-byte scalar (mirrors BuFrostSignature).
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.
MerlinTranscript
A transcript object for the Merlin cryptographic protocol.
MuSig2Api
BIP-327 MuSig2 — public factory returns BuResult only.
Musig2Const
MuSig2 variant 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.
MuSig2KeyAggContext
The result of aggregating signer public keys, plus any applied tweaks.
MuSig2Nonce
A MuSig2 nonce pair: the secret nonce and its public counterpart.
MuSig2Session
Per-signer state for one MuSig2 signing session.
MuSig2SessionValues
Values derived once per session and reused across partial signatures.
MuSig2Tweak
A tweak applied to an aggregated MuSig2 key (x-only or plain).
MuSig2UtilsConst
Constants backing MuSig2Utils for the blinded signing path.
NativeFrostApi
FrostApi backed by a native (FFI/platform) implementation.
NativeMuSig2Api
MuSig2Api backed by a native (FFI/platform) implementation.
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).
ValidatedMuSig2Api
MuSig2Api wrapper that validates argument lengths before delegating.

Enums

DklsProtocolCurve
JwtSupportedAlgorithm
JWS algorithms supported for signing/verifying a Jwt.