consensus.js: a small piece of consensus code re-structured to use generators.
example.js: shows how one can connect generator-based logic to the rest of application by writing a set of effect handlers (to run: npm install && node example.js
).
test/consensus-1-handle-propose.js: an example of test suite covering a single function (to run: npm install && npm run test
).