ZenGo-X / curv

Rust language general purpose elliptic curve cryptography.
MIT License
264 stars 111 forks source link

Build error: could not find `traits` in `super` #160

Closed HRezaei closed 1 year ago

HRezaei commented 2 years ago

The command cargo build raises an error like this:

use super::traits::Hash;\ | ^^^^^^ could not find `traits` in `super` https://github.com/ZenGo-X/curv/blob/4665149e093e0bef0443d9ba129b083f8a044481/src/cryptographic_primitives/hashing/hash_sha256.rs#L10

There is no traits module in the upper-level folder. Should it be use std::hash::Hash instead?

elichai commented 2 years ago
  1. Are you sure you're on the latest curv?
  2. What rust version are you using?

I think these files actually aren't used anywhere since #129, I'll open a PR to remove them

HRezaei commented 2 years ago
  1. Yes, curv-kzen = "0.9.0"
  2. rustc 1.58.0-nightly (d914f17ca 2021-11-16)

Thanks. 🙏

HRezaei commented 2 years ago

Thanks for merging the PR #161, but would you please create a new tag and update the dependencies in the bulletproof, centipede, rust-paillier, zk-paillier, eddsa/curv-0.9, etc? 🙏🏻

leontiadZen commented 1 year ago

https://github.com/ZenGo-X/curv/pull/173/