From dff94cb0069e7191bcff263c8e9cc991df8cedc4 Mon Sep 17 00:00:00 2001 From: Ratan Kaliani Date: Fri, 17 May 2024 11:49:10 -0700 Subject: [PATCH] fix: `getrandom` version (#753) --- .github/workflows/pr.yml | 1 + zkvm/entrypoint/Cargo.toml | 9 +++++++-- zkvm/precompiles/Cargo.toml | 8 +++++--- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index ceb72c9052..bb521b4997 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -172,6 +172,7 @@ jobs: run: | cd fibonacci cd program + cargo add sp1-zkvm --path $GITHUB_WORKSPACE/zkvm/entrypoint cargo prove build cd ../script cargo add sp1-sdk --path $GITHUB_WORKSPACE/sdk diff --git a/zkvm/entrypoint/Cargo.toml b/zkvm/entrypoint/Cargo.toml index e111a881ea..422a49dade 100644 --- a/zkvm/entrypoint/Cargo.toml +++ b/zkvm/entrypoint/Cargo.toml @@ -10,7 +10,7 @@ p3-baby-bear = { workspace = true, optional = true } p3-field = { workspace = true, optional = true } bincode = "1.3.3" cfg-if = "1.0.0" -getrandom = { version = "0.2.15", features = ["custom"] } +getrandom = { version = "0.2.14", features = ["custom"] } k256 = { version = "0.13.3", features = ["ecdsa", "std", "bits"] } once_cell = "1.19.0" rand = "0.8.5" @@ -21,4 +21,9 @@ sha2 = { version = "0.10.8" } [features] default = ["libm"] libm = ["dep:libm"] -verify = ["dep:sp1-primitives", "dep:p3-baby-bear", "dep:p3-field", "sp1-precompiles/verify"] +verify = [ + "dep:sp1-primitives", + "dep:p3-baby-bear", + "dep:p3-field", + "sp1-precompiles/verify", +] diff --git a/zkvm/precompiles/Cargo.toml b/zkvm/precompiles/Cargo.toml index e38ba017a3..cbd3c254ed 100644 --- a/zkvm/precompiles/Cargo.toml +++ b/zkvm/precompiles/Cargo.toml @@ -4,16 +4,18 @@ version = "0.1.0" edition = "2021" [dependencies] -amcl = { package = "snowbridge-amcl", version="1.0.2", default-features = false, features = ["bls381"]} +amcl = { package = "snowbridge-amcl", version = "1.0.2", default-features = false, features = [ + "bls381", +] } anyhow = "1.0.83" bincode = "1.3.3" cfg-if = "1.0.0" -getrandom = { version = "0.2.15", features = ["custom"] } +getrandom = { version = "0.2.14", features = ["custom"] } hex = "0.4.3" k256 = { version = "0.13.3", features = ["ecdsa", "std", "bits"] } rand = "0.8.5" serde = { version = "1.0.201", features = ["derive"] } -num = {version = "0.4.3"} +num = { version = "0.4.3" } [features] verify = []