Closed PlaneB closed 5 years ago
It looks like you might have had a mismatch between the versions of your digest
sub-dependencies between the sha2
crate and this one? You can check easily with the output of cargo tree -d
.
Closing for now, but feel free to reopen or start another issue if this is not the case.
i'm having the same issues, tried everything... all sha versions, still can't compile
@pakipaki2000 can you post a Cargo.lock somewhere?
extern crate rand; extern crate sha2; extern crate ed25519_dalek;
use rand::Rng; use rand::OsRng; use sha2::Sha512; use ed25519_dalek::Keypair; use ed25519_dalek::Signature;
fn main() { println!("Hello, world!"); let mut csprng: OsRng = OsRng::new().unwrap(); let keypair: Keypair = Keypair::generate::<Sha512, _>(&mut csprng); }
cargo build =>
sha2::Sha512: digest::Input
is not satisfied--> src/main.rs:15:28
digest::Input
is not implemented forsha2::Sha512
= note: required because of the requirements on the impl of
digest::digest::Digest
forsha2::Sha512
= note: required byed25519_dalek::Keypair::generate
sha2::Sha512: digest::BlockInput
is not satisfied --> src/main.rs:15:28digest::BlockInput
is not implemented forsha2::Sha512
= note: required because of the requirements on the impl of
digest::digest::Digest
forsha2::Sha512
= note: required byed25519_dalek::Keypair::generate
sha2::Sha512: digest::FixedOutput
is not satisfied --> src/main.rs:15:28digest::FixedOutput
is not implemented forsha2::Sha512
= note: required because of the requirements on the impl of
digest::digest::Digest
forsha2::Sha512
= note: required byed25519_dalek::Keypair::generate