本文主要是介绍2021-02-17 Fabric Contributor Meeting 个人笔记 Non-fungible token chaincode sample,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
会议议题
Fabric 2.3.1
Fabric CA 1.5 release 主要是Go 1.15 作为LTS
default branch 重命名
ERC-721 Non-fungible token chaincode sample
动机
Fungible Token, 可以交易且没有明显区分的度的
比如外汇兑换
Non-Fungible Token是唯一的且容易区分的
比如票据
实现功能
个人理解作者这里参考了
https://eips.ethereum.org/EIPS/eip-721,毕竟和ECR721有关嘛~
另外作者添加了如下功能
测试场景:
备注: 我理解minter这里是来自mint铸币厂这个词来的。。。
交易
三方交易(指定token)
三方交易(所有token)
实现细节
建模
MintWithTokenURI
TransferForm
BalanceOf
TotalSupply
Burn
这里如果我没理解错,只删除state db里的数据
PR 地址:https://github.com/hyperledger/fabric-samples/pull/406
这篇关于2021-02-17 Fabric Contributor Meeting 个人笔记 Non-fungible token chaincode sample的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!