Skip to content

Instantly share code, notes, and snippets.

View pdaian's full-sized avatar

Philip Daian pdaian

View GitHub Profile
<center>
**Welcome to the Bitcoin Wiki**,
for all your Bitcoin information needs.
This wiki is maintained by the Bitcoin community, and is the first
strongly distributed and decentralized
Bitcoin Wiki.
</center>
pragma solidity ^0.4.0;
contract Ballot {
string constant test = "WHEE";
function testFn() constant returns (string output) {
return test;
}
}
@pdaian
pdaian / gina.js
Last active November 16, 2016 21:49
Gina : As @RealDonaldTrump intended it to be spelled
// ==UserScript==
// @name Gina - Correct incorrect spellings of Gina
// @namespace ginaftw
// @description Bend the web to your will to properly spell Gina, as @realDonaldTrump intended.
// @include http://*
// @include https://*
// @include file://*
// @exclude http://userscripts.org/scripts/review/*
// @exclude http://userscripts.org/scripts/edit/*
// @exclude http://userscripts.org/scripts/edit_src/*
0xaae396ad5c2e14038d98b8fde32b7a485f5eea63
@pdaian
pdaian / ethereum_graphs.py
Created February 13, 2017 19:12
Ethereum Fork Market Data Graphing Script
import datetime, requests
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import json, collections, os
UTC_OFFSET = -14400 # Local offset from UTC
START_DATE = "2016-01-01" # Day to start chat
TMP_DIR = "/tmp" # Writable temp directory, without trailing slash
@pdaian
pdaian / dca.py
Last active January 21, 2018 03:31
# THIS IS PROVIDED WITHOUT ANY WARRANTY EXPLICIT OR IMPLICIT
# THE AUTHORS ARE NOT RESPONSIBLE FOR ANY SECURITY ISSUES OR FINANCIAL LOSSES
# Installing requirements: pip install python-bittrex
# Then, change the next two lines with your Bittrex API info (with limit order & view info access)
BITTREX_PUBLIC = "INSERT BITTREX PUBLIC HERE"
BITTREX_SECRET = "INSERT BITTREX SECRET HERE"
# Finally, see the bottom of this file
# (do not edit below this point)

Intro

This is a case study of ethical security disclosure practices in cryptocurrency. We analyze how security experts reacted in disclosing a serious vulnerability in miner hardware to the public, and identify problems with the reaction of several particular experts that we believe violate ethical disclosure norms. It is my hope that by discussing what went wrong in the past, the Bitcoin community can grow into a more secure and robust space that respects appropriate professional ethics in interactions with the public.

The incident below occurred on 26 April 2017, when a vulnerability in Bitcoin miner hardware, Antbleed, was discovered. Soon after discovery, some security professionals opportunistically used this vulnerability to advance false and damaging statements about the nature of the attack to the general public, in a manner that was disseminated widely beyond their control. We describe the facts and consequences of the incident below.

The Facts