cln-rpc: implement from Secret to slice conversion

This commit is contained in:
okjodom 2022-09-28 19:31:22 -07:00 committed by Christian Decker
parent 6aca9f665b
commit 335f52d1a8

View File

@ -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,