11import { Fr } from '@aztec/foundation/curves/bn254' ;
22import { openTmpStore } from '@aztec/kv-store/lmdb-v2' ;
33import { RevertCode } from '@aztec/stdlib/avm' ;
4- import type { AppTaggingSecret , ExtendedDirectionalAppTaggingSecret , TaggingIndexRange } from '@aztec/stdlib/logs' ;
5- import { PrivateLog , SiloedTag , siloedTagFor } from '@aztec/stdlib/logs' ;
4+ import type { AppTaggingSecret , TaggingIndexRange } from '@aztec/stdlib/logs' ;
5+ import { ExtendedDirectionalAppTaggingSecret , PrivateLog , SiloedTag , siloedTagFor } from '@aztec/stdlib/logs' ;
66import { randomConstrainedAppTaggingSecret , randomExtendedDirectionalAppTaggingSecret } from '@aztec/stdlib/testing' ;
77import { TxEffect , TxHash } from '@aztec/stdlib/tx' ;
88
@@ -629,7 +629,6 @@ describe('SenderTaggingStore', () => {
629629 // finalizer must not treat it as a surviving constrained-tag. The onchain emission would have used the
630630 // constrained domain separator, so the values are different.
631631 it ( 'does not cross-match a tag computed under the wrong domain separator' , async ( ) => {
632- const sharedFr = Fr . random ( ) ;
633632 const constrainedSecret = await randomConstrainedAppTaggingSecret ( ) ;
634633
635634 const txHash = TxHash . random ( ) ;
@@ -639,7 +638,7 @@ describe('SenderTaggingStore', () => {
639638 // this via the public construction path keeps the test independent of how the production code derives Frs.
640639 // Emit a tag using the *unconstrained* domain separator for the same Fr/index combination. This should NOT match.
641640 const wrongDomSepTag = await SiloedTag . compute ( {
642- extendedSecret : { secret : sharedFr , app : constrainedSecret . app } as ExtendedDirectionalAppTaggingSecret ,
641+ extendedSecret : new ExtendedDirectionalAppTaggingSecret ( constrainedSecret . secret , constrainedSecret . app ) ,
643642 index : 1 ,
644643 } ) ;
645644 const txEffect = makeTxEffect ( txHash , [ wrongDomSepTag ] ) ;
0 commit comments