Cryptocurrency based on Hyperledger

Does Hyperledger Fabric support the ability to create a cryptocurrency, as Bitcoin / Ethereum is well aware of? I don't mean markers that I can chained code.

+4


source to share


2 answers


You can implement any business logic with Hyperledger Fabric networking code, which is essentially a simple program. Chaincode manages the ledger state of transactions presented by the application and ensures consistency between network partners.

Hyperledger Fabric currently supports networking code written in Go, and support for nodeJS and Java will be added in the future. The chaincode interface is defined as follows:

// 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
}

      



So, you can implement your cryptocurrency in chain code. For some inspiration on how you can implement it, you can take a look at the following balance-transfer demo .


+6


source


if you are interested in a highly profitable CLOUD FARM where you can earn Bitcoin even if its price drops! A cloud farm has its advantages; fairly cheap electricity $ 0.12 / thousand / day. Coins are mined by Bitcoin as well as Ethereum. Live webcams. (Motivation: trust in the service that they have real equipment) https://flymining.cloud/webcams With real data from yesterday's income calculator. https://flymining.cloud/calculator You have the option to use my promo code [i] [b] SDGU9J [/ b] [/ i] for an additional 5% hash rate bonus. If you are interested in information, please take a look at https://flymining.cloud



-1


source







All Articles