https://github.com/buffalojoec/paytube
Off-chain SVM payment channel.
https://github.com/buffalojoec/paytube
blockchain solana svm
Last synced: about 1 year ago
JSON representation
Off-chain SVM payment channel.
- Host: GitHub
- URL: https://github.com/buffalojoec/paytube
- Owner: buffalojoec
- License: apache-2.0
- Created: 2024-05-20T20:01:29.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-08T08:46:48.000Z (over 1 year ago)
- Last Synced: 2025-03-17T19:13:07.412Z (about 1 year ago)
- Topics: blockchain, solana, svm
- Language: Rust
- Homepage:
- Size: 1.04 MB
- Stars: 39
- Watchers: 2
- Forks: 5
- 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.
