ThresholdParams class final

Describes a threshold instance: quorum size, participant count, and scheme.

Spec: doc/PARAMS.md, doc/API.md §3.1.

Constructors

ThresholdParams.fromBytes(Uint8List bytes)
Parses canonical bytes.
factory
ThresholdParams.tOfN({required int t, required int n, SchemeId scheme = SchemeId.frostEd25519V1})
Creates validated parameters.
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
n → int
Total participants / shares.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scheme → SchemeId
Cryptographic scheme for this threshold instance.
final
t → int
Minimum honest participants required.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBytes() → Uint8List
Canonical serialized bytes (doc/SERIALIZATION.md §4.1).
toString() → String
A string representation of this object.
override

Operators

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