diff --git a/transactions.md b/transactions.md index c13764d..98b7e74 100644 --- a/transactions.md +++ b/transactions.md @@ -115,6 +115,11 @@ The CPFP output value is adjusted depending on the actual transaction size. The transaction which spends the [`unvault_tx`](unvault_tx) `output[0]` using the N-of-N path and pays back to a deposit output (it is therefore another vault deposit transaction). +In addition to the deposit output, the Cancel transaction features a data-carrying output committing +to the Unvault transaction it's used for in order for the `ANYONECANPAY | ALL` signature to not be replayed +on another Cancel transaction paying to the same deposit. + + - version: 2 - locktime: 0 @@ -130,10 +135,13 @@ pays back to a deposit output (it is therefore another vault deposit transaction #### OUT -- count: 1 +- count: 2 - outputs[0]: - value: `` - scriptPubkey: `deposit_descriptor` +- outputs[1]: + - value: `0` + - scriptPubkey: '`RETURN `' ## emergency_txs @@ -145,6 +153,10 @@ transactions are never meant to be used. The Emergency `scriptPubKey` is not known to the managers. +In addition to the deposit output, the Emergency transaction features a data-carrying output committing +to the Deposit transaction it's used for in order for the `ANYONECANPAY | ALL` signature to not be replayed +on another Emergency transaction paying to the same deposit. + ### deposit_emergency_tx @@ -165,16 +177,23 @@ The transaction which spends the [`deposit_tx`](deposit_tx) output to the EDV by #### OUT -- count: 1 +- count: 2 - outputs[0]: - value: `` - scriptPubkey: `0x00 SHA256()` +- outputs[1]: + - value: `0` + - scriptPubkey: `RETURN ` ### unvault_emergency_tx This transaction spends the [`unvault_tx`](unvault_tx) `output[0]` to the EDV by the `N`-of-`N` path. +In addition to the deposit output, the Unvault Emergency transaction features a data-carrying output committing +to the Unvault transaction it's used for in order for the `ANYONECANPAY | ALL` signature to not be replayed +on another Unvault Emergency transaction paying to the same deposit. + - version: 2 - locktime: 0 @@ -190,10 +209,13 @@ This transaction spends the [`unvault_tx`](unvault_tx) `output[0]` to the EDV by #### OUT -- count: 1 +- count: 2 - outputs[0]: - value: `` - scriptPubkey: `0x00 SHA256()` +- outputs[1]: + - value: `0` + - scriptPubkey: '`RETURN `' ## bypass_tx