English
Asset Definition of Wisdom Chain Document Knowledge Base
This article comes from the official Twitter of Wisdom Chain
URL:
https://twitter.com/Wisdom_Chain/status/1301693246767337472?s=20
In the previous chapter, we talked about the problem of verifying programming in Wisdom Chain Document Knowledge Base. Today, we will talk about asset definition in verifying programming.
Token is a custom asset or equity.As the bottom public chain of the block chain, Wisdom Chain supports users to publish and customize Token, and provides powerful management functions and a convenient management interface.
Users can manage their own digital assets on the Wisdom Chain network and keep their rights and interests records untouched. As with ERC20, all project parties and ordinary investors are free to participate.
For this reason, Wisdom Chain specially designed grammar rules, rules grammar design, is very simple and easy to understand;
<Rule Type>
{
//Attribute value definition
//Rule function
}
I. Attribute value definition refers to the attribute definition related to the asset definition. Attribute value is equivalent to the state quantity and needs to be stored in the node account book.
1
Rule function
II. Rule functions are a set of validation rules that determine the call of a transaction and the validation point. After validation, a series of write updates are made according to the rules.
2
Attribute value
Rule types have a fixed rule definition format, so users actually need to fill in their own attribute values and dynamic values in rules, and use template engines to implement their own rules.The process of deploying rules is to write the user's own rules to a block, through a special transaction.
An example of an asset definition rule is as follows:
{
"ASSET_RULE": {
"code": "wdcc",
"offering": 10000,
"totalamount":10000,
"create": "xxxx",
"owner": "yyyy",
"allowincrease": 0
"info":{}
}
}
The above defines an asset coded wdcc, initially 10000.There are three main rule functions, changeowner, transfer, and increased.
Through the function of asset definition, both enterprises and individuals can achieve fast token issue. For enterprises, asset definition greatly reduces the operating costs of enterprises, quickly realizes the assets licensing, speeds up the flow of assets, and shares and bonuses of enterprises can be divided directly by the number of tokens held.
For an individual, the asset definition function can also realize the quick realization of personal value. Assuming you are a content creator, you can give token to his fans and friends.
When your content is approved by the market or fans, your token starts to flow, just like dandelion seed, the more seeds you spread, the more true value you have, this value is related to the content, the number of fans.This reduces the intermediate links and maximizes the interests of content creators and fans.
Of course, there are many scenarios where asset definition functions can be applied in the future, whether for an enterprise or an individual.
簡體中文
本文來自Wisdom Chain官方Twitter
URL:
https://twitter.com/Wisdom_Chain/status/1301693246767337472?s=20
上章我們講了《Wisdom Chain檔案知識庫》的驗證式編程問題,今天我們就來聊一聊驗證式編程中的資產定義問題。
Token是一種自定義的資產或者權益。作為區塊鏈底層公鏈,Wisdom Chain支持用戶發行并自定義Token,并提供強大的管理功能和便捷的管理界面。用戶可以在Wisdom Chain網路上管理自己的多項數字資產并保證權益記錄不被篡改,就像在以太坊上發行ERC20一樣,所有專案方和普通投資者,都可以自由參與。
為此,Wisdom Chain專門設計了語法規則,規則語法設計,是很簡潔易懂的;
<規則型別>
{
//屬性值定義
//規則函式
}
1
屬性值定義
屬性值定義是指與資產定義相關的屬性定義,屬性值相當于就是狀態量,是需要被存盤到節點賬本中的。
2
規則函式
規則函式是一組驗證規則,決定事務的呼叫以及驗證點,符合規則驗證后,會根據規則進行一系列的寫入更新。
規則型別擁有固定的規則定義格式,因此,用戶實際上只需要填充自己的屬性值和規則中的動態的值,使用模板引擎的方式實作自己的規則。部署規則的程序也就是將用戶自己的規則寫入到區塊,是通過一條特殊的事務來實作。
其中資產定義規則示例如下:
{
"ASSET_RULE": {
"code": "wdcc",
"offering": 10000,
"totalamount":10000,
"create": "xxxx",
"owner": "yyyy",
"allowincrease": 0
"info":{}
}
}
以上定義了一個代碼為wdcc的資產, 初始為10000。并且具備3個主要是規則函式,分別是changeowner、transfer以及increased。
通過資產定義功能,不管是企業還是個人,都可以實作快速發幣,對于企業而言,資產定義極大的減少了企業運營成本,快速實作資產通證化,加速企業資產流動,并且企業股份、獎金都可以直接通過持幣的數量來進行劃分。
對于個人而言,資產定義功能,也能實作個人價值的快速變現,假設你一位內容創作者,那么他可以將幣送給自己的粉絲和朋友,當你的內容受到市場認可或者粉絲認可,那么你的幣就開始流動起來,這就好比蒲公英撒種一樣,當你的蒲公英種子撒的越多,落地生根就有了真實的價值,這個價值就和內容、粉絲量相關。這樣減少了中間環節,同時還能實作內容創作者與粉絲的利益最大化。
當然不管是企業還是個人,資產定義功能,在未來還有很多適用場景。
關注Wisdom Chain動態
Twitter:Wisdom_Chain
微博:WisdomChain
知乎:智慧鏈技術社區
Facebook:WisdomChain
Telegram:WisdomPublicChain
Medium:Wisdom_Chain
相關資源
WIsdom Chain公鏈檔案知識庫:
https://docs.wisdchain.com/#/
Wisdom Chain官網:
https://wisdchain.io/
Wisdom Chain技術論壇:
http://tech.wisdchain.io/
Wisdom Chain開源代碼庫:
https://github.com/WisedomChainGroup
Wisdom Chain區塊瀏覽器:
https://scan.wisdchain.com
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/7294.html
標籤:區塊鏈技術
