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 / ERC20batchOverflow.md
Last active November 10, 2018 07:57
List of ERC20 affected by batchOverflow bug
  1. MESH 0x3ac6cb00f5a44712022a51fbace4c7497f56ee31 0x01f2acf2914860331c1cb1a9acecda7475e06af8

  2. UGToken 0x43ee79e379e7b78d871100ed696e803e7893b644

  3. SMT 0x55F93985431Fc9304077687a35A1BA103dC1e081

  4. SMART 0x60be37dacb94748a12208a7ff298f6112365e31f

  5. MTC 0x8febf7551eea6ce499f96537ae0e2075c5a7301a

@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
@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 / 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

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 / 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"
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();

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:

@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