@@ -165,7 +165,7 @@ impl UncheckedProposal {
165
165
166
166
/// Typestate to validate that the Original PSBT has no receiver-owned inputs.
167
167
///
168
- /// Call [`check_no_receiver_owned_inputs()`](struct.UncheckedProposal.html#method.check_no_receiver_owned_inputs) to proceed.
168
+ /// Call [`Self::check_inputs_not_owned`] to proceed.
169
169
#[ derive( Clone ) ]
170
170
pub struct MaybeInputsOwned {
171
171
psbt : Psbt ,
@@ -208,8 +208,9 @@ impl MaybeInputsOwned {
208
208
}
209
209
210
210
/// Typestate to validate that the Original PSBT has no mixed input types.
211
+ /// This check is skipped in payjoin v2.
211
212
///
212
- /// Call [`check_no_mixed_input_types`](struct.UncheckedProposal.html#method.check_no_mixed_input_scripts) to proceed.
213
+ /// Call [`Self::check_no_mixed_input_scripts`] to proceed.
213
214
#[ derive( Clone ) ]
214
215
pub struct MaybeMixedInputScripts {
215
216
psbt : Psbt ,
@@ -261,7 +262,7 @@ impl MaybeMixedInputScripts {
261
262
262
263
/// Typestate to validate that the Original PSBT has no inputs that have been seen before.
263
264
///
264
- /// Call [`check_no_inputs_seen`](struct.MaybeInputsSeen.html#method.check_no_inputs_seen_before) to proceed.
265
+ /// Call [`Self::check_no_inputs_seen_before`] to proceed.
265
266
#[ derive( Clone ) ]
266
267
pub struct MaybeInputsSeen {
267
268
psbt : Psbt ,
@@ -295,7 +296,7 @@ impl MaybeInputsSeen {
295
296
/// The receiver has not yet identified which outputs belong to the receiver.
296
297
///
297
298
/// Only accept PSBTs that send us money.
298
- /// Identify those outputs with ` identify_receiver_outputs()` to proceed
299
+ /// Identify those outputs with [`Self:: identify_receiver_outputs`] to proceed.
299
300
#[ derive( Clone ) ]
300
301
pub struct OutputsUnknown {
301
302
psbt : Psbt ,
@@ -345,6 +346,8 @@ impl OutputsUnknown {
345
346
}
346
347
347
348
/// A checked proposal that the receiver may substitute or add outputs to
349
+ ///
350
+ /// Call [`Self::commit_outputs`] to proceed.
348
351
#[ derive( Debug , Clone ) ]
349
352
pub struct WantsOutputs {
350
353
original_psbt : Psbt ,
@@ -486,6 +489,8 @@ fn interleave_shuffle<T: Clone, R: rand::Rng>(
486
489
}
487
490
488
491
/// A checked proposal that the receiver may contribute inputs to to make a payjoin
492
+ ///
493
+ /// Call [`Self::commit_inputs`] to proceed.
489
494
#[ derive( Debug , Clone ) ]
490
495
pub struct WantsInputs {
491
496
original_psbt : Psbt ,
@@ -658,6 +663,8 @@ impl WantsInputs {
658
663
659
664
/// A checked proposal that the receiver may sign and finalize to make a proposal PSBT that the
660
665
/// sender will accept.
666
+ ///
667
+ /// Call [`Self::finalize_proposal`] to return a finalized [`PayjoinProposal`].
661
668
#[ derive( Debug , Clone ) ]
662
669
pub struct ProvisionalProposal {
663
670
original_psbt : Psbt ,
@@ -861,7 +868,8 @@ impl ProvisionalProposal {
861
868
}
862
869
}
863
870
864
- /// A mutable checked proposal that the receiver may contribute inputs to to make a payjoin.
871
+ /// A finalized payjoin proposal, complete with fees and receiver signatures, that the sender
872
+ /// should find acceptable.
865
873
#[ derive( Clone ) ]
866
874
pub struct PayjoinProposal {
867
875
payjoin_psbt : Psbt ,
0 commit comments