Skip to content

Instantly share code, notes, and snippets.

@hodlwave
hodlwave / bitcoin-regtest.nix
Created July 10, 2022 23:04
Run bitcoin in a NixOS container
{
containers.btc-regtest =
let
nix-bitcoin = builtins.fetchTarball {
url = "https://github.com/fort-nix/nix-bitcoin/archive/v0.0.73.tar.gz";
sha256 = "sha256-E9z3KTOZOVCzwtcF2jLExpZpFtAwrDm+f1cCVjH8NQM=";
};
regtestPort = 18443;
in
@hodlwave
hodlwave / keybase.md
Created September 15, 2020 23:38
keybase.md

Keybase proof

I hereby claim:

  • I am hodlwave on github.
  • I am hodlwave (https://keybase.io/hodlwave) on keybase.
  • I have a public key ASDylWVlFDOgvW2s6uLmKVV30sQGAHHECzW9bPxDZEUu_Qo

To claim this, I am signing this object:

@hodlwave
hodlwave / psbt-walkthrough.md
Last active November 17, 2019 21:45
Bitcoin Core PSBT Example Walkthrough

This gist provides example commands for the "Multisig with multiple Bitcoin Core instances" section of the Bitcoin PSBT HowTo doc. All the commands were run on the same instance of Bitcoin Core, but it should work on multiple instances (Alice's, Bob's, and Carol's). Comments are kept at a minimum as the reference doc explains everything.

Create addresses

This step will create a private key that Bitcoin Core remembers and output its associated address. Alice address

$ bitcoin-cli --testnet getnewaddress "Aalice" "bech32"
tb1qcqnk794t9pny6pnpfc7fz2q7q05ahgxwes8hef