@aztec/stdlib 3.0.0-nightly.20250915 → 3.0.0-nightly.20250917

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ export type ViemZkPassportProofParams = {
10
10
  publicInputs: `0x${string}`[];
11
11
  committedInputs: `0x${string}`;
12
12
  committedInputCounts: bigint[];
13
- validityPeriodInDays: bigint;
13
+ validityPeriodInSeconds: bigint;
14
14
  domain: string;
15
15
  scope: string;
16
16
  devMode: boolean;
@@ -26,7 +26,7 @@ export class ZkPassportProofParams {
26
26
  public publicInputs: Fr[],
27
27
  public committedInputs: Buffer,
28
28
  public committedInputCounts: bigint[],
29
- public validityPeriodInDays: bigint,
29
+ public validityPeriodInSeconds: bigint,
30
30
  public domain: string,
31
31
  public scope: string,
32
32
  ) {}
@@ -43,7 +43,7 @@ export class ZkPassportProofParams {
43
43
  this.committedInputs,
44
44
  this.committedInputCounts.length,
45
45
  this.committedInputCounts,
46
- this.validityPeriodInDays,
46
+ this.validityPeriodInSeconds,
47
47
  this.domain,
48
48
  this.scope,
49
49
  ]);
@@ -64,7 +64,7 @@ export class ZkPassportProofParams {
64
64
  publicInputs,
65
65
  committedInputs,
66
66
  committedInputCounts,
67
- BigInt(100),
67
+ BigInt(100 * 60 * 60 * 24),
68
68
  'sequencer.alpha-testnet.aztec.network',
69
69
  'personhood',
70
70
  );
@@ -93,7 +93,7 @@ export class ZkPassportProofParams {
93
93
  params.publicInputs.map(input => Fr.fromString(input)),
94
94
  Buffer.from(withoutHexPrefix(params.committedInputs), 'hex'),
95
95
  params.committedInputCounts,
96
- params.validityPeriodInDays,
96
+ params.validityPeriodInSeconds,
97
97
  params.domain,
98
98
  params.scope,
99
99
  );
@@ -107,7 +107,7 @@ export class ZkPassportProofParams {
107
107
  publicInputs: this.publicInputs.map(input => input.toString()),
108
108
  committedInputs: `0x${this.committedInputs.toString('hex')}`,
109
109
  committedInputCounts: this.committedInputCounts,
110
- validityPeriodInDays: this.validityPeriodInDays,
110
+ validityPeriodInSeconds: this.validityPeriodInSeconds,
111
111
  domain: this.domain,
112
112
  scope: this.scope,
113
113
  };