I have a fabric network working in sdk node, I want to introduce some private data. I have 3 orgs and the policy of the collection only allows org1 & org2 to use the private data. The instantiate runs good but it allows to org3 to use the data, so is not working. Any ideas??

I tried changing the policies at "signed-by", but still not working, and also with the basic-network structure (with OR(ORG1MSP.member) for example) and nothing.

[{
    "name": "humanDataCollection",
    "policy": {
        "identities": [{
                "role": {
                    "name": "member",
                    "mspId": "Org1MSP"
                }
            },
            {
                "role": {
                    "name": "member",
                    "mspId": "Org2MSP"
                }
            }
        ],
        "policy": {
            "1-of": [
                {
                    "signed-by": 0
                },
                {
                    "signed-by": 1
                }
            ]
        }
    },
    "requiredPeerCount": 0,
    "maxPeerCount": 2,
    "blockToLive": 0
}]

the output should be, for org1 & org2, the data and for org3 the hash and some error or warning message.

Thanks in advance.

0 Answers