This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
payment_proofs [2025/06/17 16:25] – created transatoshi | payment_proofs [2025/06/17 16:27] (current) – transatoshi | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Payment Proofs ====== | ||
Support generating and validating payment proofs for sender-initiated (i.e. non-invoice) transactions. | Support generating and validating payment proofs for sender-initiated (i.e. non-invoice) transactions. | ||
Line 55: | Line 56: | ||
Verify that the sender_signature is valid. | Verify that the sender_signature is valid. | ||
- | === Wallet actions === | + | ==== Wallet actions |
'' | '' | ||
Line 65: | Line 66: | ||
The sender_address and receiver_address will then be added to the payment_proof structure of the slate. | The sender_address and receiver_address will then be added to the payment_proof structure of the slate. | ||
- | === receive | + | '' |
If the payment_proof structure exists on the slate, it is mandatory that the receiver_signature is generated and added to the slate as part of the receive tx-building step. | If the payment_proof structure exists on the slate, it is mandatory that the receiver_signature is generated and added to the slate as part of the receive tx-building step. | ||
- | === finalize | + | '' |
Using the slate_id, the sender can retrieve the original sender_address and receiver_address that were included in the slate, and verify that those fields remain unchanged. The sender must then validate the receiver_signature. If any of the original payment_proof slate fields were modified, or if the receiver_signature is invalid, the transaction must be rejected by the sender. | Using the slate_id, the sender can retrieve the original sender_address and receiver_address that were included in the slate, and verify that those fields remain unchanged. The sender must then validate the receiver_signature. If any of the original payment_proof slate fields were modified, or if the receiver_signature is invalid, the transaction must be rejected by the sender. |