Skip to content

Instantly share code, notes, and snippets.

View XertroV's full-sized avatar

Max Kaye XertroV

View GitHub Profile
""" Trezor wipe-and-load script. Generates fresh keys (or inserts predetermined mnemonic) """
from trezorlib.client import TrezorClient
from trezorlib.transport_hid import HidTransport
import mnemonic
m = mnemonic.Mnemonic('english')
priv = m.generate(256)
@XertroV
XertroV / gist:12a6b80b5210fe9b9d91
Last active August 29, 2015 14:02
First transactions with cryptonet (min_coin example)

A record of the first few transactions on min_coin

Usage

┌──────────────────────────────( linux )─( X-LittleLap )─( 23:14:29 )─┐
└─( ~/src )─> mctx -h
usage: mctx [-h] secret_exponent to_x amount fee donation

positional arguments:
  secret_exponent  secret exponent to use
@XertroV
XertroV / gist:9755361
Created March 25, 2014 04:39
Geonode styling notes
@XertroV
XertroV / arbitraryBytesAddress.py
Created March 6, 2014 06:12
Turn any <20 bytes into a bitcoin address
#!/usr/bin/python
from hashlib import sha256
import sys
from pycoin.encoding import b2a_base58
def hashme(m):
return sha256(m).digest()