Coder Social home page Coder Social logo

Comments (8)

trepca avatar trepca commented on May 21, 2024

happening to me too on MacOS 10.14.6 (PARI installed using homebrew). Have enabled parisizemax in .gprc but didn't help.

from multi-party-ecdsa.

omershlo avatar omershlo commented on May 21, 2024

thanks for reporting

from multi-party-ecdsa.

omershlo avatar omershlo commented on May 21, 2024

I got two reports for users that on their machines the problem did not occur. I will get more details on their setups. They suggested to consult : http://pari.math.u-bordeaux.fr/pub/pari/manuals/2.11.1/libpari.pdf page 17

from multi-party-ecdsa.

omershlo avatar omershlo commented on May 21, 2024

here are the setups that report of NO error:
1)
Ubuntu 19.04, with rustc 1.39.0-nightly, gp/pari 2.11.1. I ran
60 times the cargo test --features=cclst without errors.

macOS Mojave 10.14.6 and installed rust in a virtualbox
6.0.10 r132072 with debian stable 10.1, rustc 1.39.0-nightly

from multi-party-ecdsa.

trepca avatar trepca commented on May 21, 2024

I setup a fresh Ubuntu 19.04 on Digital Ocean with apt-get install build-essential llvm clang, installed with rustup nightly and still not working. I got a

  process didn't exit successfully: `/root/multi-party-ecdsa/target/debug/build/class_group-2cc3d835d71af03f/build-script-build` (exit code: 101)
--- stderr
wrapper.h:2:10: fatal error: 'pari/pari.h' file not found
wrapper.h:2:10: fatal error: 'pari/pari.h' file not found, err: true
thread 'main' panicked at 'Unable to generate bindings: ()', src/libcore/result.rs:1165:5

Then tried to install PARI via apt-get install pari-gp2c and it build but got a different error:

root@ubuntu-s-2vcpu-2gb-lon1-01:~/multi-party-ecdsa# RUST_BACKTRACE=1 cargo test --features=cclst
   Compiling class_group v0.1.4 (https://github.com/KZen-networks/class-groups?tag=v0.1.4#4501c2b8)
   Compiling multi-party-ecdsa v0.2.3 (/root/multi-party-ecdsa)
error[E0308]: mismatched types
   --> src/protocols/two_party_ecdsa/cclst_2019/party_one.rs:278:13
    |
278 |             GE::generator() * &party_one_private.x1,
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `curv::elliptic::curves::secp256_k1::Secp256k1Point`, found a different struct `curv::elliptic::curves::secp256_k1::Secp256k1Point`
    |
    = note: expected type `curv::elliptic::curves::secp256_k1::Secp256k1Point` (struct `curv::elliptic::curves::secp256_k1::Secp256k1Point`)
               found type `curv::elliptic::curves::secp256_k1::Secp256k1Point` (struct `curv::elliptic::curves::secp256_k1::Secp256k1Point`)
note: Perhaps two different versions of crate `curv` are being used?
   --> src/protocols/two_party_ecdsa/cclst_2019/party_one.rs:278:13
    |
278 |             GE::generator() * &party_one_private.x1,
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

🤷‍♂️

from multi-party-ecdsa.

omershlo avatar omershlo commented on May 21, 2024

@trepca the error you got was my fault. I fixed this error and now it should work. Please confirm

from multi-party-ecdsa.

omershlo avatar omershlo commented on May 21, 2024

I check the idea of @amanusk from ZenGo-X/class#20 .
It appears that running single thread all the tests solves the problem:
cargo test --features=cclst -- --test-threads=1

We do need to find a way to run Pari in parallel

from multi-party-ecdsa.

trepca avatar trepca commented on May 21, 2024

great, that works, even natively on MacOS

from multi-party-ecdsa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.