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

Cargo build fails #34

Closed
lovesh opened this issue Dec 28, 2018 · 3 comments
Closed

Cargo build fails #34

lovesh opened this issue Dec 28, 2018 · 3 comments

Comments

@lovesh
Copy link

lovesh commented Dec 28, 2018

cargo build fails with error

error[E0432]: unresolved imports `FE`, `GE`                                                                                                                                                                         
  --> src/cryptographic_primitives/commitments/pedersen_commitment.rs:21:14                                                                                                                                         
   |                                                                                                                                                                                                                
21 | use {BigInt, FE, GE};                                                                                                                                                                                          
   |              ^^  ^^ no `GE` in the root                                                                                                                                                                        
   |              |                                                                                                                                                                                                 
   |              no `FE` in the root                                                                                                                                                                               
                                                                                                                                                                                                                    
error[E0432]: unresolved imports `FE`, `GE`                                                                                                                                                                         
  --> src/cryptographic_primitives/hashing/hash_sha256.rs:22:6                                                                                                                                                      
   |                                                                                                                                                                                                                
22 | use {FE, GE};                                                                                                                                                                                                  
   |      ^^  ^^ no `GE` in the root                                                                                                                                                                                
   |      |                                                                                                                                                                                                         
   |      no `FE` in the root                                                                                                                                                                                       
                                                                                                                                                                                                                    
error[E0432]: unresolved imports `FE`, `GE`                                                                                                                                                                         
  --> src/cryptographic_primitives/hashing/hash_sha512.rs:22:6                                                                                                                                                      
   |                                                                                                                                                                                                                
22 | use {FE, GE};                                                                                                                                                                                                  
   |      ^^  ^^ no `GE` in the root                                                                                                                                                                                
   |      |                                                                                                                                                                                                         
   |      no `FE` in the root                                                                                                                                                                                       
                                                                                                                                                                                                                    
error[E0432]: unresolved import `GE`                                                                                                                                                                                
  --> src/cryptographic_primitives/hashing/merkle_tree.rs:18:5                                                                                                                                                      
   |                                                                                                                                                                                                                
18 | use GE;                                                                                                                                                                                                        
   |     ^^ no `GE` in the root                                                                                                                                                                                     
                                                                                                                                                                                                                    
error[E0432]: unresolved imports `FE`, `GE`                                                                                                                                                                         
  --> src/cryptographic_primitives/hashing/traits.rs:18:6                                                                                                                                                           
   |                                                                                                                                                                                                                
18 | use {FE, GE};                                                                                                                                                                                                  
   |      ^^  ^^ no `GE` in the root                                                                                                                                                                                
   |      |                                                                                                                                                                                                         
   |      no `FE` in the root                                                                                                                                                                                       
                                                                                                                                                                                                                    
error[E0432]: unresolved import `FE`                                                                                                                                                                                
  --> src/cryptographic_primitives/proofs/dlog_zk_protocol.rs:31:5                                                                                                                                                  
   |                                                                                                                                                                                                                
31 | use FE;                                                                                                                                                                                                        
   |     ^^ no `FE` in the root                                                                                                                                                                                     
                                                                                                                                                                                                                    
error[E0432]: unresolved import `GE`                                                                                                                                                                                
  --> src/cryptographic_primitives/proofs/dlog_zk_protocol.rs:32:5                                                                                                                                                  
   |                                                                                                                                                                                                                
32 | use GE;                                                                                                                                                                                                        
   |     ^^ no `GE` in the root                                                                                                                                                                                     
                                                                                                                                                                                                                    
error[E0432]: unresolved import `FE`                                                                                                                                                                                
  --> src/cryptographic_primitives/proofs/sigma_correct_homomorphic_elgamal_encryption_of_dlog.rs:27:5                                                                                                              
   |                                                                                                                                                                                                                
27 | use FE;                                                                                                                                                                                                        
   |     ^^ no `FE` in the root                                                                                                                                                                                     
                                                                                                                                                                                                                    
error[E0432]: unresolved import `GE`                                                                                                                                                                                
  --> src/cryptographic_primitives/proofs/sigma_correct_homomorphic_elgamal_encryption_of_dlog.rs:28:5                                                                                                              
   |                                                                                                                                                                                                                
28 | use GE;                                                                                                                                                                                                        
   |     ^^ no `GE` in the root                                                                                                                                                                                     
                                                                                                                                                                                                                    
error[E0432]: unresolved import `FE`                                                                                                                                                                                
  --> src/cryptographic_primitives/proofs/sigma_correct_homomrphic_elgamal_enc.rs:27:5                                                                                                                              
   |                                                                                                                                                                                                                
27 | use FE;                                                                                                                                                                                                        
   |     ^^ no `FE` in the root                                                                                                                                                                                     
                                                                                                                                                                                                                    
error[E0432]: unresolved import `GE`                                                                                                                                                                                
  --> src/cryptographic_primitives/proofs/sigma_correct_homomrphic_elgamal_enc.rs:28:5                                                                                                                              
   |                                                                                                                                                                                                                
28 | use GE;                                                                                                                                                                                                        
   |     ^^ no `GE` in the root                                                                                                                                                                                     
                                                                                                                                                                                                                    
error[E0432]: unresolved import `FE`                                                                                                                                                                                
  --> src/cryptographic_primitives/proofs/sigma_dlog.rs:27:5                                                                                                                                                        
   |                                                                                                                                                                                                                
27 | use FE;                                                                                                                                                                                                        
   |     ^^ no `FE` in the root                                                                                                                                                                                     
                                                                                                                                                                                                                    
error[E0432]: unresolved import `GE`                                                                                                                                                                                
  --> src/cryptographic_primitives/proofs/sigma_dlog.rs:28:5                                                                                                                                                        
   |                                                                                                                                                                                                                
28 | use GE;                                                                                                                                                                                                        
   |     ^^ no `GE` in the root                                                                                                                                                                                     
                                                                                                                                                                                                                    
error[E0432]: unresolved imports `FE`, `GE`                                                                                                                                                                         
  --> src/cryptographic_primitives/proofs/sigma_ec_ddh.rs:34:6                                                                                                                                                      
   |                                                                                                                                                                                                                
34 | use {FE, GE};                                                                                                                                                                                                  
   |      ^^  ^^ no `GE` in the root                                                                                                                                                                                
   |      |                                                                                                                                                                                                         
   |      no `FE` in the root                                                                                                                                                                                       
                                                                                                                                                                                                                    
error[E0432]: unresolved imports `FE`, `GE`                                                                                                                                                                         
  --> src/cryptographic_primitives/proofs/sigma_valid_pedersen.rs:33:6                                                                                                                                              
   |                                                                                                                                                                                                                
33 | use {FE, GE};                                                                                                                                                                                                  
   |      ^^  ^^ no `GE` in the root                                                                                                                                                                                
   |      |                                                                                                                                                                                                         
   |      no `FE` in the root                                                                                                                                                                                       
                                                                                                                                                                                                                    
error[E0432]: unresolved imports `FE`, `GE`                                                                                                                                                                         
  --> src/cryptographic_primitives/proofs/sigma_valid_pedersen_blind.rs:37:6                                                                                                                                        
   |                                                                                                                                                                                                                
37 | use {FE, GE};                                                                                                                                                                                                  
   |      ^^  ^^ no `GE` in the root                                                                                                                                                                                
   |      |                                                                                                                                                                                                         
   |      no `FE` in the root                                                                                                                                                                                       
                                                                                                                                                                                                                    
error[E0432]: unresolved import `FE`                                                                                                                                                                                
  --> src/cryptographic_primitives/secret_sharing/feldman_vss.rs:24:5                                                                                                                                               
   |                                                                                                                                                                                                                
24 | use FE;                                                                                                                                                                                                        
   |     ^^ no `FE` in the root                                                                                                                                                                                     
                                                                                                                                                                                                                    
error[E0432]: unresolved import `GE`                                                                                                                                                                                
  --> src/cryptographic_primitives/secret_sharing/feldman_vss.rs:25:5                                                                                                                                               
   |                                                                                                                                                                                                                
25 | use GE;                                                                                                                                                                                                        
   |     ^^ no `GE` in the root                                                                                                                                                                                     
                                                                                                                                                                                                                    
error[E0432]: unresolved import `FE`                                                                                                                                                                                
  --> src/cryptographic_primitives/twoparty/dh_key_exchange.rs:35:5                                                                                                                                                 
   |                                                                                                                                                                                                                
35 | use FE;                                                                                                                                                                                                        
   |     ^^ no `FE` in the root                                                                                                                                                                                     
                                                                                                                                                                                                                    
error[E0432]: unresolved import `GE`                                                                                                                                                                                
  --> src/cryptographic_primitives/twoparty/dh_key_exchange.rs:36:5                                                                                                                                                 
   |                                                                                                                                                                                                                
36 | use GE;                                                                                                                                                                                                        
   |     ^^ no `GE` in the root                                                                                                                                                                                     
                                                                                                                                                                                                                    
warning: unused import: `ECPoint`                                                                                                                                                                                   
  --> src/cryptographic_primitives/hashing/hash_sha256.rs:19:32                                                                                                                                                     
   |                                                                                                                                                                                                                
19 | use elliptic::curves::traits::{ECPoint, ECScalar};                                                                                                                                                             
   |                                ^^^^^^^                                                                                                                                                                         
   |                                                                                                                                                                                                                
   = note: #[warn(unused_imports)] on by default                                                                                                                                                                    
                                                                                                                                                                                                                    
warning: unused import: `ECPoint`                                                                                                                                                                                   
  --> src/cryptographic_primitives/hashing/hash_sha512.rs:19:32                                                                                                                                                     
   |                                                                                                                                                                                                                
19 | use elliptic::curves::traits::{ECPoint, ECScalar};                                                                                                                                                             
   |                                ^^^^^^^                                                                                                                                                                         
                                                                                                                                                                                                                    
error: aborting due to 20 previous errors                                                                                                                                                                           
                                                                
@omershlo
Copy link
Contributor

Hi,
you need to add a feature that will define what elliptic curve you want to use when you do cargo build:
currently you can choose:
cargo build --features=curvesecp256k1 for secp256k1
cargo build --features=ed25519 for ed25519
cargo build --features=curveristretto for ristretto

@omershlo
Copy link
Contributor

I will add a build section in the readme file. We still have hope to avoid this way of building, (cc @tzachvk )

@lovesh
Copy link
Author

lovesh commented Dec 28, 2018

Hi @omershlo. Thanks, it works.

@lovesh lovesh closed this as completed Dec 28, 2018
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