I hereby claim:
- I am engenegr on github.
- I am ievdokimov (https://keybase.io/ievdokimov) on keybase.
- I have a public key ASBeqNMRbB7hA67FJKzJvhNBTx6Bwn-6g6Wq3XjM8TKFzgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Aug 8 09:22:09 2013 | |
@author: pete | |
""" | |
import matplotlib.pyplot as plt | |
import re |
from datetime import timedelta | |
from apscheduler.schedulers.blocking import BlockingScheduler | |
import requests, json, datetime, numpy, requests_cache | |
import matplotlib.dates as mdate | |
import matplotlib.pyplot as plot | |
import numpy as np | |
ALL_HISTORICAL_DATA_ENDPOINT = 'https://blockchain.info/charts/market-price?timespan=all&format=json' | |
NUM_UNIQUE_ADDRESSES = 'https://blockchain.info/charts/n-unique-addresses?timespan=all&format=json' |
#! /bin/bash | |
# This script builds a Gentoo image for the Allwinner H3 | |
# Based on http://linux-sunxi.org/H3_Manual_build_howto | |
# Tested on Orange Pi PC | |
set -e | |
function green { | |
echo -e '\033[0;32m'$@'\033[0m' |
This guide is specific to getting LND 0.5-beta and Bitcoind running on Ubuntu 16.04 LTS for mainnet.
Original installation guide:
This guide is broken into the following sections:
bitcoind
and set to start automaticallyForked from @jochemin repo, here.
lncli connect [uri]
lncli connect 02d249db09237f974f1c67775accee37a9d1eb3f04f236dda177f5a5c083094f15@i4jogie5l436qgwi73df6n4zmp6td3wvegqjqpckzpfup7vtzycunsqd.onion:9735
import sys | |
import time | |
from mnemonic import Mnemonic | |
if __name__ == '__main__': | |
if len(sys.argv) < 2: | |
print("Suggested usage: rng-mnemonic <keys number> ") | |
sys.exit(0) | |
try: |
################################################################################ | |
1. Find number of addresses sending funds to an address | |
################################################################################ | |
SELECT | |
COUNT(DISTINCT ARRAY_TO_STRING(inputs.addresses, '')) AS addresses | |
, MIN(block_timestamp) as start_date | |
FROM `bigquery-public-data.crypto_bitcoin.transactions` AS txns | |
, UNNEST(txns.outputs) AS outputs | |
, UNNEST(txns.inputs) AS inputs |
import os | |
import base64 | |
import wallycore as w | |
h2b = w.hex_to_bytes | |
b2h = w.hex_from_bytes | |
mnemonic = "come fury oil antique match off jar ship six feel fall inflict path race impact monitor loan math goose shop autumn area icon barely" | |
written, seed = w.bip39_mnemonic_to_seed512(mnemonic, None) | |
assert written == w.BIP39_SEED_LEN_512 |
# see also https://github.com/afilini/wally-examples/blob/master/SignMessage.ipynb | |
import ctypes | |
from wallycore import * | |
import base64 | |
def sign_message(privkey, message=""): | |
""" | |
returns signed message for derived address | |
:return: |