Closed michielbdejong closed 5 years ago
* ADD
* msgType 'ADD'
* msgId (integer)
--------
* entry
* beneficiary (you/me)
* amount (integer)
* unit (string)
* COND
* msgType 'COND'
--------
* condition (256 bits)
* entry
* beneficiary (you/me)
* amount (integer)
* unit (string)
* FULFILL
* msgType 'FULFILL'
* msgId (integer)
--------
* condition (see above)
* preimage (256 bits)
* ack ledger entry
* msgType 'ACK'
* msgId from ADD or FULFILL (integer)
-------
* reject ledger entry
* msgType 'REJECT'
* msgId from ADD or FULFILL (integer)
--------
* reason (string, for now)
* please finalize cond
* msgType 'PLEASE-FINALIZE'
* condition of the COND (256 bits)
--------
* reason (string, for now)
* reject cond
* msgType 'REJECT-COND'
* condition of the COND (256 bits)
--------
* reason (string, for now)
ADD> <ACK
ADD> <REJECT
COND> [>PLEASE-FINALIZE]* <FULFILL >ACK
COND> [>PLEASE-FINALIZE]* <FULFILL >REJECT
COND> [>PLEASE-FINALIZE]* <REJECT-COND
COND> [>PLEASE-FINALIZE]* <REJECT-COND
Communication rules:
reused the existing demo page and combined with SNAP/BTP architecture from ilp-with-accounting. Next todo: ddcd-dfs
meant to merge this.