arkworks-rs / crypto-primitives

Interfaces and implementations of cryptographic primitives, along with R1CS constraints for them
https://www.arkworks.rs
Apache License 2.0
154 stars 70 forks source link

no AdditiveGroup trait in ark_ec library, but it is used in elgamal module #123

Open ash370 opened 8 months ago

ash370 commented 8 months ago

When I use elgamal module,I find error in code

use ark_ec::{AdditiveGroup, CurveGroup};

there is not AdditiveGroup trait in ark_ec library. What can I do to solve this problem?

storojs72 commented 3 weeks ago

Confirm, trying to build from rev='fc1c9491c62ce51edf4f0b4e2ab270b85d0150ab':

Compiling ark-crypto-primitives v0.4.0 (https://github.com/arkworks-rs/crypto-primitives?rev=fc1c9491c62ce51edf4f0b4e2ab270b85d0150ab#fc1c9491)
error[E0432]: unresolved import `ark_ec::AdditiveGroup`
mmagician commented 3 weeks ago

You will need to patch, like here, or use the 0.5.0-alpha release.