fix risc0 patching

This commit is contained in:
David Rusu 2024-07-03 02:15:11 +00:00
parent 2f2a9c86b5
commit 8205f027db
2 changed files with 9 additions and 6 deletions

View File

@ -17,10 +17,5 @@ rand_chacha = "0.3.1"
lazy_static = "1.4.0"
hex = "0.4.3"
k256 = {version = "0.13.3", features = ["serde", "hash2curve"]}
# [dependencies.k256]
# git = "https://github.com/risc0/RustCrypto-elliptic-curves"
# tag = "k256/v0.13.3-risczero.0"

View File

@ -13,4 +13,12 @@ blake2 = "0.10"
serde = { version = "1.0", features = ["derive"] }
bincode = "1"
common = { path = "../../common" }
cl = { path = "../../../cl" }
cl = { path = "../../../cl" }
[patch.crates-io]
# Placing these patch statement in the workspace Cargo.toml will add RISC Zero SHA-256 and bigint
# multiplication accelerator support for all downstream usages of the following crates.
sha2 = { git = "https://github.com/risc0/RustCrypto-hashes", tag = "sha2-v0.10.8-risczero.0" }
k256 = { git = "https://github.com/risc0/RustCrypto-elliptic-curves", tag = "k256/v0.13.3-risczero.0" }
crypto-bigint = { git = "https://github.com/risc0/RustCrypto-crypto-bigint", tag = "v0.5.2-risczero.0" }