curv icon indicating copy to clipboard operation
curv copied to clipboard

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

Open HRezaei opened this issue 4 years ago • 3 comments

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?

HRezaei avatar Dec 27 '21 13:12 HRezaei

  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

elichai avatar Dec 27 '21 13:12 elichai

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

Thanks. 🙏

HRezaei avatar Dec 27 '21 15:12 HRezaei

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? 🙏🏻

HRezaei avatar Dec 28 '21 15:12 HRezaei

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

leontiadZen avatar Mar 29 '23 09:03 leontiadZen