mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-19 05:44:12 +01:00
cln-rpc: implement from Secret to slice conversion
This commit is contained in:
parent
6aca9f665b
commit
335f52d1a8
@ -197,6 +197,12 @@ impl Secret {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Secret> for [u8; 32] {
|
||||
fn from(s: Secret) -> [u8; 32] {
|
||||
s.0
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub struct Outpoint {
|
||||
pub txid: Sha256,
|
||||
|
Loading…
Reference in New Issue
Block a user