Commit 1a2c8ec
authored
validate proposal (#1362)
The new validateProposal() method verifies:
1. The Fabric proposal structure (header, payload)
2. That the creator (BankA's FSC node X.509 certificate) is a known MSP member: mspManager.IsValid(creator)
3. That the proposal signature was made by that creator: verifier.Verify(proposalBytes, signature)
The fix closes a gap where the FSC endorser was not explicitly verifying that the Fabric proposal came from a legitimate, authenticated MSP member before endorsing it.
Signed-off-by: Hayim.Shaul@ibm.com <hayimsha@fhe3.haifa.ibm.com>1 parent 0ee62f7 commit 1a2c8ec
8 files changed
Lines changed: 647 additions & 15 deletions
File tree
- token/services/network
- fabricx/endorsement
- fabric/endorsement
- fsc
- mock
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
Lines changed: 118 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 192 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments