Using endorsements in Hyperledger Composer to design a process

后端 未结 2 1430
离开以前
离开以前 2021-01-01 08:23

NB: I am seeking to understand how endorsements works in general. This will help me determine how to design applications when using Hyperledger Composer.

When I read

2条回答
  •  执念已碎
    2021-01-01 08:25

    The endorsement policy enables you the chance to add an extra verification layer to your Blockchain. You define it when you create the channel.

    • When a (Initial) Peer sends a proposal, firts of all the proposal is send to all of the Peers that you have defined in your Endorsement policy.
    • Then, each Endorser Peer executes the proposal against its ledger. The Endorser Peer will send the result signed to the Initial Peer.
    • The Initial Peer will receive more than one respone. Then, the Initial Peer will verify all the signatures and will compare the result of each response. The result sent by each Endorse Peer have to be the same.
    • In that case, the Initial Peer will send the transaction to the Orderers. That transaction will wraper all the responses all of the Endorses Peers.

    So, you should define your Endorsement policy according to your requirements

提交回复
热议问题