【问题标题】:Signature set did not satisfy policy :- Issue in updating anchor peer签名集不满足策略:-更新锚点时的问题
【发布时间】:2020-07-22 07:50:18
【问题描述】:

我使用结构版本 1.4.4 在频道中创建了一个包含两个组织(Org1,Org2)的网络。我在频道中添加了一个组织。在将新组织添加到频道后,我正在尝试根据此参考 https://hyperledger-fabric.readthedocs.io/en/release-1.4/channel_update_tutorial.html#updating-the-channel-config-to-include-an-org3-anchor-peer-optional 更新锚节点。

但在尝试使用 Org3 签署更新事务时会引发错误。

  Error: got unexpected status: BAD_REQUEST -- error applying config update to existing 
  channel 'masterchannel': error authorizing update: error validating DeltaSet: policy for 
  [Group]  /Channel/Application/Org3MSP not satisfied: signature set did not satisfy 
  policy

谁能帮我解决锚更新中的错误?

【问题讨论】:

    标签: hyperledger-fabric hyperledger-fabric-ca hyperledger-fabric-sdk-js


    【解决方案1】:

    关于签名集策略的错误是由于peer channel update请求的签名无效。

    根据 configtx.yaml 文件中的签名集策略,锚节点更新需要管理员的签名。

    Organizations:
      - &Org3
          Name: Org3MSP
          ID: Org3MSP
          MSPDir: 'crypto-config/peerOrganizations/org3.example.co/msp'
          Policies:
               Admins:
                  Type: Signature
                  Rule: "OR('Org3.admin')"
    

    由于锚节点更新只是对 Org3 的更新,我们只需要让 Org3 在更新上签名即可。因此您必须在签名过程之前确认环境变量。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-03
      相关资源
      最近更新 更多