forked from SmartTokenLabs/TokenScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWhatTokenscriptCanDo.html
More file actions
62 lines (62 loc) · 6.98 KB
/
WhatTokenscriptCanDo.html
File metadata and controls
62 lines (62 loc) · 6.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html
SYSTEM "about:legacy-compat">
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><meta name="copyright" content="(C) Copyright 2020"><meta name="DC.rights.owner" content="(C) Copyright 2020"><meta name="DC.type" content="concept"><meta name="DC.relation" scheme="URI" content="index.html"><meta name="DC.format" content="HTML5"><meta name="DC.identifier" content="concept_qz1_23g_nmb"><link rel="stylesheet" type="text/css" href="css/commonltr.css"><link rel="stylesheet" type="text/css" href="css/custom.css"><title>What Can TokenScript Do?</title>
<link href="https://fonts.googleapis.com/css?family=Roboto+Slab|Lato">
<script type="text/javascript" src="https://alphawallet.com/wp-content/themes/alphawallet/discourse/widget.js"></script>
</head><body id="concept_qz1_23g_nmb"><header role="banner"><nav class="navbar navbar-expand-lg navbar-dark bg-dark mb-4">
<div class="container">
<a class="navbar-brand" href="/">🆃okenScript</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item"><a class="nav-link" href="/TokenScript.html">Documents</a></li>
<li class="nav-item"><a class="nav-link" href="/guides/Intro.html">Guides</a></li>
<li class="nav-item"><a class="nav-link" href="/specs/Intro.html">Specs</a></li>
<li class="nav-item external"><a class="nav-link" href="">TokenScript community forum</a></li>
<li class="nav-item external"><a class="nav-link" href="/TokenScript.html">AlphaWallet (uses TokenScript)</a></li>
<li class="nav-item external"><a class="nav-link" href="/guides/Intro.html">Github TokenScript</a></li>
<li class="nav-item external"><a class="nav-link" href="/specs/Intro.html">Github TokenScript Examples</a></li>
</ul>
</div>
</div>
</nav></header><div class="container" id="content"><div class="row"><nav role="toc" class="col-lg-3"><ul><li><a href="Tokenization.html">Tokenization and dApps</a></li><li><a href="index.html">Introduction to TokenScript</a><ul><li><a href="TokenScript.html">TokenScript Overview</a></li><li class="active"><a href="WhatTokenscriptCanDo.html">What Can TokenScript Do?</a></li><li><a href="defiwithandwithoutts.html">DeFi with and without TokenScript</a></li><li><a href="LivingExamples.html">TokenScript examples in AlphaWallet</a></li></ul></li><li><a href="QuickStart.html">Quick Start (usuable now)</a></li><li><a href="BasicConcepts.html">Basic Concepts</a></li><li><a href="Deploy.html">Deploy TokenScript</a></li><li><a href="features/FeatureImplementation.html">Features implemented</a></li><li><a href="specs/Intro.html">TokenScript Specs</a></li><li><a href="guides/Intro.html">TokenScript Guides</a></li></ul></nav><main role="main" class="col-lg-9"><article role="article" aria-labelledby="ariaid-title1">
<h1 class="title topictitle1" id="ariaid-title1">What Can TokenScript Do?</h1>
<div class="body conbody">
<p dir="ltr" class="p" id="concept_qz1_23g_nmb__docs-internal-guid-e32088fa-7fff-9cd2-5782-f31ffa582fc2">TokenScript can do
so much that it would be easier to explain what it can’t do. Here are some examples for
what TokenScript can add to a token:</p>
<p dir="ltr" class="p"><strong class="ph b">Information</strong>: When a token implements TokenScript, a wallet or webapp can
instantly learn about its name and abbreviation, get a description in several languages
and an image file as a logo. The wallet can even querry an API, e. G. to get weather or
exchange data. This information can adapt to the context.</p>
<p dir="ltr" class="p"><strong class="ph b">History</strong>: The wallet can remember the detailed history of operations a
token was involved, both onchain and offchain. Natively a wallet only knows
transactions. With TokenScript it can tell the complete history of its token.</p>
<p dir="ltr" class="p"><strong class="ph b">Create customized transactions</strong>: Smart contracts often require users to
craft very customized transactions. Mostly this is done by a third party website and
signed by your wallet. TokenScript instructs the wallet or webapp how to craft these
transactions and can display a button to trigger them. Especially for websites this is
no small deal: Instead of studying each smart contract and crafting the transactions by
themselves, the web developers just need to import a TokenScript.</p>
<p dir="ltr" class="p"><strong class="ph b">Integration with other token</strong>: Some operations of your token might
require that the user holds another token. For example, a car sharing token might need
you to own a car token and an insurance token. TokenScript defines and structures these
integrations.</p>
<p dir="ltr" class="p"><strong class="ph b">Attestations</strong>: You might have a use case for your token which requires
attestations, be it per e-mail or from a government agency. TokenScript can trigger an
attestation process directly in the wallet of the user and allow other parties to verify
it. The wallet can store and use any kind of attestation file in privately.</p>
<p dir="ltr" class="p"><strong class="ph b">Restrict operations</strong>: TokenScript can restrict the scope of operations.
For examples, if you have a token for a world cup game, you can sell it - but only as
long as the game has not ended. TokenScript can define any kind of rule for token
transfers and usecases.</p>
<p dir="ltr" class="p"><strong class="ph b">Proofs</strong>: TokenScript allows to add private or public proofs to Token
operations. For example, an operation could only be valid if someone proofs to own 1000
Ether. With Zero-Knowledge-Proofs this can be done without revealing an address.</p>
<p class="p">That are just some of the most important feature TokenScript can unlock. It enables
everything you can think of if you have a framework to enrich a token with information
and instructions a wallet can automatically get when the user receives a token. </p>
</div>
<nav role="navigation" class="related-links"><div class="familylinks"><div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="index.html" title="TokenScript is a framework which improves functionality, security and usability of blockchain token in multiple ways.">Introduction to TokenScript</a></div></div></nav></article></main></div></div></body></html>