Skip to content

Commit 006faf1

Browse files
committed
get rid of file systen writing
1 parent c61b0a1 commit 006faf1

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/examples/zkfunction/root.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { writeFileSync } from 'fs';
21
import { Experimental, Field, Gadgets } from 'o1js';
32
const { ZkFunction } = Experimental;
43

@@ -40,14 +39,6 @@ ok = await proof.verify(verificationKeyRoundTrip(verificationKey));
4039

4140
console.log('verification key round trip ok?', ok);
4241

43-
console.log('writing proof to file...');
44-
writeFileSync('zkfunction-proof.json', JSON.stringify(proofRoundTrip(proof).toJSON(), null, 2));
45-
46-
console.log('writing verification key to file...');
47-
writeFileSync(
48-
'zkfunction-verification-key.data',
49-
verificationKeyRoundTrip(verificationKey).toString()
50-
);
5142
function proofRoundTrip(proof: Experimental.KimchiProof): Experimental.KimchiProof {
5243
let json = proof.toJSON();
5344
console.log('proof json:', {

0 commit comments

Comments
 (0)