基于 Hyperledger 的加密货币
Cryptocurrency based on Hyperledger
Hyperledger Fabric 是否支持创建众所周知的加密货币的可能性 Bitcoin/Ethereum?
我不是指我可以通过链代码实现的代币。
您可以使用 Hyperledger Fabric 链代码实现任何业务逻辑,它本质上是一个简单的程序。 Chaincode 通过对应用程序提交的交易进行操作来管理分类帐状态,并确保它在网络对等点之间保持一致。
Hyperledger Fabric 目前支持用 Go 编写的链代码,而在未来将增加对 nodeJS 和 Java 的支持。 Chaincode接口定义如下:
// Chaincode interface must be implemented by all chaincodes. The fabric runs
// the transactions by calling these functions as specified.
type Chaincode interface {
// Init is called during Instantiate transaction after the chaincode container
// has been established for the first time, allowing the chaincode to
// initialize its internal data
Init(stub ChaincodeStubInterface) pb.Response
// Invoke is called to update or query the ledger in a proposal transaction.
// Updated state variables are not committed to the ledger until the
// transaction is committed.
Invoke(stub ChaincodeStubInterface) pb.Response
}
所以你可以将你的加密货币实现到链代码中。要获得有关如何实现它的灵感,您可能需要查看以下 balance-transfer.
的演示应用程序
2.0的alpha版本中有一个Token功能,您可以查看:https://hyperledger-fabric.readthedocs.io/en/latest/whatsnew.html#fabtoken
另请在此处查看
Can we create non-fungible tokens with Hyperledger?
由企业以太坊联盟 (EEA) 监督的平台中立的令牌分类法倡议已宣布发布令牌分类框架 (TTF) V 1.0,它使企业和开发人员能够普遍理解和定义令牌是什么在非技术术语中,不管它是如何实现的。
Hyperledger Fabric 是否支持创建众所周知的加密货币的可能性 Bitcoin/Ethereum? 我不是指我可以通过链代码实现的代币。
您可以使用 Hyperledger Fabric 链代码实现任何业务逻辑,它本质上是一个简单的程序。 Chaincode 通过对应用程序提交的交易进行操作来管理分类帐状态,并确保它在网络对等点之间保持一致。
Hyperledger Fabric 目前支持用 Go 编写的链代码,而在未来将增加对 nodeJS 和 Java 的支持。 Chaincode接口定义如下:
// Chaincode interface must be implemented by all chaincodes. The fabric runs
// the transactions by calling these functions as specified.
type Chaincode interface {
// Init is called during Instantiate transaction after the chaincode container
// has been established for the first time, allowing the chaincode to
// initialize its internal data
Init(stub ChaincodeStubInterface) pb.Response
// Invoke is called to update or query the ledger in a proposal transaction.
// Updated state variables are not committed to the ledger until the
// transaction is committed.
Invoke(stub ChaincodeStubInterface) pb.Response
}
所以你可以将你的加密货币实现到链代码中。要获得有关如何实现它的灵感,您可能需要查看以下 balance-transfer.
的演示应用程序2.0的alpha版本中有一个Token功能,您可以查看:https://hyperledger-fabric.readthedocs.io/en/latest/whatsnew.html#fabtoken
另请在此处查看
Can we create non-fungible tokens with Hyperledger?
由企业以太坊联盟 (EEA) 监督的平台中立的令牌分类法倡议已宣布发布令牌分类框架 (TTF) V 1.0,它使企业和开发人员能够普遍理解和定义令牌是什么在非技术术语中,不管它是如何实现的。