Skip to content

Commit 4c27b0d

Browse files
feat (wip): adding zkemail.rs lib
0 parents  commit 4c27b0d

22 files changed

+7438
-0
lines changed

Diff for: .env.example

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# 'mock' for generating mock proofs locally, 'local' for generating proofs locally, 'network' for generating proofs using the proving network.
2+
SP1_PROVER=local
3+
# If using the proving network, set to your whitelisted private key. For more information, see:
4+
# https://docs.succinct.xyz/prover-network/setup.html#key-setup
5+
SP1_PRIVATE_KEY=

Diff for: .github/workflows/prove.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build Program
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
9+
env:
10+
FOUNDRY_PROFILE: ci
11+
12+
jobs:
13+
check:
14+
strategy:
15+
fail-fast: true
16+
17+
name: Build
18+
runs-on: ubuntu-20.04
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
submodules: recursive
23+
24+
- name: Install rust toolchain
25+
uses: actions-rs/toolchain@v1
26+
with:
27+
profile: minimal
28+
toolchain: 1.81.0
29+
30+
- name: Install SP1 toolchain
31+
run: |
32+
curl -L https://sp1.succinct.xyz | bash
33+
~/.sp1/bin/sp1up
34+
~/.sp1/bin/cargo-prove prove --version
35+
36+
- name: Build SP1 program
37+
run: |
38+
cd program
39+
~/.sp1/bin/cargo-prove prove build

Diff for: .gitignore

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Cargo build
2+
**/target
3+
4+
# Cargo config
5+
.cargo
6+
7+
# Profile-guided optimization
8+
/tmp
9+
pgo-data.profdata
10+
11+
# MacOS nuisances
12+
.DS_Store
13+
14+
# Proofs
15+
**/proof-with-pis.json
16+
**/proof-with-io.json
17+
18+
# Env
19+
.env

Diff for: .vscode/settings.json

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"rust-analyzer.linkedProjects": [
3+
"program/Cargo.toml",
4+
"script/Cargo.toml"
5+
],
6+
"rust-analyzer.check.overrideCommand": [
7+
"cargo",
8+
"clippy",
9+
"--workspace",
10+
"--message-format=json",
11+
"--all-features",
12+
"--all-targets",
13+
"--",
14+
"-A",
15+
"incomplete-features"
16+
],
17+
"rust-analyzer.runnables.extraEnv": {
18+
"RUST_LOG": "debug",
19+
"RUSTFLAGS": "-Ctarget-cpu=native"
20+
},
21+
"rust-analyzer.runnables.extraArgs": [
22+
"--release",
23+
"+nightly"
24+
],
25+
"rust-analyzer.diagnostics.disabled": [
26+
"unresolved-proc-macro"
27+
],
28+
"editor.rulers": [
29+
100
30+
],
31+
"editor.inlineSuggest.enabled": true,
32+
"[rust]": {
33+
"editor.defaultFormatter": "rust-lang.rust-analyzer",
34+
"editor.formatOnSave": true,
35+
"editor.hover.enabled": true
36+
},
37+
}

0 commit comments

Comments
 (0)