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
+47-26Lines changed: 47 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,6 @@ Despite the great folly in 2017-2018, it is not a bad thing to initially focus o
10
10
11
11
Previous efforts in this industry primarily focused on enriching the capacity of the technology. This paper will focus on tokenisation and introduce a standardisation effort known as TBML (Token Behaviour Markup Language) which will make the blockchain technical stack complete, providing utility for the economy and the internet.
12
12
13
-
14
-
15
13
## Join the game
16
14
17
15
Please join our work at xxx. A Yellow Paper to guide implementors to use TBML for their tokens and dapps will take months to make, but a work in progress is always available online. Participate now to avoid the draft language specification being made without consideration your token model.
@@ -403,7 +401,7 @@ TBML is designed to separate token rendering code, and transaction generating co
403
401
404
402
A user who is purchasing a 1% property token from Peter's Pride Property recommendation website can be supplied with a rendering and transaction package, signed by the same group of people who created the holding contract of such tokens. Therefore the user can purchase assets from any website with a similar level of trust, or purchase it from a WeChat or Facebook private message and know it is the real token being rendered and transacted.
405
403
406
-
## payment side example: DAI token
404
+
## Payment side example: DAI token
407
405
408
406
DAI is a token designed for payment - purchasing security token, purchasing goods and services and so like. It's intended to match USD in value. Not fixing the supply cap, it is not itself an investiment candidate.
409
407
@@ -454,44 +452,39 @@ Third, if secure protocols needs to be added, for example, an attestation from t
454
452
455
453
#### Interoperatibility
456
454
455
+
Adding support for DAI itself is trouble enough, not to mention adding other payment side tokens. In the 2017-2018 frenzy, a lot of payment side tokens are invented and heavily invested in. Pretty much anything advertised not as a security token outlines some way their token can be used to pay or co-pay some goods and services. Electricity tokens, for example, is invented as the currency of the future tokenised electricity. Most of them are jokes, but what if they are put to work? Even if only 10% of these tokens are done by sincerer ICO teams, all of them would forsee similiar trouble as the integration of DAI token into the market.
457
456
457
+
And each payment side currency brings its own payment side logic. Take DAI for example, it has these payment side logic:
458
458
459
-
DAI token balance isn't immediately available to the DApps.
459
+
1. The creation of DAI tokens requires a set-up phase, called CDP.
460
+
2. The risk level of a CDP changes. Users should receive a notification of their CDP is at liquidation risk. We will cover such case again in the next chapter.
461
+
3. If the balance runs low, but the user has quite a bit of Ethers on his/her account, she may pause the checkout to top up before returning to the checkout.
460
462
461
-
t has a few additional features that we will take care of
463
+
An architect might read it here and decide these can all be done out of band. Just kick the user back to the MakerDAO website if any of these happens. This would not address payment side innovation like Point+Pay, where the points are selected at the same screen as payment. In fact, you can observe a proliferationDictionary of payment side innovations in China for examples:
462
464
463
-
1. The creation of DAI tokens requires a set-up phase.
464
-
2. It's needed to enquire a smart contract or cross reference another blockchain to find the balance.
465
-
3. The de-risking of DAI comes with a cost. The user
465
+
- Micro-credit (e.g. 花唄) and collatoralised credit
466
466
467
-
[Edit: describe how DAI works]
467
+
- Points to use when the shopping behaviour matches the encouraged behaviour of micro-credit, e.g. shopping overseas.
468
468
469
-
[Important to note that
469
+
- Cashback when you spent more than ¥1000 in a day.
470
470
471
-
---
471
+
- Red packet that can only be used in paying consumption.
472
472
473
-
[Editor: the following served as an outline of the entire chatper and should be checked then safely removed now that the chapter is nearly fully written.]
473
+
- Lottery on being the 100th, 200th.. 600th payment.
474
474
475
-
Design requirements for a frictionless market
475
+
- Free shipping insurance on selected shopping behaviour (e.g. to encourage shoppers to favour drop-shipping as it loses advantage thanks to its slow delivery).
476
476
477
-
The TBML language has to provide:
477
+
- Prepaid online shopping payment cards, like the Alipay cards sold in Australia Post.
478
478
479
-
- Where to find the asset (which chain and what smart contract holds the asset)
480
-
- Vocabulary for token assets
481
-
- Methods to render and translate attributes in local languages
482
-
- Ways to obtain 3rd party information and a list of what 3rd parties are trustworthy.
483
-
- A superset of ABI information that informs users the purpose of the transaction.
479
+
TBML intends to give room for payment side innovation as well as deliverable side. Traditionally, partner support used to curb payment side innovation. American Express implemented points to pay API but after years only less than 5% of partner e-commerce websites provided this as a checkout option.
484
480
485
-
And it should be usable by:
481
+
#### Scalability
486
482
487
-
- The Dapp created by the token issuer;
488
-
- Any 3rd party Dapp that might use the token;
489
-
- A generic market not owned by the token issuer;
490
-
- Various user-agents, in rendering and using the assets in the wallet section of mobile and desktop wallets.
483
+
The payment and delivery may not be on the same blockchain.
491
484
492
-
We will proceed on addressing the need for "Integrating the Web" and come to a full picture of the design requirements of TBML in the following chapters.
485
+
Rendering user's balance in dapp website is briefly mentioned as a privacy issue a few pages back, but as blockchain scales, the dapp's server side may not have equal access to the client on some data like balance. It's possible that the website only observes the result of the transaction and happy to deliver physical or tokenised goods by rules.
493
486
494
-
---
487
+
It's unlikely any scalability plan will not involve the participation of dapp browsers and wallets. They results in situation that dapps could not take care of the payment side with whatever advanced javascript they can supply.
495
488
496
489
## address the "Integrate the web" need
497
490
@@ -664,6 +657,34 @@ The following picture illustrates the look of such a car token in the user's wal
664
657
665
658
# The design of TBML
666
659
660
+
## Components
661
+
662
+
663
+
---
664
+
665
+
[Editor: the following served as an outline of the entire chatper and should be checked then safely removed now that the chapter is nearly fully written.]
666
+
667
+
Design requirements for a frictionless market
668
+
669
+
The TBML language has to provide:
670
+
671
+
- Where to find the asset (which chain and what smart contract holds the asset)
672
+
- Vocabulary for token assets
673
+
- Methods to render and translate attributes in local languages
674
+
- Ways to obtain 3rd party information and a list of what 3rd parties are trustworthy.
675
+
- A superset of ABI information that informs users the purpose of the transaction.
676
+
677
+
And it should be usable by:
678
+
679
+
- The Dapp created by the token issuer;
680
+
- Any 3rd party Dapp that might use the token;
681
+
- A generic market not owned by the token issuer;
682
+
- Various user-agents, in rendering and using the assets in the wallet section of mobile and desktop wallets.
683
+
684
+
We will proceed on addressing the need for "Integrating the Web" and come to a full picture of the design requirements of TBML in the following chapters.
685
+
686
+
---
687
+
667
688
We talked about the design requirements of TBML and let's step in closer to find out how would it work.
668
689
669
690
## Relate tokens to smart contract and tokens to web services
0 commit comments