Skip to content

Instantly share code, notes, and snippets.

View PierreRochard's full-sized avatar
🍯

Pierre Rochard PierreRochard

🍯
View GitHub Profile

First Review

  • The Coming Demise of Altcoins
  • Bitcoin Has No Image Problem
  • I'm Hoarding Bitcoins, And No You Can't Have Any
  • Why Bitcoin Will Continue to Grow
  • I Love Bitcoin's Volatility
  • Why Anarchy?
  • Mastercoin is a Nightmare of Insanity
  • The Bitcoin Central Bank's Perfect Monetary Policy
@PierreRochard
PierreRochard / import.key
Last active August 16, 2017 22:14
private key import file
# KEEP YOUR PRIVATE KEYS SAFE !
# Anyone who can read this file can spend your bitcoin.
#
# Format:
# <Base58 encoded private key>[<whitespace>[<key createdAt>]]
#
# The Base58 encoded private keys are the same format as
# produced by the Satoshi client/ sipa dumpprivkey utility.
#
# Key createdAt is in UTC format as specified by ISO 8601
from email.mime.application import MIMEApplication
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.utils import formatdate, COMMASPACE
import os
import smtplib
from config import MAIL_USERNAME, MAIL_PASSWORD, SMTP_SERVER, SMTP_PORT
# Install
sudo yum install autoconf automake libtool
sudo pip install cython
git clone https://github.com/jedisct1/libsodium
cd libsodium
autoreconf -i
./configure
make && make check
sudo make install

Keybase proof

I hereby claim:

  • I am pierrerochard on github.
  • I am rochard (https://keybase.io/rochard) on keybase.
  • I have a public key whose fingerprint is D58A 53CB 2FA2 75E3 D8F8 8281 CBFD 5CFA 2A9F E37F

To claim this, I am signing this object:

➜ enterprisebitcoin git:(odb) ✗ make
Making all in src
CXX wallet/libbitcoin_wallet_a-walletdb.o
In file included from wallet/walletdb.cpp:18:
./wallet/sql/database.h:14:21: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
char *argv[] = {"./driver", "--user", "odb_test", "--database", "odb_test"};
^
./wallet/sql/database.h:14:33: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
char *argv[] = {"./driver", "--user", "odb_test", "--database", "odb_test"};
^
➜ enterprisebitcoin git:(odb) ✗ make
Making all in src
CXX wallet/libbitcoin_wallet_a-walletdb.o
In file included from wallet/walletdb.cpp:19:
./wallet/enterprise/database.h:14:21: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
char *argv[] = {"./driver", "--user", "odb_test", "--database", "odb_test"};
^
./wallet/enterprise/database.h:14:33: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
char *argv[] = {"./driver", "--user", "odb_test", "--database", "odb_test"};
^
➜ enterprisebitcoin git:(odb) ✗ make
Making all in src
CXXLD test/test_bitcoin
Undefined symbols for architecture x86_64:
"typeinfo for odb::pgsql::object_statements_base", referenced from:
typeinfo for odb::pgsql::object_statements<etransactions> in libbitcoin_wallet.a(libbitcoin_wallet_a-transactions-odb.o)
"odb::pgsql::object_statements_base::~object_statements_base()", referenced from:
odb::pgsql::object_statements<etransactions>::object_statements(odb::pgsql::connection&) in libbitcoin_wallet.a(libbitcoin_wallet_a-transactions-odb.o)
odb::pgsql::object_statements<etransactions>::~object_statements() in libbitcoin_wallet.a(libbitcoin_wallet_a-transactions-odb.o)
"odb::pgsql::insert_statement::insert_statement(odb::pgsql::connection&, char const*, char const*, bool, unsigned int const*, unsigned long, odb::pgsql::binding&, odb::pgsql::native_binding&, odb::pgsql::binding*, bool)", referenced from:
@PierreRochard
PierreRochard / gist:04fc1c1257e15884a330af95c3d8f147
Last active April 9, 2018 12:17
Explaining the Bitcoin software
Q: Bitcoin has two aspects to it that make it unique - software and economics.
Can you explain a bit about the software to us folks that can’t code?
A: A protocol is a set of rules that participants agree to. For example,
when playing a sport, the rules of the game would be the protocol.
Bitcoin is a protocol enforced by software that can be run by anyone.
You can run a node that connects to other nodes over the internet.
Nodes verify that transactions (sending and receiving bitcoins)
follow the protocol rules, and reject the ones that don’t.
@PierreRochard
PierreRochard / debugging_bitcoin.txt
Last active April 13, 2019 17:41
Debugging Bitcoin
./configure --enable-debug
make
lldb $HOME/src/bitcoinmaster/src/qt/bitcoin-qt
breakpoint set -f rpcwallet.cpp -l 202
run -conf=/Volumes/Mac\ Storage/bitcoin-mainnet/bitcoin.conf -datadir=/Volumes/Mac\ Storage/bitcoin-mainnet