projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement and document Channel/ChannelManager (de)serialization
[rust-lightning]
/
src
/
chain
/
keysinterface.rs
diff --git
a/src/chain/keysinterface.rs
b/src/chain/keysinterface.rs
index b3823e2156106ac79573e9b56a529ab33002a197..18b069369b70e72455cee7cc80893a76bacb5195 100644
(file)
--- a/
src/chain/keysinterface.rs
+++ b/
src/chain/keysinterface.rs
@@
-78,6
+78,15
@@
pub struct ChannelKeys {
pub commitment_seed: [u8; 32],
}
pub commitment_seed: [u8; 32],
}
+impl_writeable!(ChannelKeys, 0, {
+ funding_key,
+ revocation_base_key,
+ payment_base_key,
+ delayed_payment_base_key,
+ htlc_base_key,
+ commitment_seed
+});
+
impl ChannelKeys {
/// Generate a set of lightning keys needed to operate a channel by HKDF-expanding a given
/// random 32-byte seed
impl ChannelKeys {
/// Generate a set of lightning keys needed to operate a channel by HKDF-expanding a given
/// random 32-byte seed