Skip to main content

Class: MultiSigSigner

TODO: Document

Extends

Constructors

new MultiSigSigner()

new MultiSigSigner(pubkey, signers): MultiSigSigner

Parameters

pubkey: MultiSigPublicKey

signers: Signer[] = []

Returns

MultiSigSigner

Overrides

Signer.constructor

Methods

signWithIntent()

signWithIntent(bytes, intent): Promise<SignatureWithBytes>

Sign messages with a specific intent. By combining the message bytes with the intent before hashing and signing, it ensures that a signed message is tied to a specific purpose and domain separator is provided

Parameters

bytes: Uint8Array

intent: IntentScope

Returns

Promise<SignatureWithBytes>

Inherited from

Signer.signWithIntent


toIotaAddress()

toIotaAddress(): string

Returns

string

Inherited from

Signer.toIotaAddress


getKeyScheme()

getKeyScheme(): SignatureScheme

Get the key scheme of the keypair: Secp256k1 or ED25519

Returns

SignatureScheme

Overrides

Signer.getKeyScheme


getPublicKey()

getPublicKey(): MultiSigPublicKey

The public key for this keypair

Returns

MultiSigPublicKey

Overrides

Signer.getPublicKey


sign()

sign(_data): never

Parameters

_data: Uint8Array

Returns

never

Overrides

Signer.sign


signData()

signData(_data): never

Parameters

_data: Uint8Array

Returns

never


signTransaction()

signTransaction(bytes): Promise<object>

Signs provided transaction by calling signWithIntent() with a TransactionData provided as intent scope

Parameters

bytes: Uint8Array

Returns

Promise<object>

signature

signature: string

bytes

bytes: string

Overrides

Signer.signTransaction


signPersonalMessage()

signPersonalMessage(bytes): Promise<object>

Signs provided personal message by calling signWithIntent() with a PersonalMessage provided as intent scope

Parameters

bytes: Uint8Array

Returns

Promise<object>

signature

signature: string

bytes

bytes: string

Overrides

Signer.signPersonalMessage