Skip to content

Commit

Permalink
impl: proof merger script
Browse files Browse the repository at this point in the history
  • Loading branch information
berzanorg committed Apr 27, 2024
1 parent b806ef0 commit 9a460d1
Show file tree
Hide file tree
Showing 11 changed files with 753 additions and 6 deletions.
2 changes: 1 addition & 1 deletion generator-script/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
makeBuyTokens,
makeSellTokens,
} from "./prove.js"
import { saveMergedProofToDisk, saveProofToDisk } from "./utils.js"
import { saveProofToDisk } from "./utils.js"
import { proofGenerator } from "nacho-proof-generator"

const main = async () => {
Expand Down
5 changes: 0 additions & 5 deletions generator-script/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,3 @@ export const saveProofToDisk = async (
const filePath = `${proofDbPath}/${index}`
await writeFile(filePath, JSON.stringify(proof.toJSON()), { encoding: "ascii" })
}

export const saveMergedProofToDisk = async (proofDbPath: string, proof: ZkProof): Promise<void> => {
const filePath = `${proofDbPath}/merged`
await writeFile(filePath, JSON.stringify(proof.toJSON()), { encoding: "ascii" })
}
Loading

0 comments on commit 9a460d1

Please sign in to comment.