Instance Method
isValid(_:for:)
Verifies a MuSig2 aggregate signature over an arbitrary-length message using secp256k1_schnorrsig_verify.
- iOS 13.0+
- macCatalyst 13.0+
- macOS 10.15+
- tvOS 13.0+
- visionOS 1.0+
- watchOS 6.0+
func isValid(_ signature: P256K.MuSig.AggregateSignature, for message: inout [UInt8]) -> Bool
Parameters
-
signature
-
The 64-byte P256K.MuSig.AggregateSignature to verify.
-
message
-
The message bytes that were signed (must match those used in the signing session).
Return Value
true if the aggregate signature is valid, false otherwise.