How can I ensure that all organizations have signed the chaincode to install?

How can I ensure that all organizations have signed the chaincode to install?

In Hyperledger Fabric 1.3, how can I ensure that all organizations have signed the chaincode to install ?

In Hyperledger Fabric 1.3, how can I ensure that all organizations have signed the chaincode to install ?

I could sign the code, but it seems that no component verifies the signature.

Details are as below:

Preconditions

  • Fabric 1.3
  • I have two orgs, org1 and org2.
  • org1 wants to verify that org2 has signed the code, and vice versa, for non-repudiation (undeniability).
  • I know that we can install chaincode without signatures by peer chaincode install.

Expected Behaviour

In the below Commands, I expected that:

  • Option A must succeed, because the chaincode includes signatures from both orgs.
  • Option B must produce some kind of error or warning, because the chaincode lacks a signature from org2.

Actual Behaviour

  • Not only Option A but B also succeeds with no errors, which is against the expectation.

Commands

org1> peer chaincode package -n mycc -v 0 example02/cmd -s -S \
          -i "AND('Org1MSP.admin')" cc.out


Option A: org2> peer chaincode signpackage cc.out signedcc.out org1> peer chaincode install -n mycc -v 0 signedcc.out org2> peer chaincode install -n mycc -v 0 signedcc.out

Option B: org1> peer chaincode install -n mycc -v 0 cc.out org2> peer chaincode install -n mycc -v 0 cc.out

org1> peer chaincode instantiate -o orderer:7050 -C mychannel
-n mycc -v 0 -c '(snip)' -P "AND ('Org1MSP.peer','Org2MSP.peer')"

Then Org2 makes a query.

The flow

blockchain hyperledger

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Top Hyperledger Blockchain Development Companies Reviews 2020 – TopDevelopers.co

An extensively researched list of top hyperledger developers with ratings & reviews to help find the best hyperledger Blockchain Development Companies around the world.

5 Blockchain Applications That Have Transformed the World of Technology

The blockchain is the decentralized database of the blocks of information, which gets recorded in the chain format and linked in a secured crypto graphical manner. This technology ensures proper safety of the data due to its secure nature, and it totally changes how people carry out transactions. It also brings about a faster and secure process of validating information needed to establish reliability.

What Is The Difference Between Blockchain And Bitcoin?

Our Blockchain Online Training will provide you to learn about Blockchain technology aspects with realty. Our Blockchain Course also includes live sessions, live Projects

What Makes a Blockchain Secure?

Our Blockchain Online Training will provide you to learn about Blockchain technology aspects with realty. Our Blockchain Course also includes live sessions, live Projects

Revolutionary Application of Blockchain Technology

Our Blockchain Online Training will provide you to learn about Blockchain technology aspects with realty. Our Blockchain Course also includes live sessions, live Projects