This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package wallet | |
import ( | |
"github.com/btcsuite/btcd/btcec" | |
) | |
// Wallet define wallet structure | |
type Wallet struct { | |
PrivateKey *btcec.PrivateKey | |
PublicKey *btcec.PublicKey |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download base image ubuntu 16.04 | |
FROM ubuntu:16.04 | |
# Update Ubuntu Software repository | |
RUN apt-get update && apt-get install -y python-software-properties && apt-get install -y software-properties-common | |
# Bitcoin PPA | |
RUN apt-add-repository ppa:bitcoin/bitcoin | |
# Update Ubuntu Software repository | |
RUN apt-get update |
I hereby claim:
- I am tiero on github.
- I am tiero (https://keybase.io/tiero) on keybase.
- I have a public key ASBLrqfDLevMfWMfKx7bKw9cUMC3JMFaHph4GEV14LGBUwo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lightningPayReq = require('bolt11'); | |
const bitcoin = require('bitcoinjs-lib'); | |
class LightningWallet { | |
constructor(privateKey, coinType) { | |
const network = bitcoin.networks[coinType]; | |
const keyPair = bitcoin.ECPair.fromWIF(privateKey, network); | |
const pubKey = keyPair.getPublicKeyBuffer(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Update & Upgrade the System | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get -y install build-essential | |
#Docker | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" |
bip39 is the standardization of a specific list of words for a given language, and the process of transforming those words into a 512 bit hex seed that is the seed for generating a bip32 hd wallet.
bip32 = hd wallets, what they are how they work
bip39 = specific type of mnemonic, and the process for turning it into a bip32 seed
bip44 = a specific format of a bip32 wallet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#tools ubuntu | |
sudo apt install llvm g++ libgmp-dev libssl-dev | |
# Barreto-Naehrig curves. | |
git clone https://github.com/dfinity/bn | |
cd bn | |
make | |
sudo cp mcl/lib/libmcl.a /usr/local/lib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get update -y | |
sudo apt-get install wget | |
# Install web server stuff | |
sudo apt-get install -y nginx | |
# Locale settings for python | |
export LC_ALL="en_US.UTF-8" |
This guide is specific to getting LND 0.4.1-beta and Bitcoind running on Ubuntu 16.04 LTS for mainnet.
Original installation guide:
This guide is broken into the following sections:
- Install
bitcoind
and set to start automatically - Install development tools and dependancies