Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/buffalojoec/paytube
Off-chain SVM payment channel.
https://github.com/buffalojoec/paytube
blockchain solana svm
Last synced: 3 months ago
JSON representation
Off-chain SVM payment channel.
- Host: GitHub
- URL: https://github.com/buffalojoec/paytube
- Owner: buffalojoec
- Created: 2024-05-20T20:01:29.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-07-09T15:21:57.000Z (7 months ago)
- Last Synced: 2024-10-12T01:28:17.483Z (4 months ago)
- Topics: blockchain, solana, svm
- Language: Rust
- Homepage:
- Size: 1.03 MB
- Stars: 34
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PayTube
A reference implementation of an off-chain [state channel](https://ethereum.org/en/developers/docs/scaling/state-channels/)
built using [Anza's SVM API](https://www.anza.xyz/blog/anzas-new-svm-api).With the release of Agave 2.0, we've decoupled the SVM API from the rest of the
runtime, which means it can be used outside the validator. This unlocks
SVM-based solutions such as sidecars, channels, rollups, and more. This project
demonstrates everything you need to know about boostrapping with this new API.PayTube is a state channel (more specifically a payment channel), designed to
allow multiple parties to transact amongst each other in SOL or SPL tokens
off-chain. When the channel is closed, the resulting changes in each user's
balances are posted to the base chain (Solana).Although this project is for demonstration purposes, a payment channel similar
to PayTube could be created that scales to handle massive bandwidth of
transfers, saving the overhead of posting transactions to the chain for last.Below is a diagram of the new SVM API.
![API](./doc/svm_api.jpg)