Skip to content

Commit

Permalink
Fix some formatting issues with the policies doc.
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Smith <[email protected]>
  • Loading branch information
benjsmi authored and denyeart committed Jul 28, 2023
1 parent c64510b commit d49a118
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docs/source/policies/policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ channel policies are defined. We can use the `configtx.yaml` file in the Fabric
test network to see examples of both policy syntax types. We are going to examine
the `configtx.yaml` file used by the [fabric-samples/test-network](https://github.com/hyperledger/fabric-samples/blob/main/test-network/configtx/configtx.yaml) sample.

### Member Organizations Section
The first section of the file defines the organizations that will be members of the channel. Inside each
organization definition are the default policies for that organization, `Readers`, `Writers`,
`Admins`, and `Endorsement`, although you can name your policies anything you want.
Expand All @@ -204,10 +205,10 @@ become the sub-policies that the `ImplicitMeta` policies point to.

<details>
<summary>
**Click here to see an example of an organization defined with signature policies**
<strong>Click here to see an example of an organization defined with signature policies</strong>
</summary>

```
```
- &Org1
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment
Expand Down Expand Up @@ -235,7 +236,11 @@ become the sub-policies that the `ImplicitMeta` policies point to.
Type: Signature
Rule: "OR('Org1MSP.peer')"
```

</details>


### Application and Roles Section

The next example shows the `ImplicitMeta` policy type used in the `Application`
section of the `configtx.yaml`. These set of policies lie on the
Expand All @@ -252,8 +257,9 @@ create.

<details>
<summary>
**Click here to see an example of ImplicitMeta policies**
<strong>Click here to see an example of ImplicitMeta policies</strong>
</summary>

```
################################################################################
#
Expand Down Expand Up @@ -289,6 +295,7 @@ Application: &ApplicationDefaults
Type: ImplicitMeta
Rule: "MAJORITY Endorsement"
```

</details>

## Fabric chaincode lifecycle
Expand Down

0 comments on commit d49a118

Please sign in to comment.