- Hyperledger Cookbook
- Xun (Brian) Wu Chuanfeng Zhang Andrew Zhang
- 76字
- 2021-06-24 14:59:39
The Init function
The Init function is called when the chaincode is instantiated by the blockchain network and the function initializes the asset management data. In this function, we need to set up the OrgAsset initialization information. The three parameters we pass to call the Init function are assetId, assetType, and deviceId. This will set our device asset information, then we call the PutState(key, value) method to store the key and the value on the ledger.
推薦閱讀
- 數(shù)學建模:算法與編程實現(xiàn)
- Hands-On Blockchain with Hyperledger
- 特殊函數(shù)概論習題解答
- Security with Go
- 概率論與數(shù)理統(tǒng)計
- 實用高等數(shù)學
- 概率論與數(shù)理統(tǒng)計
- 第四屆(2018)北京高校數(shù)學微課程教學設(shè)計競賽優(yōu)秀作品與教改論文集錦
- 數(shù)學也可以這樣學:大自然中的幾何學
- 數(shù)學家、間諜與黑客:密碼與解碼(萬物皆數(shù)學)
- 數(shù)據(jù)科學與機器學習:數(shù)學與統(tǒng)計方法
- 別萊利曼的趣味代數(shù)學
- 奇妙的數(shù)學:激發(fā)大腦潛能的經(jīng)典名題(升級版)
- 線性代數(shù)簡明教程
- 數(shù)學分析新講(第3冊)