Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
195286e
feat: add zcash client
petscheit Dec 4, 2025
6fe9680
feat: update bridge node to support zcash
petscheit Dec 4, 2025
84fd457
feat: bring back spv mmr
petscheit Dec 4, 2025
7e4cda1
chore: prob not needed now, but bringing back to be sure
petscheit Dec 4, 2025
afdc3e4
chore: deactivate subchain work check
petscheit Dec 4, 2025
cddfe4d
chore: fmt
petscheit Dec 4, 2025
f7d15d2
chore: rm mmr and wasm crate
petscheit Dec 5, 2025
1281406
chore: rm accumulator crate
petscheit Dec 5, 2025
0924922
chore: cleanup store
petscheit Dec 5, 2025
32e1ed1
chore: rm old crates
petscheit Dec 5, 2025
fe89235
chore: add comment
petscheit Dec 5, 2025
0d05eef
fix: height at init error
petscheit Dec 5, 2025
4471948
feat: add tx merkle logic
petscheit Dec 5, 2025
2d94395
feat: add tx merkle proof generation logic
petscheit Dec 5, 2025
37c3eb8
feat: connect get tx proof endpoint
petscheit Dec 5, 2025
c416460
chore: minor cleanup
petscheit Dec 5, 2025
7d05e7a
chore: fmt + clippy
petscheit Dec 5, 2025
ea2e900
fix: test
petscheit Dec 5, 2025
dd26716
chore: impl change requests
petscheit Dec 8, 2025
027fa55
chore: fmt + clippy
petscheit Dec 8, 2025
2f676cc
feat: block inclusion proof in flyclient
0xLucqs Dec 5, 2025
66e4cbb
first step
0xLucqs Dec 5, 2025
f9905d0
fix rebase
0xLucqs Dec 8, 2025
70aff8d
should work
0xLucqs Dec 9, 2025
8339e59
fix args
0xLucqs Dec 9, 2025
58cfae6
recursion
0xLucqs Dec 9, 2025
f405984
real recursion
0xLucqs Dec 9, 2025
4f6f1b7
Import local scarb
b-j-roberts Dec 4, 2025
0b3edab
Add blake2b opcode feature
b-j-roberts Dec 4, 2025
927f071
Add blake2b mock feature
b-j-roberts Dec 4, 2025
db210fa
Move equihash tests
b-j-roberts Dec 9, 2025
95907aa
Optimize: solutions Args -> pre-parsed indices Args
b-j-roberts Dec 9, 2025
4e3ab85
Optimize: custom append_bytes_21 func
b-j-roberts Dec 9, 2025
8b808a5
Feat: Add is_valid_solution_format check.
b-j-roberts Dec 9, 2025
433032e
Feat: Add is_unique_indices check using sorted_indices_hint optimizat…
b-j-roberts Dec 9, 2025
f8e3a39
Optimize: Improve is_unique_indices using pop_front & reduce redundan…
b-j-roberts Dec 9, 2025
ef776f0
Feat: Add build_equihash_base_hasher into wagner_tree_validator.
b-j-roberts Dec 9, 2025
cd7e187
Feat: Add tree_validator_cached_u32s optimization.
b-j-roberts Dec 9, 2025
9d3ef1c
Remove link to local scarb
b-j-roberts Dec 9, 2025
314b66c
Scarb fmt
b-j-roberts Dec 9, 2025
5c2212a
Update assumevalid wth new sorted indices hints args
b-j-roberts Dec 9, 2025
a5e4b96
Fix header format in assumevalid adapters ( packed solution bytes -> …
b-j-roberts Dec 10, 2025
5c8a1d4
Update assumevalid tests data
b-j-roberts Dec 10, 2025
a1fceac
Update assumevalid tests data again
b-j-roberts Dec 10, 2025
7688fdb
fix everything
0xLucqs Dec 10, 2025
37852a1
Patch issue with formatted args names/ordering
b-j-roberts Dec 16, 2025
c417b42
Merge branch 'main' into brandon/equihash-optimizations
0xLucqs Dec 16, 2025
b285031
Pull stwo-cairo from fork
b-j-roberts Dec 17, 2025
d0420ba
everything
0xLucqs Dec 16, 2025
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
30 changes: 25 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
[workspace]
resolver = "2"
members = [
"crates/zoro-spv-verify",
"crates/zoro-bridge-node",
"crates/zoro-zcash-client",
"crates/zoro-assumevalid",
]
resolver = "2"

[patch."https://github.com/m-kus/cairo-vm"]
cairo-vm = { git = "https://github.com/maciejka/cairo-vm", rev = "19d8a07ce9799a8af9db6f8a14a8accaad900214" }
# [patch.crates-io]
# cairo-lang-executable = { git = "https://github.com/m-kus/cairo", rev = "13f3701f3d6c50086beb25ee3a191949bcc8dddf" }
# cairo-lang-runner = { git = "https://github.com/m-kus/cairo", rev = "13f3701f3d6c50086beb25ee3a191949bcc8dddf" }
# cairo-lang-casm = { git = "https://github.com/m-kus/cairo", rev = "13f3701f3d6c50086beb25ee3a191949bcc8dddf" }
# cairo-lang-execute-utils = { git = "https://github.com/m-kus/cairo", rev = "13f3701f3d6c50086beb25ee3a191949bcc8dddf" }
# cairo-vm = { git = "https://github.com/m-kus/cairo-vm", rev = "c9aa51b9360a6c89389cf88c93ac30b5213e64a7" }
# stwo-cairo-adapter = { git = "https://github.com/starkware-libs/stwo-cairo", rev = "e8bc9571675bb654b6e26a7bd53838a6ae78c344" }

[workspace.dependencies]
# Async runtime
tokio = { version = "1.36", features = ["full"] }
reqwest = { version = "0.12", features = ["json", "gzip", "brotli", "zstd"] }
async-trait = "0.1"

bytes = "1.0"
# zcash
zebra-chain = {version = "3.1.0"}
zcash_primitives = { version = "0.26.1" }
zcash_protocol = { version = "0.7.1" }
zcash_history = { version = "0.4" }
zebra-chain = { version = "3.1.0" }

# RPC
jsonrpsee = { version = "0.25.1", features = ["http-client", "async-client"] }
Expand All @@ -25,6 +34,17 @@ base64 = "0.21"
# Storage
sqlx = { version = "0.8", features = ["runtime-tokio", "sqlite"] }


# Stwo-cairo
stwo = { git = "https://github.com/starkware-libs/stwo", rev = "45d0180", default-features = false }
cairo-air = { path = "../stwo-cairo/stwo_cairo_prover/crates/cairo-air", default-features = false }
stwo-cairo-serialize = { path = "../stwo-cairo/stwo_cairo_prover/crates/cairo-serialize" }
stwo_cairo_prover = { path = "../stwo-cairo/stwo_cairo_prover/crates/prover" }
stwo-cairo-adapter = { path = "../stwo-cairo/stwo_cairo_prover/crates/adapter" }
cairo-program-runner-lib = { path = "../proving-utils/crates/cairo-program-runner-lib", default-features = false }
cairo-vm = { path = "../cairo-vm/vm", features = ["std"] }
# Starknet
starknet-ff = "0.3.7"
# CLI
clap = { version = "4.5", features = ["derive", "env"] }
dotenv = "0.15"
Expand Down
31 changes: 0 additions & 31 deletions Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ dependencies = [
[[package]]
name = "bounded_int"
version = "0.1.0"
source = "git+https://github.com/starkware-libs/stwo-cairo?rev=e8bc9571675bb654b6e26a7bd53838a6ae78c344#e8bc9571675bb654b6e26a7bd53838a6ae78c344"

[[package]]
name = "client"
Expand All @@ -26,39 +25,12 @@ dependencies = [
name = "consensus"
version = "0.1.0"
dependencies = [
"shinigami_engine",
"utils",
]

[[package]]
name = "ripemd160"
version = "0.1.0"
source = "git+https://github.com/j1mbo64/ripemd160_cairo.git#833e07d7d074d4ee51ceb40a5bcb4af2fe6898f3"

[[package]]
name = "sha1"
version = "0.1.0"
source = "git+https://github.com/j1mbo64/sha1_cairo.git#2b65bc00a829bdcc244c140d0f31feda32f8d2c4"

[[package]]
name = "shinigami_engine"
version = "0.1.0"
source = "git+https://github.com/keep-starknet-strange/shinigami.git?rev=1963116#1963116dc6f24eb32d0513c6394ad64da515ceff"
dependencies = [
"ripemd160",
"sha1",
"shinigami_utils",
]

[[package]]
name = "shinigami_utils"
version = "0.1.0"
source = "git+https://github.com/keep-starknet-strange/shinigami.git?rev=1963116#1963116dc6f24eb32d0513c6394ad64da515ceff"

[[package]]
name = "stwo_cairo_air"
version = "0.1.0"
source = "git+https://github.com/starkware-libs/stwo-cairo?rev=e8bc9571675bb654b6e26a7bd53838a6ae78c344#e8bc9571675bb654b6e26a7bd53838a6ae78c344"
dependencies = [
"bounded_int",
"stwo_constraint_framework",
Expand All @@ -69,15 +41,13 @@ dependencies = [
[[package]]
name = "stwo_constraint_framework"
version = "0.1.0"
source = "git+https://github.com/starkware-libs/stwo-cairo?rev=e8bc9571675bb654b6e26a7bd53838a6ae78c344#e8bc9571675bb654b6e26a7bd53838a6ae78c344"
dependencies = [
"stwo_verifier_core",
]

[[package]]
name = "stwo_verifier_core"
version = "0.1.0"
source = "git+https://github.com/starkware-libs/stwo-cairo?rev=e8bc9571675bb654b6e26a7bd53838a6ae78c344#e8bc9571675bb654b6e26a7bd53838a6ae78c344"
dependencies = [
"bounded_int",
"stwo_verifier_utils",
Expand All @@ -86,7 +56,6 @@ dependencies = [
[[package]]
name = "stwo_verifier_utils"
version = "0.1.0"
source = "git+https://github.com/starkware-libs/stwo-cairo?rev=e8bc9571675bb654b6e26a7bd53838a6ae78c344#e8bc9571675bb654b6e26a7bd53838a6ae78c344"
dependencies = [
"bounded_int",
]
Expand Down
4 changes: 3 additions & 1 deletion Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ license-file = "LICENSE"

[workspace.dependencies]
cairo_test = "2.12.2"
shinigami_engine = { git = "https://github.com/keep-starknet-strange/shinigami.git", rev = "1963116" }

[cairo]
enable-gas = false

[profile.proving]
inherits = "release"
Expand Down
Loading