Skip to main content

IUserSignatureVerifier

Namespace: IotaSdk

Verifier that will verify all UserSignature variants

public interface IUserSignatureVerifier

Attributes NullableContextAttribute

Methods​

Verify(Byte[], UserSignature)​

void Verify(Byte[] message, UserSignature signature)

Parameters​

message Byte[]

signature UserSignature

Exceptions​

SdkFfiException

WithMultisigVerifier(MultisigVerifier)​

Replaces the verifier used for multisig signatures, including the setting from with_reject_partially_signed_mixed_ed25519. Copies the current settings of multisig_verifier; later changes to it are not picked up.

UserSignatureVerifier WithMultisigVerifier(MultisigVerifier multisigVerifier)

Parameters​

multisigVerifier MultisigVerifier

Returns​

UserSignatureVerifier

WithPasskeyVerifier(PasskeyVerifier)​

The verifier used for direct passkey signatures. Passkey members of a multisig are checked by the multisig verifier instead. Copies the current settings of passkey_verifier; later changes to it, such as with_address, are not picked up.

UserSignatureVerifier WithPasskeyVerifier(PasskeyVerifier passkeyVerifier)

Parameters​

passkeyVerifier PasskeyVerifier

Returns​

UserSignatureVerifier

WithRejectPartiallySignedMixedEd25519(Boolean)​

Reject partially signed multisigs whose committee mixes Ed25519 with other key schemes. Such a multisig is still accepted when every member has signed.

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.

UserSignatureVerifier WithRejectPartiallySignedMixedEd25519(bool reject)

Parameters​

reject Boolean

Returns​

UserSignatureVerifier