当使用configtxgen创建创世纪和交易时,我们需要使用密钥对吗?

时间:2019-10-18 02:10:14

标签: hyperledger-fabric hyperledger

我使用configtxgen创建channeltx文件并生成Tx文件。我的问题

  • 创建密钥集时是否需要提供任何密钥对详细信息? genesisTx和channelTx。

  • 我正在使用config.yaml文件,该文件的名称和ID字段为show 在下面的代码中,我们将在结构网络中使用此字段。

  • 我们是否还需要在此config.yaml“ MSPDir”中添加用户密钥对

  • 在哪里可以找到config.yaml文件描述。

    import pdfkit
    
    
    path_wkthmltopdf = "C:\\Folder\\where\\wkhtmltopdf.exe"
    config = pdfkit.configuration(wkhtmltopdf = path_wkthmltopdf)
    
    pdfkit.from_url("http://google.com", "out.pdf", configuration=config)
    

1 个答案:

答案 0 :(得分:0)

要创建创世纪时,channeltx必须提供包含公共证书的org msp

  • 管理员证书
  • 证书
  • tlscacerts

我们不需要在创始配置或渠道配置中提供任何密钥对。

实际上,对于channeltx msp而言,仅需要策略就不够