DklsUtils class

Static entry point of the pure-Dart DKLs23 engine (the FROST precedent: FrostSecp256k1 / FrostEd25519 behind DartFrostApi).

Constructors

DklsUtils()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

agg({required DklsProtocolCurve curve, required List<List<int>> members}) → List<int>
Aggregate member keys by point addition (Rust agg_public_keys effect).
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).
frame(List<List<int>> items) → List<int>
Frame items as [len:u32 LE] ++ bytes concatenations.
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.
keyshareBytes(DklsProtocolShare sh) → List<int>
parseKeyshare(List<int> raw) → DklsProtocolShare
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.
sha256(List<int> data) → List<int>
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.
taggedExpand(List<int> tag, List<int> seed, List<int> context, int outLen) → List<int>
MGF-style expansion: SHA256(len||tag||len||seed||len||ctx||counter) (counter u32 BE). Matches Rust tagged_expand.
taggedHash(List<int> tag, List<List<int>> components) → List<int>
tagged_hash(tag, components) — byte-identical to the Rust oracle: len(tag)||tag||len(c0)||c0||..., each length a u64 BE.
unframe(List<int> blob) → List<List<int>>
verify({required DklsProtocolCurve curve, 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 DklsProtocolCurve curve, required List<int> groupPk}) → List<int>
x-only form (Rust group_x_only effect).