Skip to content

A *highly experimental* golang implementation of moneysocket

License

Notifications You must be signed in to change notification settings

xplorfin/moneysocket-go

Repository files navigation

Coverage Status Renovate enabled Build status Build status Go Report Card

Status

This is a golang implementation of the moneysocket protocol that aims to have full integration testing & parity with py & js moneysocket. This project is not yet usable in any state beyond tvl encoding/decoding. The code is a bit of a mess as well since parts of this were torn from private xplorfin repos. If you want to check it out anyway, you can run terminus

Architecture

Testing:

  1. create two accounts with an arbitrary number of sats:
    • terminus-cli create: (returns account-0)
    • terminus-cli create: (returns account-1)
  2. ./terminus-cli listen account-1 -> copy and paste account-1 into the seller wallet consumer
  3. ./terminus-cli listen account-0 -> copy and paste into wallet consumer
  4. Wallet -> provider -> generate beacon -> connect -> copy beacon
  5. paste into my wallet consumer
  6. generate buyer consumer beacon
  7. connect seller app provider to buyer consumer
  8. seller opens store