MuSig2AggregatePublicKey class
A MuSig2 aggregate public key (the x-only key a verifier checks a final aggregated signature against).
- Inheritance
-
- Object
- IMuSig2VerificationKey
- MuSig2AggregatePublicKey
- Implemented types
- Mixed-in types
Constructors
- MuSig2AggregatePublicKey.aggPublicKey(Secp256k1Point aggPublicPoint)
-
factory
-
MuSig2AggregatePublicKey.aggPublicKeys(List<
Secp256k1PublicKey> keys, {bool sortPubKeys = false}) -
factory
-
MuSig2AggregatePublicKey.fromBytes(List<
int> bytes) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- point → Secp256k1Point
-
final
-
publicKeys
→ List<
Secp256k1PublicKey> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → CryptoKeyType
-
no setteroverride
- variables → List
-
no setteroverride
Methods
-
generateNonces(
MuSig2GenerateNoncesParams params) → List< MuSig2Nonce> -
inherited
-
generateSession(
MuSig2GenerateSessionParams params) → List< MuSig2PartialSigningParams> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBytes(
{CryptoKeyEncoding mode = CryptoKeyEncoding.base}) → BuBytes -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
tweakedPoint(
List< MuSig2Tweak> tweaks) → Secp256k1Point -
override
-
verify(
MuSig2PartialVerifiyingParams params) → bool -
inherited
-
verifyAggregate(
MuSig2AggregateVerifiyingParams params) → bool -
Verifies the final aggregated (tweaked) MuSig2 signature.
inherited
-
xOnly(
) → BuBytes -
32-byte x-only aggregate key — this is the key a verifier checks the
final signature against, the same way a single BIP-340 pubkey would.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
isValidBytes(
List< int> bytes) → bool -
Static method to check the validity of a byte array as a public key for a specific elliptic curve type.
override
-
isValidKeyEncoding(
List< int> keyBytes, CryptoKeyEncoding encoding) → bool -
Checks whether
keyByteshas a valid length for the givenencoding.override -
layout(
) → Layout< MuSig2AggregatePublicKey>