Skip to content

Token Negotiation

Weiwu Zhang edited this page Dec 12, 2019 · 12 revisions

Minimum example:

Without token negotiation

  • Website: If you provide your email address, we will email you the report.
  • User: type in the email address.
  • Website: Good. Now we sent you a verification code. Type the code here.

With token negotiation:

  • Website: If you provide your email address, we will email you the report.
  • User: use an email address attestation (as a token).

Elaborate example:

  1. User access Nier: Automata website.
  2. Website: you have to be over 18 years old.
  3. The user provides a zero-knowledge proof of age through an identity attestation.
  4. The website displays a list of products and prices.†
  5. The user uses a subscription token.
  6. The website refreshes (or partially refreshes) with the price for subscribers.
  7. The user clicks "Buy"
  8. The website displays price in USD.‡
  9. The user clicks to use Gamer Credit token to pay.
  10. The website refreshes (or partially refreshes) with the price in Gamer Credit.
  11. The user clicks to use a mate-rate voucher.
  12. The website refreshes (or partially refreshes) with the mate-rate applied.
  13. The user clicks to ues AusPost Prime for delivery.
  14. The website refreshes (or partially refreshes) to show delivery fee being deducted (also address is no longer needed as AusPost Prime can provide that).
  15. The user hit "Pay" and signs the transaction.
  16. The website waits for the transaction and congratulates the use.

† Behind the scene, the website declares it accepts a list of tokens including subscription token. ‡ Behind the scene, the website declares it accepts a list of tokens for payment.