Skip to content

Instantly share code, notes, and snippets.

View tiero's full-sized avatar
🚀
Shipping

Marco Argentieri tiero

🚀
Shipping
View GitHub Profile
@tiero
tiero / wallet.go
Created October 12, 2019 00:08
quick btc wallet in go
package wallet
import (
"github.com/btcsuite/btcd/btcec"
)
// Wallet define wallet structure
type Wallet struct {
PrivateKey *btcec.PrivateKey
PublicKey *btcec.PublicKey
@tiero
tiero / Dockerfile
Created November 17, 2018 00:39
bitcoin-liquid-docker
# 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

Keybase proof

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:

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();
@tiero
tiero / install_droneio.sh
Last active September 13, 2018 20:53
Install Drone.io CLI on Ubuntu 16
#!/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
@tiero
tiero / dfinity-bls-g++.sh
Created August 1, 2018 10:44
Install Dfinity BLS signatures function on Ubuntu
#!/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
@tiero
tiero / node-nginx-codedeploy.sh
Last active January 28, 2020 22:23
Install Node, Nginx and CodeDeploy on AWS EC2 instance with Ubuntu 16.04
#!/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"
@tiero
tiero / improved-lnd-bitcoind-mainnet.md
Created June 10, 2018 00:07 — forked from bretton/improved-lnd-bitcoind-mainnet.md
Detailed guide to installing LND and Bitcoind on Ubuntu 16.04 LTS for Mainnet