You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The createAuthWitness is currently taking in a raw buffer or Field. This makes it hard to know what is actually being signed.
Make a createRawAuthWitness that is using the single buffer or field
Make a createAuthWitness that takes a request and caller, such that a frontend can provide this to the user, and the signing is done using those values for better visibility.
The text was updated successfully, but these errors were encountered:
Fixes#4821 and #5075.
Renames the functions related to `AuthWit` to use a similar naming scheme.
Extends the `createAuthWit`, `setPublicAuthWit` and `cancelAuthWit` functions such that they can now take an object
```typescript
{
caller: AztecAddress;
action: ContractFunctionInteraction | FunctionCall;
},
```
Allowing for adding a new authwit more simply.
Example:
```typescript
await user1Wallet.createAuthWit({
caller: l2Bridge.address,
action: l2Token.methods.burn(ownerAddress, withdrawAmount, nonce)
});
```
The
createAuthWitness
is currently taking in a raw buffer or Field. This makes it hard to know what is actually being signed.Make a
createRawAuthWitness
that is using the single buffer or fieldMake a
createAuthWitness
that takes a request and caller, such that a frontend can provide this to the user, and the signing is done using those values for better visibility.The text was updated successfully, but these errors were encountered: