【问题标题】:Hyperledger fabric private channel does it create new separate ledgerHyperledger Fabric 私有通道是否会创建新的独立账本
【发布时间】:2019-09-29 23:10:25
【问题描述】:

假设我们有 3 个组织 org1、org2、org3,每个组织有 2 个 peer 意味着总共有 6 个 peer,每个组织由 orderer 组成,总共 3 个ordered。

我们创建 2 个频道...

首先是 channelAll,所有组织和节点都在其中连接。

第二个通道,我们在 org2 和 org3 之间创建 channel23 这个通道。现在我的问题是

1. when i send transaction on channelAll all the peers means total 6 peers and 3 orderer is update the ledger, saying that transaction valid and its create the new block number 1.
2. when i send the transaction to channel23, does all total 6 peers and 3 ordrer also get updated or org2 and org3 with their peers means total 4 peers, which is connect to channel23 only this will get update the ledger and create the new block 2.
3. If only org2 and org3 in channel channel23 is updated means its creating the new block which will not know to org1 then how does blockchain work, already org1 has missed the block. 

其实我在这里有点困惑,如果我有私人频道,有人可以建议我如何创建块。

【问题讨论】:

    标签: hyperledger-fabric


    【解决方案1】:
    Private data concept is implemented to avoid create multiple channels for privacy between organizations
    

    一个渠道可以实现组织之间的隐私

    例如:channelName: mychannel 组织:Org1、Org2、Org3

    可以创建账本 twp 类型 1) 对所有人通用 2) 私有 b/w org1 & org2

    所以你可以创建集合看详细教程here

    回答您的问题:

    实现私有数据时不会创建多个账本,一个通道有一个区块链

    私人数据将作为散列存储在未经授权的组织对等节点中,将授权对等节点作为普通数据存储,以便进行验证,因此数据不会存储在未经授权的对等节点中

    【讨论】:

    • 谢谢!。假设 org 1、org 2、org 3 已经包含 10 笔交易,现在 orderer 和 peers 位于所有三个组织的第 12 号区块,现在通过 channel23 再创建一笔交易org2 和 org3,那么现在所有 3 个组织的 orderer 和 peers 中的块号是多少,org2 和 org2 中 orderer 和 peers 中的块号是多少,我很困惑,请你解释一下
    • 无论私有数据还是普通数据,所有组织提交节点都将收到该块。所以区块高度在所有组织中都是相同的。唯一的变化是未经授权的对等方将没有数据,而是会出现数据的哈希
    • 有道理,谢谢,orderer 是否有数据库来跟踪区块。
    • 是的,因为orderer创建了区块,它也会存储账本
    • 是否可以不使用链码查询orderer ledger和peer ledger?
    【解决方案2】:

    每个通道都是其独立的独立区块链,因此 org1 看不到通道 23 中的块。

    【讨论】:

    • 感谢重播,我这里有点糊涂,如果org1没有看到channel23中创建的块,那么org1 orderer如何跟踪所有交易的块并将交易发送给所有人验证6个同行?所有orderer和peer的db是否不同,那么blocks如何跟踪前一个block
    • 在 Raft 中,一个 channel 只能包含所有 orderer 的子集,因此 channel23 没有 org1 的 orderer。
    猜你喜欢
    • 2019-05-21
    • 2018-06-19
    • 2023-03-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-26
    • 1970-01-01
    • 2019-01-06
    相关资源
    最近更新 更多