ledgerloops / snap-checker

Network Ledger, based on ledgerloops-0.8 messages over Hubbie.
https://ledgerloops.com
4 stars 0 forks source link

start from scratch #11

Closed michielbdejong closed 5 years ago

michielbdejong commented 5 years ago
michielbdejong commented 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:

michielbdejong commented 5 years ago

reused the existing demo page and combined with SNAP/BTP architecture from ilp-with-accounting. Next todo: ddcd-dfs

michielbdejong commented 5 years ago

meant to merge this.