@@ -43,7 +43,7 @@ pub enum SpendableOutputDescriptor {
43
43
/// using chan_utils::derive_public_key and only the delayed_payment_basepoint which appears in
44
44
/// ChannelKeys::pubkeys().
45
45
///
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
47
47
/// script generation), you must pass the remote revocation_basepoint (which appears in the
48
48
/// call to ChannelKeys::on_accept) and the provided per_commitment point
49
49
/// to chan_utils::derive_public_revocation_key.
@@ -58,7 +58,7 @@ pub enum SpendableOutputDescriptor {
58
58
to_self_delay : u16 ,
59
59
output : crate :: c_types:: TxOut ,
60
60
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 ,
62
62
} ,
63
63
/// An output to a P2WPKH, spendable exclusively by our payment key (ie the private key which
64
64
/// corresponds to the public key in ChannelKeys::pubkeys().payment_point).
@@ -67,7 +67,7 @@ pub enum SpendableOutputDescriptor {
67
67
///
68
68
/// These are generally the result of our counterparty having broadcast the current state,
69
69
/// allowing us to claim the non-HTLC-encumbered outputs immediately.
70
- StaticOutputRemotePayment {
70
+ StaticOutputCounterpartyPayment {
71
71
outpoint : crate :: chain:: transaction:: OutPoint ,
72
72
output : crate :: c_types:: TxOut ,
73
73
key_derivation_params : crate :: c_types:: derived:: C2Tuple_u64u64Z ,
@@ -86,29 +86,29 @@ impl SpendableOutputDescriptor {
86
86
output : output_nonref. into_rust ( ) ,
87
87
}
88
88
} ,
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 , } => {
90
90
let mut outpoint_nonref = ( * outpoint) . clone ( ) ;
91
91
let mut per_commitment_point_nonref = ( * per_commitment_point) . clone ( ) ;
92
92
let mut to_self_delay_nonref = ( * to_self_delay) . clone ( ) ;
93
93
let mut output_nonref = ( * output) . clone ( ) ;
94
94
let mut key_derivation_params_nonref = ( * key_derivation_params) . clone ( ) ;
95
95
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 ( ) ;
97
97
nativeSpendableOutputDescriptor:: DynamicOutputP2WSH {
98
98
outpoint : * unsafe { Box :: from_raw ( outpoint_nonref. take_ptr ( ) ) } ,
99
99
per_commitment_point : per_commitment_point_nonref. into_rust ( ) ,
100
100
to_self_delay : to_self_delay_nonref,
101
101
output : output_nonref. into_rust ( ) ,
102
102
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 ( ) ,
104
104
}
105
105
} ,
106
- SpendableOutputDescriptor :: StaticOutputRemotePayment { ref outpoint, ref output, ref key_derivation_params, } => {
106
+ SpendableOutputDescriptor :: StaticOutputCounterpartyPayment { ref outpoint, ref output, ref key_derivation_params, } => {
107
107
let mut outpoint_nonref = ( * outpoint) . clone ( ) ;
108
108
let mut output_nonref = ( * output) . clone ( ) ;
109
109
let mut key_derivation_params_nonref = ( * key_derivation_params) . clone ( ) ;
110
110
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 {
112
112
outpoint : * unsafe { Box :: from_raw ( outpoint_nonref. take_ptr ( ) ) } ,
113
113
output : output_nonref. into_rust ( ) ,
114
114
key_derivation_params : local_key_derivation_params_nonref,
@@ -125,20 +125,20 @@ impl SpendableOutputDescriptor {
125
125
output : output. into_rust ( ) ,
126
126
}
127
127
} ,
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 , } => {
129
129
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) ;
130
130
nativeSpendableOutputDescriptor:: DynamicOutputP2WSH {
131
131
outpoint : * unsafe { Box :: from_raw ( outpoint. take_ptr ( ) ) } ,
132
132
per_commitment_point : per_commitment_point. into_rust ( ) ,
133
133
to_self_delay : to_self_delay,
134
134
output : output. into_rust ( ) ,
135
135
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 ( ) ,
137
137
}
138
138
} ,
139
- SpendableOutputDescriptor :: StaticOutputRemotePayment { mut outpoint, mut output, mut key_derivation_params, } => {
139
+ SpendableOutputDescriptor :: StaticOutputCounterpartyPayment { mut outpoint, mut output, mut key_derivation_params, } => {
140
140
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 {
142
142
outpoint : * unsafe { Box :: from_raw ( outpoint. take_ptr ( ) ) } ,
143
143
output : output. into_rust ( ) ,
144
144
key_derivation_params : local_key_derivation_params,
@@ -157,29 +157,29 @@ impl SpendableOutputDescriptor {
157
157
output : crate :: c_types:: TxOut :: from_rust ( output_nonref) ,
158
158
}
159
159
} ,
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 , } => {
161
161
let mut outpoint_nonref = ( * outpoint) . clone ( ) ;
162
162
let mut per_commitment_point_nonref = ( * per_commitment_point) . clone ( ) ;
163
163
let mut to_self_delay_nonref = ( * to_self_delay) . clone ( ) ;
164
164
let mut output_nonref = ( * output) . clone ( ) ;
165
165
let mut key_derivation_params_nonref = ( * key_derivation_params) . clone ( ) ;
166
166
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 ( ) ;
168
168
SpendableOutputDescriptor :: DynamicOutputP2WSH {
169
169
outpoint : crate :: chain:: transaction:: OutPoint { inner : Box :: into_raw ( Box :: new ( outpoint_nonref) ) , is_owned : true } ,
170
170
per_commitment_point : crate :: c_types:: PublicKey :: from_rust ( & per_commitment_point_nonref) ,
171
171
to_self_delay : to_self_delay_nonref,
172
172
output : crate :: c_types:: TxOut :: from_rust ( output_nonref) ,
173
173
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 ) ,
175
175
}
176
176
} ,
177
- nativeSpendableOutputDescriptor:: StaticOutputRemotePayment { ref outpoint, ref output, ref key_derivation_params, } => {
177
+ nativeSpendableOutputDescriptor:: StaticOutputCounterpartyPayment { ref outpoint, ref output, ref key_derivation_params, } => {
178
178
let mut outpoint_nonref = ( * outpoint) . clone ( ) ;
179
179
let mut output_nonref = ( * output) . clone ( ) ;
180
180
let mut key_derivation_params_nonref = ( * key_derivation_params) . clone ( ) ;
181
181
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 {
183
183
outpoint : crate :: chain:: transaction:: OutPoint { inner : Box :: into_raw ( Box :: new ( outpoint_nonref) ) , is_owned : true } ,
184
184
output : crate :: c_types:: TxOut :: from_rust ( output_nonref) ,
185
185
key_derivation_params : local_key_derivation_params_nonref,
@@ -196,20 +196,20 @@ impl SpendableOutputDescriptor {
196
196
output : crate :: c_types:: TxOut :: from_rust ( output) ,
197
197
}
198
198
} ,
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 , } => {
200
200
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 ( ) ;
201
201
SpendableOutputDescriptor :: DynamicOutputP2WSH {
202
202
outpoint : crate :: chain:: transaction:: OutPoint { inner : Box :: into_raw ( Box :: new ( outpoint) ) , is_owned : true } ,
203
203
per_commitment_point : crate :: c_types:: PublicKey :: from_rust ( & per_commitment_point) ,
204
204
to_self_delay : to_self_delay,
205
205
output : crate :: c_types:: TxOut :: from_rust ( output) ,
206
206
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 ) ,
208
208
}
209
209
} ,
210
- nativeSpendableOutputDescriptor:: StaticOutputRemotePayment { mut outpoint, mut output, mut key_derivation_params, } => {
210
+ nativeSpendableOutputDescriptor:: StaticOutputCounterpartyPayment { mut outpoint, mut output, mut key_derivation_params, } => {
211
211
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 {
213
213
outpoint : crate :: chain:: transaction:: OutPoint { inner : Box :: into_raw ( Box :: new ( outpoint) ) , is_owned : true } ,
214
214
output : crate :: c_types:: TxOut :: from_rust ( output) ,
215
215
key_derivation_params : local_key_derivation_params,
0 commit comments