Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Split Bitcoin transactions #3

Open
mappum opened this issue Feb 12, 2019 · 0 comments
Open

Split Bitcoin transactions #3

mappum opened this issue Feb 12, 2019 · 0 comments

Comments

@mappum
Copy link
Collaborator

mappum commented Feb 12, 2019

Bitcoin transactions signed by signatories use all spendable UTXOs as inputs (which come from deposits and change), and pay to all pending withdrawal outputs. The current implementation does this all in one big transaction.

Since transactions aren't Merkleized, clients that want to SPV-verify the transaction have to fetch the whole big tx. When this gets too big, we'll have to split this up into 3 transactions as in the design document: one with deposit UTXOs as inputs and 1 output, one that spends this and the previous change output, and another which pays the withdrawals. This way, clients can look at just the chain of the 2nd kind of transaction to follow the reserves of coins without needing the deposits/withdrawals.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant