Skip to main content

Class: UserSignatureVerifier

Verifier that will verify all UserSignature variants

Extends​

  • UniffiAbstractObject

Implements​

Constructors​

Constructor​

new UserSignatureVerifier(): UserSignatureVerifier;

Returns​

UserSignatureVerifier

Overrides​

UniffiAbstractObject.constructor

Properties​

[destructorGuardSymbol]​

readonly [destructorGuardSymbol]: UniffiGcObject;

[pointerLiteralSymbol]​

readonly [pointerLiteralSymbol]: bigint;

[uniffiTypeNameSymbol]​

readonly [uniffiTypeNameSymbol]: "UserSignatureVerifier" = "UserSignatureVerifier";

Methods​

toDebugString()​

toDebugString(): string;

Returns​

string


toString()​

toString(): string;

Returns a string representation of an object.

Returns​

string


uniffiDestroy()​

uniffiDestroy(): void;

Explicitly tell Rust to destroy the native peer that backs this object.

Once this method has been called, any following method calls will throw an error.

Can be called more than once.

Returns​

void

Overrides​

UniffiAbstractObject.uniffiDestroy


uniffiUse()​

uniffiUse<T>(block): T;

A convenience method to use this object, then destroy it after its use.

Type Parameters​

T​

T

Parameters​

block​

(obj) => T

Returns​

T

Inherited from​

UniffiAbstractObject.uniffiUse


verify()​

verify(message, signature): void;

Parameters​

message​

ArrayBuffer

signature​

UserSignatureLike

Returns​

void

Implementation of​

UserSignatureVerifierLike.verify


withMultisigVerifier()​

withMultisigVerifier(multisigVerifier): UserSignatureVerifierLike;

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.

Parameters​

multisigVerifier​

MultisigVerifierLike

Returns​

UserSignatureVerifierLike

Implementation of​

UserSignatureVerifierLike.withMultisigVerifier


withPasskeyVerifier()​

withPasskeyVerifier(passkeyVerifier): UserSignatureVerifierLike;

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.

Parameters​

passkeyVerifier​

PasskeyVerifierLike

Returns​

UserSignatureVerifierLike

Implementation of​

UserSignatureVerifierLike.withPasskeyVerifier


withRejectPartiallySignedMixedEd25519()​

withRejectPartiallySignedMixedEd25519(reject): UserSignatureVerifierLike;

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.

Parameters​

reject​

boolean

Returns​

UserSignatureVerifierLike

Implementation of​

UserSignatureVerifierLike.withRejectPartiallySignedMixedEd25519


instanceOf()​

static instanceOf(obj_): obj_ is UserSignatureVerifier;

Parameters​

obj_​

any

Returns​

obj_ is UserSignatureVerifier