@@ -43,7 +43,7 @@ pub enum SpendableOutputDescriptor {
4343 /// using chan_utils::derive_public_key and only the delayed_payment_basepoint which appears in
4444 /// ChannelKeys::pubkeys().
4545 ///
46- /// To derive the remote_revocation_pubkey provided here (which is used in the witness
46+ /// To derive the counterparty_revocation_pubkey provided here (which is used in the witness
4747 /// script generation), you must pass the remote revocation_basepoint (which appears in the
4848 /// call to ChannelKeys::on_accept) and the provided per_commitment point
4949 /// to chan_utils::derive_public_revocation_key.
@@ -58,7 +58,7 @@ pub enum SpendableOutputDescriptor {
5858 to_self_delay : u16 ,
5959 output : crate :: c_types:: TxOut ,
6060 key_derivation_params : crate :: c_types:: derived:: C2Tuple_u64u64Z ,
61- remote_revocation_pubkey : crate :: c_types:: PublicKey ,
61+ counterparty_revocation_pubkey : crate :: c_types:: PublicKey ,
6262 } ,
6363 /// An output to a P2WPKH, spendable exclusively by our payment key (ie the private key which
6464 /// corresponds to the public key in ChannelKeys::pubkeys().payment_point).
@@ -67,7 +67,7 @@ pub enum SpendableOutputDescriptor {
6767 ///
6868 /// These are generally the result of our counterparty having broadcast the current state,
6969 /// allowing us to claim the non-HTLC-encumbered outputs immediately.
70- StaticOutputRemotePayment {
70+ StaticOutputCounterpartyPayment {
7171 outpoint : crate :: chain:: transaction:: OutPoint ,
7272 output : crate :: c_types:: TxOut ,
7373 key_derivation_params : crate :: c_types:: derived:: C2Tuple_u64u64Z ,
@@ -86,29 +86,29 @@ impl SpendableOutputDescriptor {
8686 output : output_nonref. into_rust ( ) ,
8787 }
8888 } ,
89- SpendableOutputDescriptor :: DynamicOutputP2WSH { ref outpoint, ref per_commitment_point, ref to_self_delay, ref output, ref key_derivation_params, ref remote_revocation_pubkey , } => {
89+ SpendableOutputDescriptor :: DynamicOutputP2WSH { ref outpoint, ref per_commitment_point, ref to_self_delay, ref output, ref key_derivation_params, ref counterparty_revocation_pubkey , } => {
9090 let mut outpoint_nonref = ( * outpoint) . clone ( ) ;
9191 let mut per_commitment_point_nonref = ( * per_commitment_point) . clone ( ) ;
9292 let mut to_self_delay_nonref = ( * to_self_delay) . clone ( ) ;
9393 let mut output_nonref = ( * output) . clone ( ) ;
9494 let mut key_derivation_params_nonref = ( * key_derivation_params) . clone ( ) ;
9595 let ( mut orig_key_derivation_params_nonref_0, mut orig_key_derivation_params_nonref_1) = key_derivation_params_nonref. to_rust ( ) ; let mut local_key_derivation_params_nonref = ( orig_key_derivation_params_nonref_0, orig_key_derivation_params_nonref_1) ;
96- let mut remote_revocation_pubkey_nonref = ( * remote_revocation_pubkey ) . clone ( ) ;
96+ let mut counterparty_revocation_pubkey_nonref = ( * counterparty_revocation_pubkey ) . clone ( ) ;
9797 nativeSpendableOutputDescriptor:: DynamicOutputP2WSH {
9898 outpoint : * unsafe { Box :: from_raw ( outpoint_nonref. take_ptr ( ) ) } ,
9999 per_commitment_point : per_commitment_point_nonref. into_rust ( ) ,
100100 to_self_delay : to_self_delay_nonref,
101101 output : output_nonref. into_rust ( ) ,
102102 key_derivation_params : local_key_derivation_params_nonref,
103- remote_revocation_pubkey : remote_revocation_pubkey_nonref . into_rust ( ) ,
103+ counterparty_revocation_pubkey : counterparty_revocation_pubkey_nonref . into_rust ( ) ,
104104 }
105105 } ,
106- SpendableOutputDescriptor :: StaticOutputRemotePayment { ref outpoint, ref output, ref key_derivation_params, } => {
106+ SpendableOutputDescriptor :: StaticOutputCounterpartyPayment { ref outpoint, ref output, ref key_derivation_params, } => {
107107 let mut outpoint_nonref = ( * outpoint) . clone ( ) ;
108108 let mut output_nonref = ( * output) . clone ( ) ;
109109 let mut key_derivation_params_nonref = ( * key_derivation_params) . clone ( ) ;
110110 let ( mut orig_key_derivation_params_nonref_0, mut orig_key_derivation_params_nonref_1) = key_derivation_params_nonref. to_rust ( ) ; let mut local_key_derivation_params_nonref = ( orig_key_derivation_params_nonref_0, orig_key_derivation_params_nonref_1) ;
111- nativeSpendableOutputDescriptor:: StaticOutputRemotePayment {
111+ nativeSpendableOutputDescriptor:: StaticOutputCounterpartyPayment {
112112 outpoint : * unsafe { Box :: from_raw ( outpoint_nonref. take_ptr ( ) ) } ,
113113 output : output_nonref. into_rust ( ) ,
114114 key_derivation_params : local_key_derivation_params_nonref,
@@ -125,20 +125,20 @@ impl SpendableOutputDescriptor {
125125 output : output. into_rust ( ) ,
126126 }
127127 } ,
128- SpendableOutputDescriptor :: DynamicOutputP2WSH { mut outpoint, mut per_commitment_point, mut to_self_delay, mut output, mut key_derivation_params, mut remote_revocation_pubkey , } => {
128+ SpendableOutputDescriptor :: DynamicOutputP2WSH { mut outpoint, mut per_commitment_point, mut to_self_delay, mut output, mut key_derivation_params, mut counterparty_revocation_pubkey , } => {
129129 let ( mut orig_key_derivation_params_0, mut orig_key_derivation_params_1) = key_derivation_params. to_rust ( ) ; let mut local_key_derivation_params = ( orig_key_derivation_params_0, orig_key_derivation_params_1) ;
130130 nativeSpendableOutputDescriptor:: DynamicOutputP2WSH {
131131 outpoint : * unsafe { Box :: from_raw ( outpoint. take_ptr ( ) ) } ,
132132 per_commitment_point : per_commitment_point. into_rust ( ) ,
133133 to_self_delay : to_self_delay,
134134 output : output. into_rust ( ) ,
135135 key_derivation_params : local_key_derivation_params,
136- remote_revocation_pubkey : remote_revocation_pubkey . into_rust ( ) ,
136+ counterparty_revocation_pubkey : counterparty_revocation_pubkey . into_rust ( ) ,
137137 }
138138 } ,
139- SpendableOutputDescriptor :: StaticOutputRemotePayment { mut outpoint, mut output, mut key_derivation_params, } => {
139+ SpendableOutputDescriptor :: StaticOutputCounterpartyPayment { mut outpoint, mut output, mut key_derivation_params, } => {
140140 let ( mut orig_key_derivation_params_0, mut orig_key_derivation_params_1) = key_derivation_params. to_rust ( ) ; let mut local_key_derivation_params = ( orig_key_derivation_params_0, orig_key_derivation_params_1) ;
141- nativeSpendableOutputDescriptor:: StaticOutputRemotePayment {
141+ nativeSpendableOutputDescriptor:: StaticOutputCounterpartyPayment {
142142 outpoint : * unsafe { Box :: from_raw ( outpoint. take_ptr ( ) ) } ,
143143 output : output. into_rust ( ) ,
144144 key_derivation_params : local_key_derivation_params,
@@ -157,29 +157,29 @@ impl SpendableOutputDescriptor {
157157 output : crate :: c_types:: TxOut :: from_rust ( output_nonref) ,
158158 }
159159 } ,
160- nativeSpendableOutputDescriptor:: DynamicOutputP2WSH { ref outpoint, ref per_commitment_point, ref to_self_delay, ref output, ref key_derivation_params, ref remote_revocation_pubkey , } => {
160+ nativeSpendableOutputDescriptor:: DynamicOutputP2WSH { ref outpoint, ref per_commitment_point, ref to_self_delay, ref output, ref key_derivation_params, ref counterparty_revocation_pubkey , } => {
161161 let mut outpoint_nonref = ( * outpoint) . clone ( ) ;
162162 let mut per_commitment_point_nonref = ( * per_commitment_point) . clone ( ) ;
163163 let mut to_self_delay_nonref = ( * to_self_delay) . clone ( ) ;
164164 let mut output_nonref = ( * output) . clone ( ) ;
165165 let mut key_derivation_params_nonref = ( * key_derivation_params) . clone ( ) ;
166166 let ( mut orig_key_derivation_params_nonref_0, mut orig_key_derivation_params_nonref_1) = key_derivation_params_nonref; let mut local_key_derivation_params_nonref = ( orig_key_derivation_params_nonref_0, orig_key_derivation_params_nonref_1) . into ( ) ;
167- let mut remote_revocation_pubkey_nonref = ( * remote_revocation_pubkey ) . clone ( ) ;
167+ let mut counterparty_revocation_pubkey_nonref = ( * counterparty_revocation_pubkey ) . clone ( ) ;
168168 SpendableOutputDescriptor :: DynamicOutputP2WSH {
169169 outpoint : crate :: chain:: transaction:: OutPoint { inner : Box :: into_raw ( Box :: new ( outpoint_nonref) ) , is_owned : true } ,
170170 per_commitment_point : crate :: c_types:: PublicKey :: from_rust ( & per_commitment_point_nonref) ,
171171 to_self_delay : to_self_delay_nonref,
172172 output : crate :: c_types:: TxOut :: from_rust ( output_nonref) ,
173173 key_derivation_params : local_key_derivation_params_nonref,
174- remote_revocation_pubkey : crate :: c_types:: PublicKey :: from_rust ( & remote_revocation_pubkey_nonref ) ,
174+ counterparty_revocation_pubkey : crate :: c_types:: PublicKey :: from_rust ( & counterparty_revocation_pubkey_nonref ) ,
175175 }
176176 } ,
177- nativeSpendableOutputDescriptor:: StaticOutputRemotePayment { ref outpoint, ref output, ref key_derivation_params, } => {
177+ nativeSpendableOutputDescriptor:: StaticOutputCounterpartyPayment { ref outpoint, ref output, ref key_derivation_params, } => {
178178 let mut outpoint_nonref = ( * outpoint) . clone ( ) ;
179179 let mut output_nonref = ( * output) . clone ( ) ;
180180 let mut key_derivation_params_nonref = ( * key_derivation_params) . clone ( ) ;
181181 let ( mut orig_key_derivation_params_nonref_0, mut orig_key_derivation_params_nonref_1) = key_derivation_params_nonref; let mut local_key_derivation_params_nonref = ( orig_key_derivation_params_nonref_0, orig_key_derivation_params_nonref_1) . into ( ) ;
182- SpendableOutputDescriptor :: StaticOutputRemotePayment {
182+ SpendableOutputDescriptor :: StaticOutputCounterpartyPayment {
183183 outpoint : crate :: chain:: transaction:: OutPoint { inner : Box :: into_raw ( Box :: new ( outpoint_nonref) ) , is_owned : true } ,
184184 output : crate :: c_types:: TxOut :: from_rust ( output_nonref) ,
185185 key_derivation_params : local_key_derivation_params_nonref,
@@ -196,20 +196,20 @@ impl SpendableOutputDescriptor {
196196 output : crate :: c_types:: TxOut :: from_rust ( output) ,
197197 }
198198 } ,
199- nativeSpendableOutputDescriptor:: DynamicOutputP2WSH { mut outpoint, mut per_commitment_point, mut to_self_delay, mut output, mut key_derivation_params, mut remote_revocation_pubkey , } => {
199+ nativeSpendableOutputDescriptor:: DynamicOutputP2WSH { mut outpoint, mut per_commitment_point, mut to_self_delay, mut output, mut key_derivation_params, mut counterparty_revocation_pubkey , } => {
200200 let ( mut orig_key_derivation_params_0, mut orig_key_derivation_params_1) = key_derivation_params; let mut local_key_derivation_params = ( orig_key_derivation_params_0, orig_key_derivation_params_1) . into ( ) ;
201201 SpendableOutputDescriptor :: DynamicOutputP2WSH {
202202 outpoint : crate :: chain:: transaction:: OutPoint { inner : Box :: into_raw ( Box :: new ( outpoint) ) , is_owned : true } ,
203203 per_commitment_point : crate :: c_types:: PublicKey :: from_rust ( & per_commitment_point) ,
204204 to_self_delay : to_self_delay,
205205 output : crate :: c_types:: TxOut :: from_rust ( output) ,
206206 key_derivation_params : local_key_derivation_params,
207- remote_revocation_pubkey : crate :: c_types:: PublicKey :: from_rust ( & remote_revocation_pubkey ) ,
207+ counterparty_revocation_pubkey : crate :: c_types:: PublicKey :: from_rust ( & counterparty_revocation_pubkey ) ,
208208 }
209209 } ,
210- nativeSpendableOutputDescriptor:: StaticOutputRemotePayment { mut outpoint, mut output, mut key_derivation_params, } => {
210+ nativeSpendableOutputDescriptor:: StaticOutputCounterpartyPayment { mut outpoint, mut output, mut key_derivation_params, } => {
211211 let ( mut orig_key_derivation_params_0, mut orig_key_derivation_params_1) = key_derivation_params; let mut local_key_derivation_params = ( orig_key_derivation_params_0, orig_key_derivation_params_1) . into ( ) ;
212- SpendableOutputDescriptor :: StaticOutputRemotePayment {
212+ SpendableOutputDescriptor :: StaticOutputCounterpartyPayment {
213213 outpoint : crate :: chain:: transaction:: OutPoint { inner : Box :: into_raw ( Box :: new ( outpoint) ) , is_owned : true } ,
214214 output : crate :: c_types:: TxOut :: from_rust ( output) ,
215215 key_derivation_params : local_key_derivation_params,
0 commit comments