Skip to content

Instantly share code, notes, and snippets.

View erasmospunk's full-sized avatar

Giannis L. Jegutanis erasmospunk

View GitHub Profile

Keybase proof

I hereby claim:

  • I am erasmospunk on github.
  • I am erasmospunk (https://keybase.io/erasmospunk) on keybase.
  • I have a public key whose fingerprint is B75C F56B A293 0E3A EA4E 61B7 0EA8 8FA3 FE57 38EE

To claim this, I am signing this object:

@erasmospunk
erasmospunk / gist:2930564
Created June 14, 2012 14:11 — forked from pithyless/gist:1208841
Install Python 2.7 (homebrew + pip + virtualenv) on Mac OS X Lion

Install Python

$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7

Symlinks...

@erasmospunk
erasmospunk / .pdbrc
Created March 11, 2013 15:38 — forked from esamattis/.pdbrc
Python debugger config
# Enable tab completion
import rlcompleter
import pdb
pdb.Pdb.complete = rlcompleter.Completer(locals()).complete
# Sometimes when you do something funky, you may lose your terminal echo. This
# should restore it when spanwning new pdb.
import termios, sys
termios_fd = sys.stdin.fileno()
termios_echo = termios.tcgetattr(termios_fd)
'''
@author Michael J Bommarito II
@date Feb 26, 2011
@license Simplified BSD, (C) 2011.
This script demonstrates how to use Python to archive historical tweets.
'''
import codecs
import csv
body {
font-family: sans-serif;
}
li img {
background: #c4c4c4;
}
li {
list-style: none;
}
@erasmospunk
erasmospunk / gist:b915bc8b8046729649f4
Last active August 6, 2018 15:18
Adding Monacoin to Coinomi

Usecase - Integrating Monacoin to Coinomi

A simple usecase of a Bitcoin compatible coin integration. Not all coins are created equal, so it is possible that extra work must be done to successfully integrate a new cryptocurrency.

  1. Start the Monacoin daemon and in the monacoin.conf file add the option "txindex=1"
rpcuser=monacoinrpc
rpcpassword=MFfySYp9o9qQi0mYbQmxOdE1pEHVS1DQuhhHssOzkO3
rpcport=8022
@erasmospunk
erasmospunk / gist:4dac398935e9dc86eed1
Last active March 11, 2024 08:12
Coinomi wallet coin support

Overview - Adding support for a new currency in Coinomi

The Coinomi wallet can support any kind of cryptographic currency because it adopts the model of a thin wallet.

A thin wallet will delegate most of the complexity to a trusted server, while still maintaining control of the private keys by using a deterministic key chain BIP44. It is different than SPV in that it doesn't need to perform any header or transaction merkle root validations (although it is optionally possible).

The advantage of a thin wallet is that it is light weight and can easily work with low-specs devices and consumes small amounts of network bandwidth. Some assets like Peercoin, CounterParty or Mastercoin can only work with this model because as SPV is not enough to validate transactions. The disadvantage is that it needs a trusted service to get the state of the network. A known attack for an SPV wallet is to hide transactions, in a thin wallet it is possible to al