Fabric: Using InvokeChaincode to achieve cross-channel data access

Because I encountered some problems at work, I considered using Fabric’s cross-channel chain code calling method InvokeChaincode() to solve them. This article mainly records the following usage process of InvokeChaincode() and the problems encountered in the Fabric test network. 1 Preparation 1.1 Understanding InvokeChaincode The function of InvokeChaincode is to call the specified chain code. […]

Fabric.js copy-paste elements

Introduction to this article Like + Follow + Collection = Learned What do you consider when you copy an element of fabric? Deep copy the currently selected object and then add it to the canvas? In fact, fabric.js provides a cloning method. There is also this demo in the case of fabric.js official website: Fabric.js […]

Hyperledger fabric smart contract writing (2) ledger operations

1. What is Chaincode Chaincode is a program written in Go, Node.js, or Java that implements a prescribed interface. Chaincode runs in a process independent of peers, initializing and managing ledger state through transactions submitted by applications. Chaincode usually handles the business logic after Channel member permission, so it is similar to a “smart contract”. […]

Fabric.js copy-paste elements

Introduction to this article Like + Follow + Collection = Learned What do you consider when you copy an element of fabric? Deep copy the currently selected object and then add it to the canvas? In fact, fabric.js provides a cloning method. There is also this demo in the case of fabric.js official website: Fabric.js […]

Fabric.js uses custom fonts

Introduction to this article Like + Follow + Collection = Learned If you use Fabric.js for editing products, you may need to configure fonts for users. This time I will talk about how to use custom fonts when creating text in Fabric.js, how to modify fonts when the project is running, and recommendations A tool […]

Hyperledger fabric deploys chain code (5) Initialization and chain code upgrade

After the chaincode definition is submitted to channel, it will be started on the peer node of the channel where the chaincode is installed. The asset-transfer (basic) chaincode can now be called directly by client applications via the command line. Use the following command to create an initial set of assets (initialization) on ledger. Please […]

Hyperledger fabric test environment deployment

1. Preface This tutorial runs under the ubuntu20.04 version. Please deploy the ubuntu20.04 environment before performing the fabric2.2 environment deployment. All deployments are carried out in accordance with the official document hyperledger fabric. I also share the problems and solutions encountered during the operation. I will answer them one by one. If you don’t know […]

Hyperledger fabric smart contract writing (3) Endorsement strategy

1. Concept of endorsement strategy Nodes use the endorsement strategy to determine whether a transaction is correctly endorsed. When a peer accepts a transaction, it will call the VSCC (Validation System Chaincode) related to the transaction Chaincode as part of the transaction verification process to confirm the validity of the transaction. Therefore, a transaction contains […]

Hyperledger fabric smart contract writing (1)

1. Differences in fabric chain code versions Fabric chaincode is divided into two major versions, version 1.x and version 2.x. The main differences between the two are: ####1. Differences in imported packages The packages imported by 1.x are: “[github.com/hyperledger/fabric/core/chaincode/shim](http://github.com/hyperledger/fabric/core/chaincode/shim)” pb “[github.com/hyperledger/fabric/protos/peer](http://github.com/hyperledger/fabric/protos/peer)” The packages imported by 2.0 are: “[github.com/hyperledger/fabric-contract-api-go/contractapi](http://github.com/hyperledger/fabric-contract-api-go/contractapi)” ####2. Different method structures There is no […]