Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into ethereum
Browse files Browse the repository at this point in the history
  • Loading branch information
marijanp committed May 26, 2024
2 parents a1adaa6 + 0187469 commit 5b838b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub fn prove(
.to_encoded_point(true)
.to_bytes()
.to_vec();
let unique_session_signature: Signature = user_secret_key.sign(&choice.as_bytes().to_vec());
let unique_session_signature: Signature = user_secret_key.sign(choice.as_bytes());
let circuit_inputs: CircuitInputs = CircuitInputs {
choice: choice.to_string(),
user_public_key: user_public_key_serialized,
Expand Down
4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
];

cargoExtraArgs = lib.optionalString (!pkgs.stdenv.isDarwin) "--features groth16";
cargoTestExtraArgs = lib.optionalString (!pkgs.stdenv.isDarwin) "--features groth16";
# We can't run groth16 related tests in a nix build because it requires docker
#cargoTestExtraArgs = lib.optionalString (!pkgs.stdenv.isDarwin) "--features groth16";

buildInputs = with pkgs; [
openssl.dev
Expand All @@ -99,6 +100,7 @@
# looking for .cargo
mkdir .cargo
mv .cargo-home/config.toml .cargo/config.toml
export LD_LIBRARY_PATH=${lib.makeLibraryPath [ pkgs.openssl pkgs.stdenv.cc.cc.lib ]}
export RISC0_RUST_SRC=${rustToolchain}/lib/rustlib/src/rust
export RECURSION_SRC_PATH=${recursionZkr}
'';
Expand Down

0 comments on commit 5b838b7

Please sign in to comment.