Dkls23KeysApi class abstract interface

Backend interface for the DKLs23 threshold key family.

Shares cross the boundary as framed blobs of fixed-size keyshare records: DKG and refresh return such blobs, sign consumes one (any >= t subset with per-share seeds aligned by position). Signatures are compact r(32) || s(32) (64 bytes, low-S); message hashes and per-party seeds are 32 bytes; group/member keys are 33-byte compressed points.

Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

aggPublicKeys({required Dkls23Curve curve, required List<int> members, required int n, int? threshold}) → BuBytes
Aggregate member public keys (n × 33 bytes) → group key (33 bytes). threshold is metadata only (the sum is threshold-independent): validated as 2 <= t <= n, defaults to n when null.
dkg({required Dkls23Curve curve, required List<int> sid, required int n, required int t, required List<int> seeds}) → BuBytes
Full DKG ceremony (n parties, threshold t) from n 32-byte seeds → framed shares blob. Throws on bad n/t/seed lengths.
importSecrets({required Dkls23Curve curve, required List<int> secrets, required int n}) → BuBytes
Import existing secrets as an additive n-of-n quorum (no DKG): n × 32-byte secrets → framed shares blob.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh({required List<int> sid, required List<int> sharesBlob, required List<int> seeds}) → BuBytes
Rotate shares (group key unchanged) → framed shares blob.
sign({required Dkls23Curve curve, required List<int> sid, required List<int> msgHash, required List<int> sharesBlob, required List<int> seeds}) → BuBytes
Threshold-sign a 32-byte message hash → 64-byte compact signature.
toString() → String
A string representation of this object.
inherited
verify({required Dkls23Curve curve, required List<int> groupPk, required List<int> msgHash, required List<int> signature}) → bool
Verify a compact signature against a 33-byte group key. Returns false if the equation fails; throws on malformed lengths/keys.
xOnly({required Dkls23Curve curve, required List<int> groupPk}) → BuBytes
X-only form of a group key → 32 bytes.

Operators

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