W3C home > Mailing lists > Public > public-webpayments@w3.org > February 2016

Modeling trust lines

From: Melvin Carvalho <melvincarvalho@gmail.com>
Date: Wed, 17 Feb 2016 20:31:11 +0100
Message-ID: <CAKaEYhJU2nAdRVdN56GLjOHn1CpnSt6+W6oiSVqhph7rjy-bPA@mail.gmail.com>
To: Web Payments <public-webpayments@w3.org>
I have a use case that has a need for 'trust lines', similar to those that
can be added in the ripple system

e.g. Alice trusts Bob for 100 bits

Would be the statement I would like to model.

The terms needed:
description / context (optional?)

I already have a very similar data structure in web credits namely the
"Credit" class that amounts to an IOU between participants.

Does anyone have any ideas on a good way to model trust lines?  My current
idea would just be to reuse the web credits fields with a new type -- (name
= TrustLine?)

This leads to the question, of whether to make TrustLine a subclass of
Credit, a sibling class, or to create some kind of parent class for both.
I'll note that the web payments work already has a similar concept, namely
"Transfer" e.g.


I'd probably like to turn this around in the next days so just wanted to
ask the group if they had any thoughts or experiences with this workflow
that they might like to share!


--------------------------------- Step #1 -----------------------------------

*** Agent creates a Transaction object

   "type": "Transaction"
      "type": "Transfer",
      "amount": "7.50",
      "currency": "USD",
      "source": "https://bluebank.com/people/john/accounts/party-funds",
      "destination": "https://redbank.com/people/jane/accounts/hosting",
      "comment": "Chipping in for the Pizza Party tomorrow."
Received on Wednesday, 17 February 2016 19:31:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:07:44 UTC