DklsEngine<S extends WeierstrassScalar<S>, B extends CryptoField<B>, P extends WeierstrassPoint<S, B, P>> class abstract

Typed DKLs23 suite engine.

S is the suite scalar field (Secp256k1Fr/Secp256r1Fr), P the suite point (Secp256k1Point/Secp256r1Point). Participant ids are plain int counters (1-based, u32 wire range — the only range the codec and the Rust party_id support); scalar values cross method boundaries as field elements, never as dynamic, and no BigInt appears anywhere on this path.

Implementers

Constructors

DklsEngine()
const

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

agg({required List<List<int>> members}) → List<int>
Aggregate member keys by point addition (Rust agg_public_keys effect).
baseMult(S s) → P
dkg({required DklsProtocolCurve curve, required List<int> sid, required int n, required int t, required List<List<int>> seeds}) → List<DklsProtocolShare>
Full DKG: n parties, threshold t, under sid — returns key shares in party order (Rust dkg_oneshot honest path).
evalPoly(List<S> coeffs, S x) → S
Horner polynomial evaluation (Rust eval_poly).
identity() → P
importSecrets({required DklsProtocolCurve curve, required List<List<int>> secrets}) → List<DklsProtocolShare>
Additive import (Rust import_secrets): each secret becomes party i's share pre-divided by its full-set Lagrange weight, group key = Σ G·s_i.
lagrangeAtZero(List<int> ids, int xi) → S
Lagrange coefficient at zero over ids for xi (Rust lagrange_at_zero + check_ids effect: non-empty set, ids in 1..=u32max, no duplicates, xi a member).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pointFromBytes(List<int> bytes) → P
pointToCompressed(P p) → List<int>
pointXBytes(P p) → List<int>
x-coordinate bytes (32 BE) of a non-identity point.
refresh({required List<DklsProtocolShare> olds, required List<int> sid, required List<List<int>> seeds}) → List<DklsProtocolShare>
Key refresh (Rust refresh_oneshot honest path): zero-constant-term delta rows, column sums applied; group key unchanged.
scalarFromBe(List<int> bytes) → S?
Strict 32-byte parse into the suite field, or null when out of range (Rust from_bytes_be rejection).
scalarFromInt(int v) → S
Strict parse of a participant id (1-based, u32 wire range).
scalarInv(S a, String op) → S
scalarMod(List<int> bytes) → S
Reducing 32-byte parse (never rejects, Rust from_bytes_mod_order).
scalarOne() → S
scalarToBytes(S f) → List<int>
Canonical 32-byte big-endian encoding.
scalarZero() → S
sign({required List<DklsProtocolShare> shares, required List<int> sid, required List<int> msgHash, required List<List<int>> seeds}) → List<int>
Threshold sign over a 32-byte hash (Rust sign_oneshot honest path): Lagrange-rescales the subset key shares to additive (x = Σ λ·σ) while fresh nonces stay purely additive; s = k^-1(e + r·x), low-S.
toString() → String
A string representation of this object.
inherited
verify({required List<int> groupPk, required List<int> msgHash, required List<int> signature}) → bool
Standard ECDSA verify over a 32-byte hash (Rust verify_hash effect).
xOnly({required List<int> groupPk}) → List<int>
x-only form (Rust group_x_only effect).

Operators

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