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< members}) → List<int> >int> -
Aggregate member keys by point addition (Rust
agg_public_keyseffect). -
baseMult(
S s) → P -
dkg(
{required DklsProtocolCurve curve, required List< int> sid, required int n, required int t, required List<List< seeds}) → List<int> >DklsProtocolShare> -
Full DKG:
nparties, thresholdt, undersid— returns key shares in party order (Rustdkg_oneshothonest path). -
evalPoly(
List< S> coeffs, S x) → S -
Horner polynomial evaluation (Rust
eval_poly). -
identity(
) → P -
importSecrets(
{required DklsProtocolCurve curve, required List< List< secrets}) → List<int> >DklsProtocolShare> -
Additive import (Rust
import_secrets): each secret becomes partyi'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
idsforxi(Rustlagrange_at_zero+check_idseffect: non-empty set, ids in 1..=u32max, no duplicates,xia 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< seeds}) → List<int> >DklsProtocolShare> -
Key refresh (Rust
refresh_oneshothonest 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_berejection). -
scalarFromInt(
int v) → S -
Strict parse of a participant id (1-based,
u32wire 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< int> sid, required List<int> msgHash, required List<List< seeds}) → List<int> >int> -
Threshold sign over a 32-byte hash (Rust
sign_oneshothonest 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_hasheffect). -
xOnly(
{required List< int> groupPk}) → List<int> -
x-only form (Rust
group_x_onlyeffect).
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited