DklsK1Engine class
secp256k1 (K1) suite engine: typed Secp256k1Fr/Secp256k1Point
math, no dynamic, no per-call curve dispatch.
- Inheritance
-
- Object
- DklsEngine<
Secp256k1Fr, Secp256k1Fp, Secp256k1Point> - DklsK1Engine
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< members}) → List<int> >int> -
Aggregate member keys by point addition (Rust
agg_public_keyseffect).inherited -
baseMult(
Secp256k1Fr s) → Secp256k1Point -
override
-
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).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< 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.inherited -
lagrangeAtZero(
List< int> ids, int xi) → Secp256k1Fr -
Lagrange coefficient at zero over
idsforxi(Rustlagrange_at_zero+check_idseffect: non-empty set, ids in 1..=u32max, no duplicates,xia 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< seeds}) → List<int> >DklsProtocolShare> -
Key refresh (Rust
refresh_oneshothonest 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_berejection).override -
scalarFromInt(
int v) → Secp256k1Fr -
Strict parse of a participant id (1-based,
u32wire 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< 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.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_hasheffect).inherited -
xOnly(
{required List< int> groupPk}) → List<int> -
x-only form (Rust
group_x_onlyeffect).inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited