You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to follow the documentation and have the following file:
use ed25519_dalek::SigningKey;use rand::rngs::OsRng;fnmain(){letmut csprng = OsRng;let signing_key:SigningKey = SigningKey::generate(&mut csprng);}
which I'm attempting to build against ed25519_dalek 2.1.1 and rand 0.8.5 but I'm getting the following error:
error[E0599]: no function or associated item named `generate` found for struct `SigningKey` in the current scope
--> src/bin/foo.rs:6:45
|
6 | let signing_key: SigningKey = SigningKey::generate(&mut csprng);
| ^^^^^^^^ function or associated item not found in `SigningKey`
For more information about this error, try `rustc --explain E0599`.
error: could not compile `cherami` (bin "foo") due to previous error
The text was updated successfully, but these errors were encountered:
I will update the issue title to reflect a docs issue, instead of a compilation one.
samuela
changed the title
"error[E0599]: no function or associated item named generate found for struct SigningKey in the current scope"
docs.rs homepage examples use rand_core crate option, but do not mention its existence
Feb 23, 2024
I'm attempting to follow the documentation and have the following file:
which I'm attempting to build against ed25519_dalek 2.1.1 and rand 0.8.5 but I'm getting the following error:
The text was updated successfully, but these errors were encountered: