-
Notifications
You must be signed in to change notification settings - Fork 10
Transactions
Transactions are proposed by Users. User has control over an arbitrary amount of wallets, each holding some amount of coins (potentially of different colors, as described in Color coins). To send money, you describe from which wallets you want to take which amount of money (and of which color) and to which addresses you want to send this money. It's flexible in a sense that you may send 12 blue colored coins to A from wallet X and 100 greens to B from wallet Y and so on.
Being formed, transaction has to go through following workflow to apply it:
- User sends transaction to Mintettes
- Mintettes agree User has enough money on mentioned accounts
- Mintettes save transactions locally
- On period end Bank applies transaction
- Bank gathers new transactions from Mintettes
- Bank publishes these transactions to everyone
- Actors update their internal data structures with new wallet amount values
For MS addresses workflow should be slightly updated. We now have not single, but few holders of input, so we need to collect signatures (a notion of confirmation) from M of N holders. Hence, we introduce additional step. Whole workflow is as follows
- Collect signatures from all parties
- Publish transaction on Notary
- Wait all parties conform their signatures
- Take transaction off the Notary and do
- Do steps 1.-5. from previous section