Skip to content

Instantly share code, notes, and snippets.

View alexbosworth's full-sized avatar

Alex Bosworth alexbosworth

View GitHub Profile

Install Bitcoin Core

Get PPA

sudo add-apt-repository ppa:bitcoin/bitcoin
// PRESS ENTER TO CONTINUE
sudo apt update && sudo apt install -y bitcoind

Install ETCD

sudo apt install etcd

sudo emacs /etc/default/etcd

ETCD_NAME="controller"
ETCD_DATA_DIR="/var/lib/etcd"
ETCD_INITIAL_CLUSTER_STATE="new"

Tor Install

Install and Setup Tor for use with Bitcoin Core

Install Tor

sudo apt-get update && sudo apt install -y apt-transport-https

sudo emacs /etc/apt/sources.list.d/tor.list

Install LND

Install LND by cloning and building

Install Make

sudo apt-get install -y build-essential

Install Go

In order to build lnd, Go is required

Fetch Binaries

Note: when upgrading first remove the existing Go: sudo rm -rf /usr/local/go

sudo apt-get update && sudo apt-get -y upgrade

Tools for LND Instance

Emacs

Install Emacs

sudo apt update && sudo apt upgrade -y && sudo apt install -y emacs
emacs
// Quit

VPC Setup

Setting up an instance for LND

Instance Type

  • EC2: T3 small or better

OS

Keybase proof

I hereby claim:

  • I am alexbosworth on github.
  • I am alexbosworth (https://keybase.io/alexbosworth) on keybase.
  • I have a public key ASA2q8y1jJV6cvp5wmqxysoo6iUsWpoH-dUNPtkllWTWiAo

To claim this, I am signing this object:

@alexbosworth
alexbosworth / timestamp-proof.js
Created May 19, 2018 14:00
Using "javascript-opentimestamps": "0.4.0"
const OpenTimestamps = require('javascript-opentimestamps');
/** Timestamp text
{
text: <Text String>
}
@returns via cbk
{

Setup Bitcoin.conf

bitcoin.conf flags for LND integration

rpcpassword= // make a strong password
rpcuser=bitcoinrpc
server=1
zmqpubrawblock=tcp://127.0.0.1:28332
zmqpubrawtx=tcp://127.0.0.1:28332