0.0.9 • Published 4 years ago

holochain-mutual-credit v0.0.9

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Holochain generic mutual-credit

Generic mutual-credit implementation in Holochain.

This zome is a generic implementation of a mutual credit system. It's just a piece of the puzzle, and maybe best used with some other zome that implements better membranes.

This is a work in progress, not production ready. Contact us if you want to collaborate!

Design: https://hackmd.io/X9KFfDJZRS2vL9uLOq1oAg?both

Todo list:

  • Refactor code to use transactions as private entries and their headers to validate attestations by agents
  • Refactor to prevent "double-spending" (rolling your chain back and doing a new transaction) attack vectors
  • Create a reusable UI module
  • Security audit to protect
  • Generalize to include parameters such as: negative and positive credit limit, transaction size limit, etc.
  • Publish to npm and crates.io?

Developer setup

Building

Run these commands:

nix-shell
cd dna
hc package

Testing

Run these commands:

nix-shell
cd dna
hc test

Running the UI

Requirements:

  • You are inside the nix-shell.
  • You have built the DNA as per Building.
  • You are inside the UI folder.

Run this command to get two agents connected to each other ready to credit:

npm start