Where is the hyperlewdger fabric endorsement policy stored?

0 votes

I used balance-transfer of fabric-samples, and I confirmed blocks.
endorsement-policy wasn't in the block.

Where is Endorsement policy stored?
Also, once endorsment-policy is instantiated, is it possible to tamper/change the policy?
(I using Hyperledger Fabric v1.1.0-preview)

Jul 2, 2018 in Blockchain by ariaholic
• 7,340 points
806 views

1 answer to this question.

0 votes

I don't know exactly where is the Endorsement Policy stored.

May be someone from HLF TSC would help you here. But I know for sure that it is in no form which can be tampered with. But it is possible to change the endorsement policy of an already instantiated chaincode. Please refer to this link for a CLI based example Fabric Documentation v1.1 : section Upgrade & Invoke.

In addition to that, if I remember correctly, it can be done from the Java SDK as well. We used to specify a different endorsement policy yaml and change the version of the chaincode and used to install and instantiate. [ You need to change the version, so you have to install another copy even if there is no binary change :( ] As all the SDKs follow the same spec, NodeJS's upgrade API should also support this

answered Jul 2, 2018 by charlie_brown
• 7,720 points

Related Questions In Blockchain

+1 vote
1 answer
0 votes
1 answer

Where is the data stored in blockchain?

The smart contract is just the business ...READ MORE

answered Jun 29, 2018 in Blockchain by slayer
• 29,240 points
129 views
0 votes
1 answer

Where is the cryptogen tool in fabric?

Go in the fabric directory and then ...READ MORE

answered Oct 29, 2018 in Blockchain by Omkar
• 68,160 points
966 views
0 votes
1 answer
0 votes
1 answer
+1 vote
3 answers

Is it possible to store data about arbitrary objects on the blockchain using smart contracts?

Consider following tutorial from Hyperledger Fabric "Getting Started" pages. Basically ...READ MORE

answered Aug 30, 2018 in Blockchain by Artem
159 views
0 votes
1 answer