Skip to content

Instantly share code, notes, and snippets.

@jachiang
Created August 24, 2019 01:30
Show Gist options
  • Save jachiang/f90adb8e96065f1405b416d3be914b24 to your computer and use it in GitHub Desktop.
Save jachiang/f90adb8e96065f1405b416d3be914b24 to your computer and use it in GitHub Desktop.

Setup Guide

Setup Guide in Jupyter

  • Library Import

    • Extension of Bitcoin Core Test Framework
    • We will be using
      • Elliptic Curve in test_framework/key.py
      • Script in test_framework/script.py
      • Transaction in test_framework/messages.py
      • And other utilities.
      • Provide examples of above?
  • TestWrapper

    • Python object which wraps a/multiple running bitcoind nodes in regtest and adds logging and test utilities.
    • Show lifecycle of object: See here
    • Requires bicoind build.
      • Perhaps simplified version of this
      • (TBD: Not sure how to provide static builds to linux/osx/win, Gitian?)
    • Several rpc call examples with generate/wallet: test.nodes[0].rpc_call()
    • Show that multiple bitcoind processes are running: ps -ax | grep bitcoind

Thoughts: worst case we can begin schnorr section while attendees are still compiling, as we don't need to test tx broadcast on regtest immediately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment