NonceSession class
BIP-327 MuSig2 two-round nonce session: generate nonce pairs, exchange, aggregate, then compute partial signatures.
Constructors
- NonceSession({required AggregatedKey aggKey, required Uint8List message})
Properties
- aggKey → AggregatedKey
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isComplete → bool
-
no setter
- message → Uint8List
-
final
-
nonces
→ List<
NoncePair> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addNonce(
NoncePair nonce) → void -
aggregateNonces(
) → Uint8List - BIP-327 NonceAgg: sum each participant's R1 and R2, then b = H("MuSig/noncecoef", R1_agg || R2_agg || Q_x || msg) mod n, R = R1_agg + b*R2_agg (or G if R = infinity). Returns 33-byte compressed R.
-
generateNonce(
Uint8List secretKey) → NoncePair - Generate a nonce pair per BIP-327 NonceGen.
-
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