@@ -13,7 +13,7 @@ import {
1313import { AztecAddress } from '@aztec/stdlib/aztec-address' ;
1414import { siloNullifier } from '@aztec/stdlib/hash' ;
1515import { PrivateContextInputs } from '@aztec/stdlib/kernel' ;
16- import { type ContractClassLog , AppTaggingSecret , type TaggingIndexRange } from '@aztec/stdlib/logs' ;
16+ import { AppTaggingSecret , type ContractClassLog , type TaggingIndexRange } from '@aztec/stdlib/logs' ;
1717import { Tag } from '@aztec/stdlib/logs' ;
1818import { Note , type NoteStatus } from '@aztec/stdlib/note' ;
1919import {
@@ -204,11 +204,7 @@ export class PrivateExecutionOracle extends UtilityExecutionOracle implements IP
204204 * @returns An app tag to be used in a log.
205205 */
206206 public async getNextAppTagAsSender ( sender : AztecAddress , recipient : AztecAddress ) : Promise < Tag > {
207- const extendedSecret = await this . #calculateAppTaggingSecret(
208- this . contractAddress ,
209- sender ,
210- recipient ,
211- ) ;
207+ const extendedSecret = await this . #calculateAppTaggingSecret( this . contractAddress , sender , recipient ) ;
212208
213209 if ( ! extendedSecret ) {
214210 // We'd only fail to compute an extended secret if the recipient is an invalid address. To prevent
@@ -229,20 +225,10 @@ export class PrivateExecutionOracle extends UtilityExecutionOracle implements IP
229225 return Tag . compute ( { extendedSecret, index } ) ;
230226 }
231227
232- async #calculateAppTaggingSecret(
233- contractAddress : AztecAddress ,
234- sender : AztecAddress ,
235- recipient : AztecAddress ,
236- ) {
228+ async #calculateAppTaggingSecret( contractAddress : AztecAddress , sender : AztecAddress , recipient : AztecAddress ) {
237229 const senderCompleteAddress = await this . getCompleteAddressOrFail ( sender ) ;
238230 const senderIvsk = await this . keyStore . getMasterIncomingViewingSecretKey ( sender ) ;
239- return AppTaggingSecret . compute (
240- senderCompleteAddress ,
241- senderIvsk ,
242- recipient ,
243- contractAddress ,
244- recipient ,
245- ) ;
231+ return AppTaggingSecret . compute ( senderCompleteAddress , senderIvsk , recipient , contractAddress , recipient ) ;
246232 }
247233
248234 async #getIndexToUseForSecret( secret : AppTaggingSecret ) : Promise < number > {
0 commit comments