Skip to content

Commit

Permalink
refactor: split zkvm crate into entrypoint and precompiles
Browse files Browse the repository at this point in the history
  • Loading branch information
John Guibas authored and John Guibas committed Feb 20, 2024
1 parent b4dfee6 commit 13c82b4
Show file tree
Hide file tree
Showing 91 changed files with 456 additions and 146 deletions.
14 changes: 14 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = ["core", "cli", "derive", "zkvm"]
members = ["core", "cli", "derive", "zkvm/*"]
exclude = ["examples/target"]
resolver = "2"

Expand Down
14 changes: 14 additions & 0 deletions examples/chess/program/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/chess/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ edition = "2021"

[dependencies]
chess = "3.2.0"
sp1-zkvm = { path = "../../../zkvm" }
sp1-zkvm = { path = "../../../zkvm/entrypoint" }
Binary file modified examples/chess/program/elf/riscv32im-succinct-zkvm-elf
Binary file not shown.
14 changes: 14 additions & 0 deletions examples/ed25519/program/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/ed25519/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name = "ed25519-program"
edition = "2021"

[dependencies]
sp1-zkvm = { path = "../../../zkvm" }
sp1-zkvm = { path = "../../../zkvm/entrypoint" }
ed25519-dalek = { git = "https://github.com/dalek-cryptography/curve25519-dalek.git", rev = "0b45e00", version = "2.1.0" }
hex-literal = "0.4.1"

Expand Down
Binary file modified examples/ed25519/program/elf/riscv32im-succinct-zkvm-elf
Binary file not shown.
14 changes: 14 additions & 0 deletions examples/fibonacci-io/program/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/fibonacci-io/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ name = "fibonacci-io-program"
edition = "2021"

[dependencies]
sp1-zkvm = { path = "../../../zkvm" }
sp1-zkvm = { path = "../../../zkvm/entrypoint" }
Binary file modified examples/fibonacci-io/program/elf/riscv32im-succinct-zkvm-elf
Binary file not shown.
14 changes: 14 additions & 0 deletions examples/fibonacci/program/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/fibonacci/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ name = "fibonacci-program"
edition = "2021"

[dependencies]
sp1-zkvm = { path = "../../../zkvm" }
sp1-zkvm = { path = "../../../zkvm/entrypoint" }
Binary file modified examples/fibonacci/program/elf/riscv32im-succinct-zkvm-elf
Binary file not shown.
14 changes: 14 additions & 0 deletions examples/io/program/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/io/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ name = "io-program"
edition = "2021"

[dependencies]
sp1-zkvm = { path = "../../../zkvm" }
sp1-zkvm = { path = "../../../zkvm/entrypoint" }
serde = { version = "1.0.195", features = ["derive"] }
Binary file modified examples/io/program/elf/riscv32im-succinct-zkvm-elf
Binary file not shown.
14 changes: 14 additions & 0 deletions examples/json/program/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/json/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ name = "json-program"
edition = "2021"

[dependencies]
sp1-zkvm = { path = "../../../zkvm" }
sp1-zkvm = { path = "../../../zkvm/entrypoint" }
serde_json = "1.0.113"
Binary file modified examples/json/program/elf/riscv32im-succinct-zkvm-elf
Binary file not shown.
14 changes: 14 additions & 0 deletions examples/regex/program/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/regex/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ name = "regex-program"
edition = "2021"

[dependencies]
sp1-zkvm = { path = "../../../zkvm" }
sp1-zkvm = { path = "../../../zkvm/entrypoint" }
regex = "1.10.3"
Binary file modified examples/regex/program/elf/riscv32im-succinct-zkvm-elf
Binary file not shown.
14 changes: 14 additions & 0 deletions examples/rsa/program/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/rsa/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name = "rsa-program"
edition = "2021"

[dependencies]
sp1-zkvm = { path = "../../../zkvm" }
sp1-zkvm = { path = "../../../zkvm/entrypoint" }
digest = "0.10.7"
rand = "0.8.5"
rsa = "0.6" # Check for the latest version
Expand Down
Binary file modified examples/rsa/program/elf/riscv32im-succinct-zkvm-elf
Binary file not shown.
14 changes: 14 additions & 0 deletions examples/ssz-withdrawals/program/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/ssz-withdrawals/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name = "ssz-withdrawals-program"
edition = "2021"

[dependencies]
sp1-zkvm = { path = "../../../zkvm" }
sp1-zkvm = { path = "../../../zkvm/entrypoint" }
hex-literal = "0.4.1"
sha2 = "0.9.8"
ssz_rs = { version = "0.9.0", features = ["serde"] }
Expand Down
Binary file not shown.
14 changes: 14 additions & 0 deletions examples/tendermint/program/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/tendermint/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name = "tendermint-program"
edition = "2021"

[dependencies]
sp1-zkvm = { path = "../../../zkvm" }
sp1-zkvm = { path = "../../../zkvm/entrypoint" }
serde_json = { version = "1.0", default-features = false, features = ["alloc"] }
serde = { version = "1.0", default-features = false, features = ["derive"] }
tendermint = { version = "0.34.0", default-features = false }
Expand Down
Binary file modified examples/tendermint/program/elf/riscv32im-succinct-zkvm-elf
Binary file not shown.
14 changes: 14 additions & 0 deletions tests/blake3-compress/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/blake3-compress/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ name = "blake3-compress-test"
edition = "2021"

[dependencies]
sp1-zkvm = { path = "../../zkvm" }
sp1-zkvm = { path = "../../zkvm/entrypoint" }
Binary file modified tests/blake3-compress/elf/riscv32im-succinct-zkvm-elf
Binary file not shown.
14 changes: 14 additions & 0 deletions tests/cycle-tracker/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/cycle-tracker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ name = "cycle-tracker-test"
edition = "2021"

[dependencies]
sp1-zkvm = { path = "../../zkvm" }
sp1-zkvm = { path = "../../zkvm/entrypoint" }
sp1-derive = { path = "../../derive" }
Binary file modified tests/cycle-tracker/elf/riscv32im-succinct-zkvm-elf
Binary file not shown.
14 changes: 14 additions & 0 deletions tests/ecrecover/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 13c82b4

Please sign in to comment.