MultisigVerifier
MultisigVerifier
class MultisigVerifier
init()
convenience init()
debugDescription
var debugDescription: String { get }
A textual representation of this instance, suitable for debugging.
Calling this property directly is discouraged. Instead, convert an
instance of any type to a string by using the String(reflecting:)
initializer. This initializer works with any type, and uses the custom
debugDescription property for types that conform to
CustomDebugStringConvertible:
struct Point: CustomDebugStringConvertible {
let x: Int, y: Int
var debugDescription: String {
return "(\(x), \(y))"
}
}
let p = Point(x: 21, y: 30)
let s = String(reflecting: p)
print(s)
// Prints "(21, 30)"
The conversion of p to a string in the assignment to s uses the
Point type's debugDescription property.
verify(message:signature:)
func verify(message: Data, signature: MultisigAggregatedSignature) throws
withAcceptPasskeyInMultisig(accept:)
func withAcceptPasskeyInMultisig(accept: Bool) -> MultisigVerifier
Accept passkey members inside a multisig. Disabled by default.
withRejectPartiallySignedMixedEd25519(reject:)
func withRejectPartiallySignedMixedEd25519(reject: Bool) -> MultisigVerifier
Reject partially signed multisigs whose committee mixes Ed25519 with other key schemes. Such
a multisig is still accepted when every member has signed. MultisigAggregator::finish
applies the same rule through its verifier.
Enabled by default. The network accepted such multisigs before protocol version 39 (node release 1.35), so disabling it accepts them again, but a partially signed one can then not be told apart from one forged through a committee whose address collides with the signer's.