@@ -215,7 +215,11 @@ pub fn assert_current_call_valid_authwit(context: &mut PrivateContext, on_behalf
215
215
* @param on_behalf_of The address that have authorized the current call
216
216
* @param inner_hash The hash of the message to authorize
217
217
*/
218
- pub fn assert_inner_hash_valid_authwit (context : &mut PrivateContext , on_behalf_of : AztecAddress , inner_hash : Field ) {
218
+ pub fn assert_inner_hash_valid_authwit (
219
+ context : &mut PrivateContext ,
220
+ on_behalf_of : AztecAddress ,
221
+ inner_hash : Field
222
+ ) {
219
223
// We perform a static call here and not a standard one to ensure that the account contract cannot re-enter.
220
224
let result : Field = context .static_call_private_function (
221
225
on_behalf_of ,
@@ -262,7 +266,11 @@ pub fn assert_current_call_valid_authwit_public(context: &mut PublicContext, on_
262
266
*
263
267
* @param on_behalf_of The address that have authorized the `inner_hash`
264
268
*/
265
- pub fn assert_inner_hash_valid_authwit_public (context : &mut PublicContext , on_behalf_of : AztecAddress , inner_hash : Field ) {
269
+ pub fn assert_inner_hash_valid_authwit_public (
270
+ context : &mut PublicContext ,
271
+ on_behalf_of : AztecAddress ,
272
+ inner_hash : Field
273
+ ) {
266
274
let result : Field = context .call_public_function (
267
275
CANONICAL_AUTH_REGISTRY_ADDRESS ,
268
276
comptime {
@@ -338,7 +346,12 @@ pub fn compute_authwit_nullifier(on_behalf_of: AztecAddress, inner_hash: Field)
338
346
* @param version The version of the chain that the message is being consumed on
339
347
* @param inner_hash The hash of the "inner" message that is being consumed
340
348
*/
341
- pub fn compute_authwit_message_hash (consumer : AztecAddress , chain_id : Field , version : Field , inner_hash : Field ) -> Field {
349
+ pub fn compute_authwit_message_hash (
350
+ consumer : AztecAddress ,
351
+ chain_id : Field ,
352
+ version : Field ,
353
+ inner_hash : Field
354
+ ) -> Field {
342
355
poseidon2_hash_with_separator (
343
356
[
344
357
consumer .to_field (),
0 commit comments