Skip to content

perun-network/perun-demo-tui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perun Demo TUI

This is a demo to showcase Perun Payment Channels for different backends.

Usage

  1. Implement the client.DemoClient interface (very similar to our usual payment-channel demo).
  2. Initialize the demo clients and run the demo:
package main

import (
	"perun.network/go-perun/client/test"
	"perun.network/perun-demo-tui/view"
)

func main() {
	// Setup Backend
	...
	
	// Initialize Demo Clients
	alice := newDemoClient("Alice", ...)
	bob := newDemoClient("Bob", ...)
    
	// Run Demo
	_ = view.RunDemo("Perun XYZ Backend Demo", []DemoClient{alice, bob})
}

Controls

Keybinds Function
CTRL + A switch to left column (Party A)
CTRL + B switch to right column (Party B)
r switch to parent page
q quit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages