Skip to content

Commit

Permalink
Add a diagram
Browse files Browse the repository at this point in the history
Signed-off-by: Yogesh Deshpande <[email protected]>
  • Loading branch information
yogeshbdeshpande committed Dec 19, 2023
1 parent 1f02b61 commit af9bd7e
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion cocli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,49 @@ $ cocli completion --help
```
# CoRIM Handling
A CoRIM consists of either one or more CoMID and/or CoSWID and/or CoTS. The below
instructions provides a step by step approach to handle CoRIMs.
picture and instructions provides a step by step approach to handle CoRIMs.

``` mermaid
flowchart TD
subgraph CORIM["<b>CoRIM</b>"]
subgraph CoMID["\n"]
CM1["CoMID-1"]
CM2["CoMID-2"]
CM3["CoMID-N"]
CM4["<b>COMID COMMANDS</b> \n cocli comid create \n cocli comid display"]
CM1 -.- CM2
CM2 -.- CM3
CM3 -.- CM4
end
subgraph CoMID["Blank1"]
CSW1["CoSWID-1"]
CSW2["CoSWID-2"]
CSW3["CoSWID-N"]
CSW1 -.- CSW2
CSW2 -.- CSW3
end
subgraph CoMID["Blank3"]
CS1["CoTS-1"]
CS2["CoTS-2"]
CS3["CoTS-N"]
CS4["<b>COTS COMMANDS</b> \n cocli cots create \n cocli cots display"]
CS1 -.- CS2
CS2 -.- CS3
CS3 -.- CS4
end
end
CORIM ---> CMD
subgraph CMD["<b>CORIM COMMANDS<b/> \n
1.cocli corim create \n 2.cocli corim display \n 3.cocli corim sign \n4.cocli corim verify\n5.cocli corim extract\n 6.cocli corim submit"]
end
```

## CoMIDs manipulation
The instructions to manipulate CoMIDs are documented [here](COMID.md)
Expand Down

0 comments on commit af9bd7e

Please sign in to comment.