Fabric endorsement strategy paper prepared instructions

Man of few words said, directly posted document reads as follows:

# A Shotgun policy xx
identities:  # list roles to be used in the policy
    user1: {"role": {"name": "member", "mspId": "Org1MSP"}} 
    user2: {"role": {"name": "member", "mspId": "Org2MSP"}}
    admin1: {"role": {"name": "admin", "mspId": "Org1MSP"}} 
    admin2: {"role": {"name": "admin", "mspId": "Org2MSP"}}

policy: 
    1-of: 
      - 1-of: 
        - signed-by: "user1" 
        - signed-by: "admin1"
      - 1-of:
        - signed-by: "user2"
        - signed-by: "admin2"

The file contains two parts:

The identity of the entity

(Json format string)

(1) ordinary user roles (names and members of the service provider ID)

(2) the Administrator user role (name and members of the service provider ID)

Tactics

Under the policy " 1-of " in any of the following array, it means any one organization.

And " . 1-of " is any representative of a user organization.

note

Digital (1) "1-of" not exceed the maximum length of the array. "1-of" represents any one, "2-of" represents any two, and so on. In fact, any number of representatives under policy requires consent to any number of users.

(2) If the array is an array of maximum represents all that policy requires all users to agree to all of the organizations.

Guess you like

Origin www.cnblogs.com/jockming/p/12193520.html