taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit 5e1be48814d87374dcd1fecbeab57071ed278fd6
parent fb9a5e4d286058d4ce4ad82949bdc0455c6e5d5d
Author: Florian Dold <florian@dold.me>
Date:   Mon, 19 Apr 2021 14:50:09 +0200

purse state machine

Diffstat:
Mdesign-documents/013-peer-to-peer-payments.rst | 27+++++++++++++++++++++++++++
1 file changed, 27 insertions(+), 0 deletions(-)

diff --git a/design-documents/013-peer-to-peer-payments.rst b/design-documents/013-peer-to-peer-payments.rst @@ -269,6 +269,33 @@ Cross-exchange payment offer: Dave's exchange receives the wad, and credits Dave's account with the money. +State machine for Purses +------------------------ + +.. code-block:: none + + // The "OPEN" starte state requires funding + // the purse either from an account or from + // a coin. + -> OPEN + + // "Filled" means that it is filled with as many coins + // as indicated in the creation request. + OPEN -> FILLED + + // Canceled, all coins put into the purse are refunded + FILLED -> CLOSED_REFUNDED + + // Sent via a wad to a different exchange + FILLED -> PENDING_WAD + + // The associated wad transfer succeeded. + PENDING_WAD -> CLOSED_WAD + + // Merged into an account at the same exchange + FILLED -> CLOSED_MERGE + + Additional considerations -------------------------