Guide for writing secure chaincode

Aperta
#267 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Documentazione
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
blockchain

Direzione di ricerca

Inizia dalle slide HLGF e dalla sezione “Data Model on Ledger” della specifica di Auction Demo collegata, quindi usa gli argomenti cc2cc, re-entrancy, validazione, leakage, commit-and-reveal e fairness elencati nell’issue per definire la guida. Il lavoro è completo quando è stata prodotta una guida di riferimento circoscritta e utile per scrivere chaincode sicuro.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature

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

    • 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

Lingua principale
Go
Stelle
175
Fork
99
Merge medio
10h 50m
PR unite (30g)
19

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hyperledger/fabric-private-chaincode

Tutte le issue di hyperledger/fabric-private-chaincode

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.