@aztec/prover-client 1.0.0-nightly.20250620 → 1.0.0-nightly.20250621
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.
- package/dest/bin/get-proof-inputs.js +1 -1
- package/dest/proving_broker/proving_broker_database/persisted.js +2 -2
- package/package.json +15 -15
- package/src/bin/get-proof-inputs.ts +1 -1
- package/src/proving_broker/proof_store/inline_proof_store.ts +1 -1
- package/src/proving_broker/proving_broker_database/persisted.ts +2 -2
|
@@ -28,7 +28,7 @@ async function main() {
|
|
|
28
28
|
const input = await proofStore.getProofInput(uri);
|
|
29
29
|
logger.info(`Found inputs for ${ProvingRequestType[input.type]}`);
|
|
30
30
|
writeProofInputs(input, outDir);
|
|
31
|
-
console.log(
|
|
31
|
+
console.log(jsonParseWithSchema(jsonStringify(input), ProvingJobInputs).inputs);
|
|
32
32
|
}
|
|
33
33
|
// This mimics the behavior of bb-prover/src/bb/execute.ts
|
|
34
34
|
function writeProofInputs(input, outDir) {
|
|
@@ -31,9 +31,9 @@ class SingleEpochDatabase {
|
|
|
31
31
|
}
|
|
32
32
|
async *allProvingJobs() {
|
|
33
33
|
for await (const jobStr of this.jobs.valuesAsync()){
|
|
34
|
-
const job =
|
|
34
|
+
const job = jsonParseWithSchema(jobStr, ProvingJob);
|
|
35
35
|
const resultStr = await this.jobResults.getAsync(job.id);
|
|
36
|
-
const result = resultStr ?
|
|
36
|
+
const result = resultStr ? jsonParseWithSchema(resultStr, ProvingJobSettledResult) : undefined;
|
|
37
37
|
yield [
|
|
38
38
|
job,
|
|
39
39
|
result
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/prover-client",
|
|
3
|
-
"version": "1.0.0-nightly.
|
|
3
|
+
"version": "1.0.0-nightly.20250621",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js",
|
|
@@ -68,19 +68,19 @@
|
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@aztec/bb-prover": "1.0.0-nightly.
|
|
72
|
-
"@aztec/blob-lib": "1.0.0-nightly.
|
|
73
|
-
"@aztec/constants": "1.0.0-nightly.
|
|
74
|
-
"@aztec/ethereum": "1.0.0-nightly.
|
|
75
|
-
"@aztec/foundation": "1.0.0-nightly.
|
|
76
|
-
"@aztec/kv-store": "1.0.0-nightly.
|
|
77
|
-
"@aztec/noir-protocol-circuits-types": "1.0.0-nightly.
|
|
78
|
-
"@aztec/noir-types": "1.0.0-nightly.
|
|
79
|
-
"@aztec/protocol-contracts": "1.0.0-nightly.
|
|
80
|
-
"@aztec/simulator": "1.0.0-nightly.
|
|
81
|
-
"@aztec/stdlib": "1.0.0-nightly.
|
|
82
|
-
"@aztec/telemetry-client": "1.0.0-nightly.
|
|
83
|
-
"@aztec/world-state": "1.0.0-nightly.
|
|
71
|
+
"@aztec/bb-prover": "1.0.0-nightly.20250621",
|
|
72
|
+
"@aztec/blob-lib": "1.0.0-nightly.20250621",
|
|
73
|
+
"@aztec/constants": "1.0.0-nightly.20250621",
|
|
74
|
+
"@aztec/ethereum": "1.0.0-nightly.20250621",
|
|
75
|
+
"@aztec/foundation": "1.0.0-nightly.20250621",
|
|
76
|
+
"@aztec/kv-store": "1.0.0-nightly.20250621",
|
|
77
|
+
"@aztec/noir-protocol-circuits-types": "1.0.0-nightly.20250621",
|
|
78
|
+
"@aztec/noir-types": "1.0.0-nightly.20250621",
|
|
79
|
+
"@aztec/protocol-contracts": "1.0.0-nightly.20250621",
|
|
80
|
+
"@aztec/simulator": "1.0.0-nightly.20250621",
|
|
81
|
+
"@aztec/stdlib": "1.0.0-nightly.20250621",
|
|
82
|
+
"@aztec/telemetry-client": "1.0.0-nightly.20250621",
|
|
83
|
+
"@aztec/world-state": "1.0.0-nightly.20250621",
|
|
84
84
|
"@google-cloud/storage": "^7.15.0",
|
|
85
85
|
"@iarna/toml": "^2.2.5",
|
|
86
86
|
"commander": "^12.1.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"zod": "^3.23.8"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@aztec/noir-contracts.js": "1.0.0-nightly.
|
|
93
|
+
"@aztec/noir-contracts.js": "1.0.0-nightly.20250621",
|
|
94
94
|
"@jest/globals": "^30.0.0",
|
|
95
95
|
"@types/jest": "^30.0.0",
|
|
96
96
|
"@types/node": "^22.15.17",
|
|
@@ -36,7 +36,7 @@ async function main() {
|
|
|
36
36
|
logger.info(`Found inputs for ${ProvingRequestType[input.type]}`);
|
|
37
37
|
writeProofInputs(input, outDir);
|
|
38
38
|
|
|
39
|
-
console.log(
|
|
39
|
+
console.log(jsonParseWithSchema(jsonStringify(input), ProvingJobInputs).inputs);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
// This mimics the behavior of bb-prover/src/bb/execute.ts
|
|
@@ -52,7 +52,7 @@ export class InlineProofStore implements ProofStore {
|
|
|
52
52
|
return (PREFIX + SEPARATOR + encoded) as ProofUri;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
private decode<T>(uri: ProofUri, schema: ZodFor<T>):
|
|
55
|
+
private decode<T>(uri: ProofUri, schema: ZodFor<T>): T {
|
|
56
56
|
const [prefix, data] = uri.split(SEPARATOR);
|
|
57
57
|
if (prefix !== PREFIX) {
|
|
58
58
|
throw new Error('Invalid proof input URI: ' + prefix);
|
|
@@ -46,9 +46,9 @@ class SingleEpochDatabase {
|
|
|
46
46
|
|
|
47
47
|
async *allProvingJobs(): AsyncIterableIterator<[ProvingJob, ProvingJobSettledResult | undefined]> {
|
|
48
48
|
for await (const jobStr of this.jobs.valuesAsync()) {
|
|
49
|
-
const job =
|
|
49
|
+
const job = jsonParseWithSchema(jobStr, ProvingJob);
|
|
50
50
|
const resultStr = await this.jobResults.getAsync(job.id);
|
|
51
|
-
const result = resultStr ?
|
|
51
|
+
const result = resultStr ? jsonParseWithSchema(resultStr, ProvingJobSettledResult) : undefined;
|
|
52
52
|
yield [job, result];
|
|
53
53
|
}
|
|
54
54
|
}
|