Hyperledger fabric Hyperledger结构&x27;s-Idemix用法

Hyperledger fabric Hyperledger结构&x27;s-Idemix用法,hyperledger-fabric,hyperledger-fabric-sdk-java,Hyperledger Fabric,Hyperledger Fabric Sdk Java,我想尝试Fabric 1.3版本引入的idemix功能。基于。为了支持idemix,我做了一些更改。但是当我运行java-cp blockchain-client.jar org.example.chaincode.invocation.InvokeChaincode时 ,顺便说一句,我省略了注册和注册用户的第5步,我遇到了 2019-10-18 03:20:10.312 UTC [protoutils] ValidateProposalMessage -> WARN 049 channe

我想尝试Fabric 1.3版本引入的idemix功能。基于。为了支持idemix,我做了一些更改。但是当我运行
java-cp blockchain-client.jar org.example.chaincode.invocation.InvokeChaincode时
,顺便说一句,我省略了注册和注册用户的第5步,我遇到了

2019-10-18 03:20:10.312 UTC [protoutils] ValidateProposalMessage -> WARN 049 channel [mychannel]: creator certificate is not valid: Failed verifing with opts [&{<nil> <nil> [] [{1 [111 114 103 49]} {2 1} {0 <nil>} {0 <nil>}] 3 [] 0 0xc00000fab8 0}]: signature invalid: APrime and ABar don't have the expected structure
2019-10-18 03:20:10.312 UTC [comm.grpc.server] 1 -> INFO 04a unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.22.0.1:33960 error="access denied: channel [mychannel] creator org [idemixMSPID1]" grpc.code=Unknown grpc.call_duration=82.6484ms` from peer container.
能力: 通道:&通道功能 V1_3:正确

Orderer: &OrdererCapabilities
    V1_1: true

Application: &ApplicationCapabilities
    V1_3: true
    #V1_2: false
    #V1_1: false
应用程序:&ApplicationDefaults 组织: 频道:&频道默认值 政策: 读者: 类型:ImplicitMeta 规则:“任何读者”

配置文件添加了以下代码:

// org/example/config/Config.java
 public static final String ORG3 = "org3";
 public static final String ORG3_IDEMIX_MSP = "idemixMSPID1";
docker-composer.yaml文件保持不变。 使用的所有图像均为1.4.1

我希望背书人同行能够在启用了idemix的情况下验证来自客户的tx提案。但是现在对等端报告
2019-10-18 03:20:10.312 UTC[protoutils]ValidateProposalMessage->WARN 049 channel[mychannel]:创建者证书无效:无法使用opts[&{[[][{1[111 114 103 49]}{2 1}{0}{0}]3[0 0xc00000fab8 0}]:签名无效:APrime和ABar没有预期的结构
2019-10-18 03:20:10.312 UTC[comm.grpc.server]1->INFO 04a一元呼叫已完成grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.22.0.1:33960 error=“访问被拒绝:频道[mychannel]创建者组织[idemixMSPID1]”grpc.code=Unknown grpc.call_持续时间=82.6484ms

我不知道为什么。我猜如果对等方不支持idemix tx验证。对等机上是否有一些开关未打开?救命啊。任何回复都将不胜感激

    Writers:
        Type: ImplicitMeta
        Rule: "ANY Writers"
    Admins:
        Type: ImplicitMeta
        Rule: "MAJORITY Admins"
Capabilities:
    <<: *ChannelCapabilities
 // org/example/chaincode/invocation.java
 UserContext normalUserContext = new UserContext();
String name = "user"+System.currentTimeMillis();
normalUserContext.setName(name);
normalUserContext.setAffiliation(Config.ORG1);
normalUserContext.setMspId(Config.ORG3_IDEMIX_MSP);
String enrollmentSecret = caClient.registerUser(name, Config.ORG1);
normalUserContext = caClient.idemixEnrollUser(normalUserContext, enrollmentSecret,normalUserContext.getMspId());


FabricClient fabClient = new FabricClient(normalUserContext);

// org/example/config/Config.java
 public static final String ORG3 = "org3";
 public static final String ORG3_IDEMIX_MSP = "idemixMSPID1";