mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-11 17:14:22 +01:00
cln-rpc: implement from Secret to slice conversion
This commit is contained in:
committed by
Christian Decker
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,
|
||||
|
||||
Reference in New Issue
Block a user