@@ -57,6 +57,12 @@ pub struct ChannelDerivationParameters {
57
57
pub transaction_parameters : ChannelTransactionParameters ,
58
58
}
59
59
60
+ impl_writeable_tlv_based ! ( ChannelDerivationParameters , {
61
+ ( 0 , value_satoshis, required) ,
62
+ ( 2 , keys_id, required) ,
63
+ ( 4 , transaction_parameters, required) ,
64
+ } ) ;
65
+
60
66
/// A descriptor used to sign for a commitment transaction's anchor output.
61
67
#[ derive( Clone , Debug , PartialEq , Eq ) ]
62
68
pub struct AnchorDescriptor {
@@ -139,6 +145,16 @@ pub struct HTLCDescriptor {
139
145
pub counterparty_sig : Signature
140
146
}
141
147
148
+ impl_writeable_tlv_based ! ( HTLCDescriptor , {
149
+ ( 0 , channel_derivation_parameters, required) ,
150
+ ( 2 , commitment_txid, required) ,
151
+ ( 4 , per_commitment_number, required) ,
152
+ ( 6 , per_commitment_point, required) ,
153
+ ( 8 , htlc, required) ,
154
+ ( 10 , preimage, option) ,
155
+ ( 12 , counterparty_sig, required) ,
156
+ } ) ;
157
+
142
158
impl HTLCDescriptor {
143
159
/// Returns the outpoint of the HTLC output in the commitment transaction. This is the outpoint
144
160
/// being spent by the HTLC input in the HTLC transaction.
0 commit comments