This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
2021-09-08 Example console app demo #303
leighmcculloch
started this conversation in
Demos
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here's video demo of a payment channel using CAP-21 and CAP-40 working on a test network between @acharb and I.
It is the
examples/console
app using thesdk
package at 5500563.The SDK at its core is the
sdk/state
package, which is a state machine that produces and verifies agreements. The goal of the state package is to make the channel safe, so it will reject agreements that leave it in an unsafe state. The current implementation optimizes for simplicity rather than flexibility, and therefore only accepts a single payment at a time, however we're discussing ways we can improve it to support concurrent and queued payments in #287. The intention is for thesdk/state
to become a reference implementation for implementing a state machine representing valid good actor states of the payment channel protocol defined in this specification.The SDK also has the
sdk/agent
package, and a few other peripheral package, that have logic to handle setting up a TCP connection and negotiating the open, payments, ingestion, and close processes. The agent can ingest transactions from Horizon, or any other source. The agent is currently intended for use building examples, benchmarks, and experiments.2021-09-08.Example.console.app.demo.mp4
Beta Was this translation helpful? Give feedback.
All reactions