Skip to content

Conversation

ackintosh
Copy link
Member

This PR closes #88

the trait `DerefMut` is not implemented for `OsRng`
`thread_rng` is deprecated since 0.9.0: Renamed to `rng`
@AgeManning
Copy link
Member

Thanks @ackintosh - Still need to sort out CI tho

# Conflicts:
#	src/lib.rs
`try_sign_digest_with_rng` and `verify_digest` have been updated in
RustCrypto/signatures#1064
  error[E0599]: the method `fill_bytes` exists for struct `rand::rngs::OsRng`, but its trait bounds were not satisfied
    --> src/keys/rust_secp256k1.rs:27:19
     |
  27 |             OsRng.fill_bytes(&mut noncedata);
     |                   ^^^^^^^^^^
     |
    ::: /Users/akihito/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.3/src/os.rs:47:1
     |
  47 | pub struct OsRng;
     | ---------------- doesn't satisfy `rand::rngs::OsRng: rand::RngCore`, `rand::rngs::OsRng: std::ops::DerefMut` or `rand::rngs::OsRng: std::ops::Deref`
     |
     = note: the following trait bounds were not satisfied:
             `rand::rngs::OsRng: std::ops::DerefMut`
             which is required by `rand::rngs::OsRng: rand::RngCore`
             `rand::rngs::OsRng: std::ops::Deref`
             which is required by `rand::rngs::OsRng: rand::RngCore`
since the first argument type has been changed from `&Message` to `impl Into<Message>`.
rust-bitcoin/rust-secp256k1@ec0a69f
warning: passing a unit value to a function
@ackintosh
Copy link
Member Author

The dependencies have been bumped, but some of them are still pre-release (or RC) versions. It's better to wait for the stable release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update secp256k1 to 0.31 and rand 0.9
2 participants