ValidatedDkls23KeysApi class
Dkls23KeysApi wrapper that validates argument lengths before delegating.
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- inner → Dkls23KeysApi
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
aggPublicKeys(
{required Dkls23Curve curve, required List< int> members, required int n, int? threshold}) → BuBytes -
Aggregate member public keys (
n× 33 bytes) → group key (33 bytes).thresholdis metadata only (the sum is threshold-independent): validated as2 <= t <= n, defaults tonwhen null.override -
dkg(
{required Dkls23Curve curve, required List< int> sid, required int n, required int t, required List<int> seeds}) → BuBytes -
Full DKG ceremony (
nparties, thresholdt) fromn32-byte seeds → framed shares blob. Throws on badn/t/seed lengths.override -
importSecrets(
{required Dkls23Curve curve, required List< int> secrets, required int n}) → BuBytes -
Import existing secrets as an additive n-of-n quorum (no DKG):
n× 32-byte secrets → framed shares blob.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh(
{required List< int> sid, required List<int> seeds}) → BuBytes -
Rotate shares (group key unchanged) → framed shares blob.
override
-
sign(
{required Dkls23Curve curve, required List< int> sid, required List<int> msgHash, required List<int> seeds}) → BuBytes -
Threshold-sign a 32-byte message hash → 64-byte compact signature.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
verify(
{required Dkls23Curve curve, required List< int> groupPk, required List<int> msgHash, required List<int> signature}) → bool -
Verify a compact signature against a 33-byte group key. Returns
false if the equation fails; throws on malformed lengths/keys.
override
-
xOnly(
{required Dkls23Curve curve, required List< int> groupPk}) → BuBytes -
X-only form of a group key → 32 bytes.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited