advanderveer / clsptest

Chia LISP test repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clsptest

Chia LISP test repo

setup git on Clovyr

  • Generate ssh key: ssh-keygen -t ed25519 (press enter 3 times without entering any additional info)
  • Copy the pub key: cat ~/.ssh/id_ed25519.pub
  • Add they key to this repo's deploy key (and enable write access for push access)
  • Setup the git user: git config user.email "ad@example.dev" and git config user.name "avdv"
  • Git clone the repo git@github.com:advanderveer/clsptest.git

setup Chia on Clovyr

  • Run the init (for testnet): ~/git/github.com/clovyr/chia-example/scripts/init.sh
  • Start the node: chia start node and wallet chia start wallet
  • Add your testnet wallet key: chia keys add (enter the mnomic you've saved somewhere)
  • Check if (and maybe wait until) the node is synced: chia show -s
  • Then check that the wallet has some Chia: chia wallet show

security notes

  • farmers can fully change the input into the coin execution (spend): conditions allow the network to check values
  • farmers can decouple spends from their spent bundle: announcement and signatures allow "binding" spends together

running the script

  • simple one line to run transfer.clsp: run transfer.clsp > /tmp/main.clvm && brun /tmp/main.clvm '(10 10)'

running the driver on Clovry

  • make sure the coin is compiled: cdv clsp build piggybank.clsp
  • make sure the dir where clvm driver package is in is set as PYTHONPATH: PYTHONPATH=/home/clovyr/git python3 ./piggybank.py

resources

About

Chia LISP test repo


Languages

Language:Python 100.0%