Skip to content
Open
Show file tree
Hide file tree
Changes from 5 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
4 changes: 2 additions & 2 deletions bun.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dependencies": {
"@ensdomains/ensjs": "^4.0.2",
"@tanstack/react-query": "^5.89.0",
"@zk-email/sdk": "2.0.1-7",
"@zk-email/sdk": "3.0.0-nightly.1",
"buffer": "^6.0.3",
"connectkit": "^1.9.1",
"react": "^19.1.1",
Expand Down Expand Up @@ -541,7 +541,7 @@

"@zk-email/relayer-utils": ["@zk-email/[email protected]", "", {}, "sha512-Fyx93d909uxbaCZHm/C44dge1s3s5h+4pFMylCqPwb2b1Gj+wmfJwYNM1zsZcQeJowFVkqlUJeJ3rYIBlJyhkg=="],

"@zk-email/sdk": ["@zk-email/sdk@2.0.1-7", "", { "dependencies": { "@azure/msal-browser": "^4.5.1", "@mach-34/noir-bignum-paramgen": "^1.1.2", "@peculiar/webcrypto": "^1.5.0", "@zk-email/relayer-utils": "0.4.66-4", "@zk-email/snarkjs": "^0.0.1", "@zk-email/zkemail-nr": "1.3.3-3", "ethers": "^6.13.4", "jszip": "^3.10.1", "poseidon-lite": "^0.3.0", "rsa-key": "^0.0.6", "snarkjs": "^0.7.5", "viem": "^2.21.53", "zod": "^3.23.8" }, "peerDependencies": { "typescript": "^5.0.0" } }, "sha512-ZDykrDO/fbYH3uOmFX9+wZ+aewJsGIKnTVE7QoVRb03Nn8A1ggT25nWyADW+ieeWCXnLSyV66efPPaH6r6MXtg=="],
"@zk-email/sdk": ["@zk-email/sdk@3.0.0-nightly.1", "", { "dependencies": { "@azure/msal-browser": "^4.5.1", "@mach-34/noir-bignum-paramgen": "^1.1.2", "@peculiar/webcrypto": "^1.5.0", "@zk-email/relayer-utils": "0.4.66-4", "@zk-email/snarkjs": "^0.0.1", "@zk-email/zkemail-nr": "1.3.3-3", "ethers": "^6.13.4", "jszip": "^3.10.1", "poseidon-lite": "^0.3.0", "rsa-key": "^0.0.6", "snarkjs": "^0.7.5", "viem": "^2.21.53", "zod": "^3.23.8" }, "peerDependencies": { "typescript": "^5.0.0" } }, "sha512-vIY+tn7utdgMEhKpoHL+xZoQ1R8OWS3/a4BHHt4+Zs3uy2TbZLMKx2FMWCQv3rWB4DUuqw9DBBaWg0Kf70bD4w=="],

"@zk-email/snarkjs": ["@zk-email/[email protected]", "", { "dependencies": { "@iden3/binfileutils": "0.0.12", "bfj": "^7.0.2", "blake2b-wasm": "^2.4.0", "circom_runtime": "0.1.28", "ejs": "^3.1.6", "fastfile": "0.0.20", "ffjavascript": "0.3.1", "js-sha3": "^0.8.0", "logplease": "^1.2.15", "r1csfile": "0.0.48" }, "bin": { "snarkjs": "build/cli.cjs" } }, "sha512-QJ2GfP4C5AW7gAshxHeToLwLdRy1hMiTMaL9AqJiW9hQ2zDD5gMFdav79q7Jwm3h42kzU3A+Na9zqpDr3Iue2w=="],

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@ensdomains/ensjs": "^4.0.2",
"@tanstack/react-query": "^5.89.0",
"@zk-email/sdk": "2.0.1-7",
"@zk-email/sdk": "3.0.0-nightly.1",
"buffer": "^6.0.3",
"connectkit": "^1.9.1",
"react": "^19.1.1",
Expand Down
1 change: 0 additions & 1 deletion public/x_handle_noir.json

This file was deleted.

9 changes: 1 addition & 8 deletions src/features/twitter/useTwitterProof.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,7 @@ export function useTwitterProof() {
logging: { enabled: true, level: "debug" },
});
setStep("get-blueprint");
const blueprint = await sdk.getBlueprint("benceharomi/X_HANDLE@v2");
// local noir circuit served from public/
blueprint.getNoirCircuit = async () => {
const url = `${import.meta.env.BASE_URL}x_handle_noir.json`;
const res = await fetch(url);
if (!res.ok) throw new Error(`Failed to load circuit at ${url}`);
return await res.json();
};
const blueprint = await sdk.getBlueprint("benceharomi/x_handle@v1");
setStep("create-prover");
const prover = blueprint.createProver({ isLocal: true });

Expand Down