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

Build error #223

Open
tims23 opened this issue Dec 9, 2024 · 1 comment
Open

Build error #223

tims23 opened this issue Dec 9, 2024 · 1 comment

Comments

@tims23
Copy link

tims23 commented Dec 9, 2024

When building without gmp installed I get the following error:
image

@vahempio
Copy link

Hi @tims23,
I observed the same issue, then here is the full method that I used to have a correct build (from fresh Debian/Ubuntu install, or docker environment for instance):
[spoiler: I am not a Rust expert]

Install Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
. "$HOME/.cargo/env"

At this point, the command 'cargo --version' returns 'cargo 1.84.1 (66221abde 2024-11-19)'

Use a Github fork (please read: #222)

git clone https://github.com/irnb/multi-party-ecdsa.git && cd multi-party-ecdsa/

Apply this diff:

diff --git a/Cargo.toml b/Cargo.toml
index 7b04624..cd10e0c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -40,6 +40,7 @@ round-based = { version = "0.1.4", features = [] }
 thiserror = "1.0.23"
 derivative = "2"
 sha2 = "0.9"
+rug = "1.27"

 [dependencies.paillier]
 version = "0.4.2"

Prepare your Linux

sudo apt install build-essential pkg-config libssl-dev m4

Build

cargo build --release --examples

Examples are in target/release/examples/ and the gg20 is working.
Enjoy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants