hyperledger / hyperledger/fabric-private-chaincode

Guide for writing secure chaincode

Open
#267 3 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
Go
Stars
174
Forks
98
Avg merge
2d 21h
Merged PRs (30d)
1

Description

challenges
- general
- _is there a good reference for fabric or more general handling issues like how to safely do cc2cc avoiding re-entrant code/DAO-style attacks, input validation, ...)
- ....
- fpc (confidentiality) specific
- leakage through (publically readable!) keys and access patterns (but not data) of key/value pairs (set of accesses from ledger and sequence of accesses at peer running enclave). Note that here is some related discussion in the "Data Model on Ledger" section in the [Auction Demo specification & design](https://docs.google.com/document/d/1YUF4mzzuybzWk3fbXbTANWO8-tr757BP85qcwE7gQdk/edit#heading=h.oqtmyuvbjqia)

- commit-and-reveal
- for designated peer there is an inherent fairness issue: the peer (org) hosting the single enclave can stop processing requests if it doesn't like the state of the chaincode and prevent any progress (for other endorsement strategy this is a non-issue as any peer can be used to make progress). Depending on chaincode, this can be mitigated by careful choice of the designated peer to be at a org which is doesn't have any incentive to exploit this "priviilege" ...
- ...

see HLGF slides (where we announced this guide :-) for more challenges/issues

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.