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

Fix binance_verifier path #114

Merged
merged 1 commit into from
Dec 26, 2024
Merged
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
2 changes: 1 addition & 1 deletion mpc_demo_infra/coordination_server/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN git clone https://github.com/ZKStats/tlsn.git \
&& git checkout mpspdz-compat-binance \
&& cd tlsn \
&& cargo build --release --example binance_verifier \
&& mv /root/tlsn/tlsn/target/release/examples/binance_verifier /root/mpc-demo-infra
&& mv /root/tlsn/tlsn/target/release/examples/binance_verifier /root/tlsn/tlsn/examples/

COPY .env.coord /root/mpc-demo-infra/
COPY ssl_certs/ /root/mpc-demo-infra/ssl_certs/
Expand Down
3 changes: 2 additions & 1 deletion mpc_demo_infra/coordination_server/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

router = APIRouter()

CMD_VERIFY_TLSN_PROOF = "cargo run --release --example binance_verifier"
TLSN_VERIFIER_PATH = Path(settings.tlsn_project_root) / "tlsn" / "examples" / "binance"
CMD_VERIFY_TLSN_PROOF = "cargo run --release --example binance_verifier"
CMD_TLSN_VERIFIER = "./binance_verifier"


Expand Down Expand Up @@ -96,6 +96,7 @@ def locate_binance_verifier():
# can be built from the source.
binance_verifiers = [
(Path('.').resolve(), CMD_TLSN_VERIFIER),
(TLSN_VERIFIER_PATH, CMD_TLSN_VERIFIER),
(TLSN_VERIFIER_PATH, CMD_VERIFY_TLSN_PROOF),
]
binance_verifier_dir = None
Expand Down
Loading