Open
Description
I wanted to look at the examples however when I cargo add the library (and x25519_dalek); I get the following errors:
error[E0433]: failed to resolve: use of undeclared crate or module `log`
--> src\main.rs:27:5
|
27 | log::info!("endpoint");
| ^^^ use of undeclared crate or module `log`
error[E0599]: no function or associated item named `random` found for struct `EphemeralSecret` in the current scope
--> src\main.rs:21:35
|
21 | let secret = EphemeralSecret::random();
| ^^^^^^ function or associated item not found in `EphemeralSecret`
|
note: if you're trying to build a new `EphemeralSecret` consider using one of the following associated functions:
EphemeralSecret::new
EphemeralSecret::random_from_rng
--> C:\Users\Lennard\.cargo\registry\src\index.crates.io-6f17d22bba15001f\x25519-dalek-2.0.1\src\x25519.rs:89:5
|
89 | pub fn new<T: RngCore + CryptoRng>(mut csprng: T) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
94 | pub fn random_from_rng<T: RngCore + CryptoRng>(mut csprng: T) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Even if I were to change the "randm" to "new"/"random_from_rng", it asks for an arguement that is RngCore + CryptoRng
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Refined & Ready