Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring mina/compatible up to date #1967

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"test:integration": "./run-integration-tests.sh",
"test:unit": "./run-unit-tests.sh",
"test:e2e": "rimraf ./tests/report && rimraf ./tests/test-artifacts && npx playwright test",
"test:all": "./run-all-local-tests.sh",
"e2e:prepare-server": "npm run build:examples && (cp -rf dist/examples dist/web || :) && node src/build/e2e-tests-build-helper.js && cp -rf src/examples/plain-html/index.html src/examples/plain-html/server.js tests/artifacts/html/*.html tests/artifacts/javascript/*.js dist/web",
"e2e:run-server": "node dist/web/server.js",
"e2e:install": "npx playwright install --with-deps",
Expand Down
16 changes: 16 additions & 0 deletions run-all-local-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -e

echo "Running all local tests"

echo "Running jest tests"
./run-jest-tests.sh

echo "Running integration tests"
./run-integration-tests.sh

echo "Running unit tests"
./run-unit-tests.sh

echo "Running e2e tests"
rimraf ./tests/report && rimraf ./tests/test-artifacts && npx playwright test"
11 changes: 10 additions & 1 deletion src/examples/zkprogram/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
JsonProof,
Provable,
Empty,
Cache,
} from 'o1js';

let MyProgram = ZkProgram({
Expand All @@ -24,6 +25,14 @@ let MyProgram = ZkProgram({
},
});

await MyProgram.compile();
console.time('compile (with cache)');
let { verificationKey } = await MyProgram.compile();
console.timeEnd('compile (with cache)');

console.time('proving');
let result = await MyProgram.baseCase();
console.timeEnd('proving');

console.log('verifying');
let ok = await verify(result.proof, verificationKey);
console.log('ok', ok);
2 changes: 1 addition & 1 deletion src/mina
Submodule mina updated 722 files
Loading