You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/design_paper.md
+46-21Lines changed: 46 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -678,55 +678,80 @@ To explain the use case when the *revocation* of an attestation has to happen on
678
678
679
679
# The components of TBML
680
680
681
-
## Magic Links
681
+
## Actions
682
682
683
-
Magic links are simply a signed message for an atomic swap. It facilitates one major function of traditional financial institutions, a function called "Delivery versus Payment", whereby one party, the buyer, pays in a currency and the other delivers an asset to be purchased. In today's financial world, delivery of physical goods is not a concern of the financial institutions. Once the transaction is done on paper or on a computer, it is considered done. This assumption is built on the trust towards financial institutions.
683
+
We seperate the rendering portion of TBML and the actionable portion. Action refer the things you can do with a token. There are generally either:
684
684
685
-
(Consider deletion: If, for example, the transaction consists of a loan in the form of currency and a car the loan is used to purchase, then the actual delivery of the car is out of concern, and both the buyer and seller are expected to follow what the computer tells them to do.)
685
+
- Use the token to access to a web service
686
+
- Use the token to control IOT devices
687
+
- Transacte with the token.
686
688
687
-
## Assets
689
+
All examples of these actions can be found in the car example in the first chapter. For example:
688
690
689
-
In TBML terminology, an asset is something that can be owned and has value. This is a broad definition and doesn't require, like the financial assets, that an asset produces a return, or is anticipated to.
691
+
Car token's actions:
690
692
691
-
Attestations are like Tokens except that they are not transferable, in the case that a smart contract allows them to be transferred, the original attestation is render invalid after the transfer. This makes it possible for things like friendship to be defined in a way similar to the token, and therefore, we may as well call such attestations "tokens". A token of friendship would be a signed message from someone, recognising someone else as a friend, and it would be an asset in TBML terminology. Apparently a token of friendship from Michael Jackson can be of high value, especially since he cannot produce any more of these tokens, but even a humble token like "Friend of Weiwu" has some value. It, for example, allows a friend of Weiwu to sign a delivery recipt for him, or allows such a friend to get a mate-rate for signing up in the same dojo Weiwu practises in. There is even a neat trick, which, by using secret sharing protocols, having Weiwu's friendship token allows one to learn common friends shared with Weiwu. Notice that this definition does not require the asset to be a blockchain token, nor that it even exists on the blockchain. More on that in the latter chapter "attestation".
693
+
Unlock
694
+
: The token has enough credential information to answer a challenge-response from a car in order to unlock it while offline.
692
695
693
-
Assets and attestations (tokens in general) can have financial value and utility value.
696
+
Authorise
697
+
: The user can also authorise another person to use it, sending an authorisation (which is an attestation - see Attestation chapter) as easy as sending an instant message.
694
698
695
-
Examples of Assets with financial value:
699
+
Lend
700
+
: The difference between authorising and lending is the latter also authorises the borrower to use Holden Capped Service and to open the garage gate.
696
701
697
-
Rental....
702
+
Holden Capped Service token's actions
698
703
699
-
Airbnb ...
704
+
Book a service
705
+
: This token allows the user to login to any holden service center and book an appointment.
700
706
701
-
## Actions
707
+
Check-in
708
+
: He further uses this token to enter the service station (swipe his mobile to enter the sliding gate).
709
+
710
+
Pay
711
+
: By including the Holden Capped Service token in a transaction, the service cost is capped, either on the web through pre-pay or on the POS.
702
712
703
-
Actions are things that can be done to an asset.
713
+
Not all actions are provided by the token. Typically:
704
714
705
-
Regarding the financial properties of an asset, typical actions are transfer, sell, buy, collateralise, combine (e.g. in the case of cross-collateralization), insure, auction and testify (obtain a signature of someone in order to satisfy certain trading requirements).
715
+
Transfer
716
+
: Provided by a generic token's TBML. You can imagine for example the TBML file of ERC721 allows any conforming tokens to be transferred, and the car token might be one of them. In reality it can hardly be the case because car token's transaction rules usually require attestations, such as the buyer is of the legal age to conduct such a transaction, but even in such cases, the rule might be supplied by a TBML regulating the car trade.
706
717
707
-
The other actions depend much on the utility properties of an asset, however, this varies from one type of asset to another. AirBNB token, for example, would allow a user to open the smart-lock of their AirBNB room at the time it is reserved for. That's probably all the utility you can get from the AirBNB token, but game assets, for example, can be equipped, unequipped, transmuted, transmogrified, enchanted, disenchanted, cursed, purged, socketed, unsocketed, broken-down, recycled, consecrated... Imagination is the limit.
718
+
Auction
719
+
: Provided by an auction market. When the user accesses an auction market, using the same mechanism that allows a token to login to a website, the user's agent (wallet) would show a list of tokens that can enjoy the auction service. If the user trusts the auction market, she can then add its action to all of the supported tokens.
708
720
709
-
Let's start with fungible tokens, as they are somewhat simpler. In the following screen mock-up, the actions are: "Pay anyone", "Request Payment", "Convert to USD".
721
+
List for sharing
722
+
: A startup company, let's call it CarNextDoor, offers to manage the process so the car owners can safely list the car for sharing and automatically gets income. Once listed, the car owner will obtain a listing token and has to book his use of his own car through it. In exchange, when he is not using it, the car goes out and earn money for him. Naturally, the action is provided by CarNextDoor, not by Holden.
710
723
724
+
## Magic links
711
725
712
-

726
+
Magic links are simply a shortcut to an action on a specific asset. It's usually sent to the owner of the asset. It comes with required attestations for a transaction (e.g. an atomic swap).
713
727
714
-
[explains the attestations associated with this token.]
715
728
716
-
The case with non-fungible tokens are more complicated. Let's continue with the AirBNB example.
729
+
## Attestations
717
730
731
+
Attestations are like Tokens except that they are not transferable, in the case that a smart contract allows them to be transferred, the original attestation is render invalid after the transfer. This makes it possible for things like friendship to be defined in a way similar to the token, and therefore, we may as well call such attestations "tokens". A token of friendship would be a signed message from someone, recognising someone else as a friend, and it would be an asset in TBML terminology. Apparently a token of friendship from Michael Jackson can be of high value, especially since he cannot produce any more of these tokens, but even a humble token like "Friend of Weiwu" has some value. It, for example, allows a friend of Weiwu to sign a delivery recipt for him, or allows such a friend to get a mate-rate for signing up in the same dojo Weiwu practises in. There is even a neat trick, which, by using secret sharing protocols, having Weiwu's friendship token allows one to learn common friends shared with Weiwu. Notice that this definition does not require the asset to be a blockchain token, nor that it even exists on the blockchain. More on that in the latter chapter "attestation".
718
732
733
+
Assets and attestations (tokens in general) can have financial value and utility value.
719
734
720
-
#Examples of TBML
735
+
## Assets
721
736
722
-
---
723
-
Authors note:
737
+
In TBML terminology, an asset is something that can be owned and has value. This is a broad definition and doesn't require, like the financial assets, that an asset produces a return, or is anticipated to.
724
738
725
739
Examples of assets: crypto kitties, FIFA tickets, right to a bottle of wine, 1% ownership of a house, a piece of armour in a video game or dice in a video game.
726
740
727
741
Examples of attestations: crypto-kitten vouchers, FIFA ticket redeem coupons, American Express Centurion status, Friendship Tokens (a signed message from Michael Jackson saying that Victor Zhang is a friend) or proof of identity.
728
742
729
743
744
+
# Join the game
745
+
746
+
The work to define TBML as a specification is a work in progress. We aim to produce a yellow paper of the key methods and considerations and extend it from there. More methods of collaborations are being put to work as you read this draft. For now, the contact points are:
747
+
748
+
weiwu.zhang@alphawallet.com
749
+
james.sangalli@alphawallet.com
750
+
victor.zhang@alphawallet.com
751
+
752
+
753
+
Authors note: Delivery vs payment
754
+
730
755
[The concept of delivery vs payment and how it is useful in both investments and consumption.]
731
756
732
757
(This section is in the early draft stage, never mind the clutter)
0 commit comments