Skip to content

Instantly share code, notes, and snippets.

@ahinchliff
Created February 3, 2022 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahinchliff/7dd5c2af59505de73442a53785c7c8d2 to your computer and use it in GitHub Desktop.
Save ahinchliff/7dd5c2af59505de73442a53785c7c8d2 to your computer and use it in GitHub Desktop.
Terminal - request new phonon -> Phonon Card
Phonon Card - generate key pair -> Phonon Card
Phonon Card -. public key -> Terminal
Terminal - derive address for crypto asset from public key -> Terminal
Terminal - transfer crypto asset to derived address -> Blockchain
Blockchain -. transaction confirmation -> Terminal
Terminal - set phonon metadata (amount, chain etc) -> Phonon Card
User / Terminal - request redeem phonon -> Phonon Card
Phonon Card - delete phonon -> Phonon Card
Phonon Card -. private key key -> User / Terminal
User / Terminal - securely store private key or send crypto asset to another address -> User / Terminal
Sender's Phonon Card
Sender's Terminal
Sender's Terminal - send phonon metadata ->Receiver's Terminal
Receiver's Terminal- derive address for crypto asset from public key in phonon metadata -> Receiver's Terminal
Receiver's Phonon Card
Receiver's Terminal - request balance of derived address -> Blockchain
Blockchain -. balance -> Receiver's Terminal
Receiver's Terminal- confirm balance matches value in phonon metadata -> Receiver's Terminal
Receiver's Terminal -. receiver's card's public key ->Sender's Terminal
Sender's Terminal - construct transaction -> Sender's Phonon Card
Sender's Phonon Card- encrypt phonon with receiver's card's public key -> Sender's Phonon Card
Sender's Phonon Card- delete phonon -> Sender's Phonon Card
Sender's Phonon Card-. phonon -> Sender's Terminal
Sender's Terminal - send phonon ->Receiver's Terminal
Receiver's Terminal- save phonon -> Receiver's Phonon Card
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment