DklsK1Engine class

secp256k1 (K1) suite engine: typed Secp256k1Fr/Secp256k1Point math, no dynamic, no per-call curve dispatch.

Inheritance

Constructors

DklsK1Engine()
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).
inherited
baseMult(Secp256k1Fr s) → Secp256k1Point
override
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).
inherited
evalPoly(List<Secp256k1Fr> coeffs, Secp256k1Fr x) → Secp256k1Fr
Horner polynomial evaluation (Rust eval_poly).
inherited
identity() → Secp256k1Point
override
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.
inherited
lagrangeAtZero(List<int> ids, int xi) → Secp256k1Fr
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).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pointFromBytes(List<int> bytes) → Secp256k1Point
override
pointToCompressed(Secp256k1Point p) → List<int>
override
pointXBytes(Secp256k1Point p) → List<int>
x-coordinate bytes (32 BE) of a non-identity point.
override
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.
inherited
scalarFromBe(List<int> bytes) → Secp256k1Fr?
Strict 32-byte parse into the suite field, or null when out of range (Rust from_bytes_be rejection).
override
scalarFromInt(int v) → Secp256k1Fr
Strict parse of a participant id (1-based, u32 wire range).
inherited
scalarInv(Secp256k1Fr a, String op) → Secp256k1Fr
inherited
scalarMod(List<int> bytes) → Secp256k1Fr
Reducing 32-byte parse (never rejects, Rust from_bytes_mod_order).
override
scalarOne() → Secp256k1Fr
override
scalarToBytes(Secp256k1Fr f) → List<int>
Canonical 32-byte big-endian encoding.
inherited
scalarZero() → Secp256k1Fr
override
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.
inherited
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).
inherited
xOnly({required List<int> groupPk}) → List<int>
x-only form (Rust group_x_only effect).
inherited

Operators

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