Remove dead code

This commit is contained in:
Franck Royer 2021-01-14 11:35:10 +11:00
parent 0852f90473
commit 31c63f0c4d
No known key found for this signature in database
GPG key ID: A82ED75A8DFC50A4
6 changed files with 4 additions and 50 deletions

View file

@ -23,12 +23,6 @@ pub use wallet::Wallet;
pub const PICONERO_OFFSET: u64 = 1_000_000_000_000;
pub fn random_private_key<R: RngCore + CryptoRng>(rng: &mut R) -> PrivateKey {
let scalar = Scalar::random(rng);
PrivateKey::from_scalar(scalar)
}
pub fn private_key_from_secp256k1_scalar(scalar: bitcoin::Scalar) -> PrivateKey {
let mut bytes = scalar.to_bytes();