Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keeping a peer-to-peer ledger using two solid pods #1

Open
michielbdejong opened this issue Nov 2, 2018 · 1 comment
Open

keeping a peer-to-peer ledger using two solid pods #1

michielbdejong opened this issue Nov 2, 2018 · 1 comment

Comments

@michielbdejong
Copy link
Contributor

one way of doing this would be to let each party host their own outbox, and either they subscribe to each other's live updates, or they post notifications to the other's inbox.
trouble is, message 01could be changed after they have been sent, so either keep two signatures on each timestamped ledger entry, and link to the previous entry so entries can not be deleted.

or you could keep it simple and accept that the other party could cheat, just make sure you detect if they do, so you keep a copy of the current balance, and that's it.

@michielbdejong
Copy link
Contributor Author

michielbdejong commented Nov 2, 2018

functions needed for first version without pathfinding:

  • create a webcredits inbox
  • create an outbox for a contact
  • process incoming webcredits
  • send a web credit
  • source-routed multi-hop (leaving pathfinding out of scope)
  • update ledger balances when transactions are accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant