DklsUtils class
Static entry point of the pure-Dart DKLs23 engine (the FROST precedent:
FrostSecp256k1 / FrostEd25519 behind DartFrostApi).
Constructors
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< members}) → List<int> >int> -
Aggregate member keys by point addition (Rust
agg_public_keyseffect). -
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). -
frame(
List< List< items) → List<int> >int> -
Frame items as
[len:u32 LE] ++ bytesconcatenations. -
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. -
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. -
sha256(
List< int> data) → List<int> -
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. -
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 Rusttagged_expand. -
taggedHash(
List< int> tag, List<List< components) → List<int> >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_hasheffect). -
xOnly(
{required DklsProtocolCurve curve, required List< int> groupPk}) → List<int> -
x-only form (Rust
group_x_onlyeffect).