mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 23:30:59 +01:00
Fix build warning about public_from_secret_hex.
This commit is contained in:
parent
d327c231cf
commit
4a56d87ef9
1 changed files with 1 additions and 1 deletions
|
@ -7405,7 +7405,7 @@ mod tests {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(feature = "grind_signatures"))]
|
#[cfg(all(feature = "_test_vectors", not(feature = "grind_signatures")))]
|
||||||
fn public_from_secret_hex(secp_ctx: &Secp256k1<bitcoin::secp256k1::All>, hex: &str) -> PublicKey {
|
fn public_from_secret_hex(secp_ctx: &Secp256k1<bitcoin::secp256k1::All>, hex: &str) -> PublicKey {
|
||||||
PublicKey::from_secret_key(&secp_ctx, &SecretKey::from_slice(&hex::decode(hex).unwrap()[..]).unwrap())
|
PublicKey::from_secret_key(&secp_ctx, &SecretKey::from_slice(&hex::decode(hex).unwrap()[..]).unwrap())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue