【问题标题】:Understanding ACL in Hyperledger Fabric v1.3了解 Hyperledger Fabric v1.3 中的 ACL
【发布时间】:2018-11-10 03:48:41
【问题描述】:

我试图了解 Hyperledger Fabric v1.3 中的 ACL。我阅读了configtx.yaml 并看到了下面描述的channel 部分:

Channel: &ChannelDefaults
    # Policies defines the set of policies at this level of the config tree
    # For Channel policies, their canonical path is
    #   /Channel/<PolicyName>
    Policies:
        # Who may invoke the 'Deliver' API
        Readers:
            Type: ImplicitMeta
            Rule: "ANY Readers"
        # Who may invoke the 'Broadcast' API
        Writers:
            Type: ImplicitMeta
            Rule: "ANY Writers"
        # By default, who may modify elements at this config level
        Admins:
            Type: ImplicitMeta
            Rule: "MAJORITY Admins"

根据文档,提到了 Readers # Who may invoke the 'Deliver' APIWriters # Who may invoke the 'Broadcast' API。我无法理解 Deliver APIBroadcast API 做什么。

如果有人知道,请告诉我。

【问题讨论】:

    标签: hyperledger-fabric access-control


    【解决方案1】:

    订购服务节点实现两个 API:

    • 广播 - 用于向排序者提交交易的 API
    • Deliver - 从 orderer 接收块的 API

    通常客户端使用广播 API,对等节点使用交付 API。 分离策略允许您允许某些客户端/应用程序仅提交交易但不能实际接收块,反之亦然 - 对等方将能够消费块但不能向排序者提交交易。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-02-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-24
      • 2018-12-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多