+----------------------+----------------------+
| picopayments-hub | picopayments-cli |
+----------------------+----------------------+
| counterparty-lib |
This file contains 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
apt-get -y install runit software-properties-common python-software-properties git-core wget \ | |
python3 python3-setuptools python3-dev python3-pip build-essential python3-sphinx python-virtualenv libsqlite3-dev python3-apsw python3-zmq | |
cd /where/your/projects/code/is | |
sudo echo "" # so that you won't get prompts during `python setup.py install_serpent` which messes up copy pasting this stuff | |
git clone git@github.com:CounterpartyXCP/counterparty-lib.git | |
cd counterparty-lib | |
git checkout develop |
This file contains 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
#!python | |
# coding: utf-8 | |
# requires btctxstore `pip install btctxstore` | |
import sys | |
from btctxstore import BtcTxStore | |
HELP_TEXT = """ | |
Usage: {0} <wallet> | |
""".format(sys.argv[0]) |
This file contains 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
import os | |
import pycoin | |
from pycoin.key.BIP32Node import BIP32Node | |
def generatewif(netcode='BTC'): | |
return BIP32Node.from_master_secret(os.urandom(256), netcode=netcode).wif() | |
def wif2pubkey(wif): |
This file contains 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
#!/usr/bin/python | |
import pyelliptic | |
import time | |
data = b"x" * (1024 ** 2 * 100) # 100M | |
# TODO curve25519 (openssl and tor default) | |
# curve = "sect283r1" # default |
This file contains 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
from hashlib import md5 | |
from Crypto import Random | |
from Crypto.Cipher import AES | |
def _chr(i): | |
if isinstance(i, bytes): | |
return i # FIXME why is it mixed in python 2 ? | |
return chr(i).encode('utf-8') |
This file contains 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
tiles_path = "tiles.png" | |
tiles_horizontal = 4 | |
tiles_vertical = 4 | |
tiles_img = nil | |
tiles_quads = {} | |
tiles_size = 8 | |
map_width = 100 | |
map_height = 75 | |
map_tiles = nil |
This file contains 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
https://play.google.com/redeem?code=K21K5C2Z9YBS9XZ7JC252TG | |
https://play.google.com/redeem?code=E1BCZ6091J0T19R2ZS8PZNA | |
https://play.google.com/redeem?code=CDRH8BD70TQJXBJ2786QLYH | |
https://play.google.com/redeem?code=TCRLFYYQ76B9D742S2FMKSC | |
https://play.google.com/redeem?code=W029EF0T7ES8LMVULGQ4PP6 | |
https://play.google.com/redeem?code=Z78YXB6ZZG2RGHW50JJNH9R | |
https://play.google.com/redeem?code=NS497CLLRH0PSN87V53EU2U | |
https://play.google.com/redeem?code=8LATH03VD8KU7JC98RT1T5W | |
https://play.google.com/redeem?code=Y0DWRPKGD6HX91LAEZ98CUF | |
https://play.google.com/redeem?code=5HHS65LAFTHT1F741GWKD7C |
This file contains 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
https://play.google.com/redeem?code=TWW7ZBC0YWKN4LUK4MX7M0U | |
https://play.google.com/redeem?code=2FW4GCAGNMRDY6TRTCK2J0X | |
https://play.google.com/redeem?code=U7FP965NQP9Q7MXLZ35ZEQ6 | |
https://play.google.com/redeem?code=6JZKSPC7XUR6CZXVCJGM5PC | |
https://play.google.com/redeem?code=KBRNYMVPS8J6GK72S1YMHJ5 | |
https://play.google.com/redeem?code=F0TBH26R1NNVL5ZT3PSZ97W | |
https://play.google.com/redeem?code=EB5ZFZT0XRUBLS8TAMJ4YLQ | |
https://play.google.com/redeem?code=DMYHGQR2Z8NG4JYS0ESV219 | |
https://play.google.com/redeem?code=39A28F6UUJT5LWQCQ8L90AU | |
https://play.google.com/redeem?code=DDQJGTWGA5U88164F966AYL |