Skip to content

Instantly share code, notes, and snippets.

฿tcDrak btcdrak

Block or report user

Report or block btcdrak

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 0xD5566241A0295FA9
Version: GnuPG v2
btcdrak /
Created Sep 1, 2016 — forked from ageis/
Quick GPG Smartcard Guide

Quick GPG Smartcard Guide

We will generate a master key with only the Certify capability and three subkeys with each of the Sign, Encrypt and Authenticate capabilities. These latter three keys are meant for daily use and will be transferred to an OpenPGP smartcard, which has three corresponding slots. The master private key can then be moved to offline cold storage, or stored on a second smartcard.

We are generating keys on a secure computer instead of on the card, because it allows more flexibility. Ideally this means a machine running Tails or one that is air-gapped and not connected to the internet.

This guide assumes that if you want to sign other peoples keys, then you will require the aforementioned secondary smartcard with your master key stored in its Signature slot, or if you only have one smartcard, then you'll have to fetch the master key out of cold storage. By default, GPG generates a master key with the Certify and

btcdrak /
Created Sep 1, 2016 — forked from a-dma/
Bash script for setting or clearing touch requirements for cryptographic operations in the OpenPGP application on a YubiKey 4.
# Bash script for setting or clearing touch requirements for
# cryptographic operations the OpenPGP application on a YubiKey 4.
# Author: Alessio Di Mauro <>
GCA=$(which gpg-connect-agent)
btcdrak /
Created Aug 31, 2016 — forked from abeluck/
GPG Offline Master Key w/ smartcard
View gist:7aeeccf8b487d6058ab87e1d3fcf6c62
test/txvalidationcache_tests.cpp(64): error in "tx_mempool_block_doublespend": check ToMemPool(spends[0]) failed
test/txvalidationcache_tests.cpp(70): error in "tx_mempool_block_doublespend": check ToMemPool(spends[1]) failed
test/txvalidationcache_tests.cpp(78): error in "tx_mempool_block_doublespend": check ToMemPool(spends[1]) failed
btcdrak /
Created May 3, 2016 — forked from ezimuel/
Sign and verify a file using OpenSSL command line tool. It exports the digital signature in Base64 format.
# Sign a file with a private key using OpenSSL
# Encode the signature in Base64 format
# Usage: sign <file> <private_key>
# NOTE: to generate a public/private key use the following commands:
# openssl genrsa -aes128 -passout pass:<passphrase> -out private.pem 2048
# openssl rsa -in private.pem -passin pass:<passphrase> -pubout -out public.pem
View except.diff
diff --git a/qa/rpc-tests/test_framework/ b/qa/rpc-tests/test_framework/
index 19ee472..3b08cd1 100755
--- a/qa/rpc-tests/test_framework/
+++ b/qa/rpc-tests/test_framework/
@@ -142,6 +142,9 @@ class BitcoinTestFramework(object):
except AssertionError as e:
print("Assertion failed: "+ str(e))
+ except KeyError as e:
+ print("key not found: "+ str(e))
btcdrak / sendalert.cpp
Created Mar 20, 2016 — forked from laanwj/sendalert.cpp
Bitcoin send alert code
View sendalert.cpp
So you need to broadcast an alert...
... here's what to do:
1. Copy sendalert.cpp into your bitcoind build directory
2. Decrypt the alert keys
copy the decrypted file as alertkeys.h into the src/ directory.
3. Modify the alert parameters in sendalert.cpp
View txverpolicy.diff
diff --git a/src/policy/policy.cpp b/src/policy/policy.cpp
index 332abc4..e3ed7be 100644
--- a/src/policy/policy.cpp
+++ b/src/policy/policy.cpp
@@ -55,7 +55,7 @@ bool IsStandard(const CScript& scriptPubKey, txnouttype& whichType)
bool IsStandardTx(const CTransaction& tx, std::string& reason)
- if (tx.nVersion > CTransaction::CURRENT_VERSION || tx.nVersion < 1) {
+ if (tx.nVersion > CTransaction::MAX_STANDARD_VERSION || tx.nVersion < 1) {
btcdrak / exporter.js
Created Jan 17, 2016 — forked from simon-jentzsch/exporter.js
slack message exporter
View exporter.js
'use strict';
var _ = require("underscore");
var fs = require("fs");
var Slack = require('slack-api');
var token = "YOUR-TOKEN";
Slack.users.list({token:token}, function (error, data) {
// create a map with the real usernames
You can’t perform that action at this time.