Skip to main content

Interface: AuthWitnessProvider

account.AuthWitnessProvider

Creates authorization witnesses.

Hierarchy

Methods

createAuthWit

createAuthWit(messageHashOrIntent): Promise<AuthWitness>

Computes an authentication witness from either a message hash or an intent (caller and an action). If a message hash is provided, it will create a witness for that directly. Otherwise, it will compute the message hash using the caller and the action of the intent.

Parameters

NameTypeDescription
messageHashOrIntentFr | Buffer | { action: FunctionCall | ContractFunctionInteraction ; caller: AztecAddress ; chainId?: Fr ; version?: Fr }The message hash or the intent (caller and action) to approve

Returns

Promise<AuthWitness>

The authentication witness