Skip to content

Instantly share code, notes, and snippets.

View petertodd's full-sized avatar
🦀

Peter Todd petertodd

🦀
View GitHub Profile
@petertodd
petertodd / gist:8e87c782bdf342ef18fb
Last active December 13, 2020 05:33
What the CoinWallet.eu tx-flood stress-test means for you and how to deal with it
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
This is my standard consulting agreement, drafted by Addison Cameron-Huff
<addison@cameronhuff.com> Feel free to use/distribute this as you see fit.
Consulting Agreement
====================
Return-Path: <calidadlsp@casanare.gov.co>
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
ip-172-30-0-206.ec2.internal
X-Spam-Level:
X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,
DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_REPLYTO,
FREEMAIL_REPLYTO_END_DIGIT,HTML_MESSAGE,SPF_PASS autolearn=no
autolearn_force=no version=3.4.2
X-Original-To: pete@petertodd.org
Delivered-To: pete@petertodd.org
@petertodd
petertodd / spec.md
Last active July 24, 2018 18:05
Fidelity Bonds

The Problem

Anonymous identities are cheap. Suppose you are running a wiki, and are having a problem with spammers, trolls, and other abusive people. Now you can of course ban accounts for abuse, but this is the internet, creating a new account is trivial. This is especially true when you want to allow anonymous use of your wiki. (or for that matter, any service) Of course you can try to make it harder to make a replacement account with efforts like captchas and requiring email addresses from well-known domains, but these solutions all have drawbacks, and are often surprisingly easy for spammers and trolls to defeat. (you can hire humans to solve captchas for you at remarkably low rates)

Fundementally all those solutions are making an identity more expensive to get. Of course, you could just charge membership fees - Something Awful, 4chan and the Bitcoin Wiki all do this - but now you're running a business and users have to pay fees for every wiki they join. What you really want is some sort of

The following is licensed as CC0. Feel free to copy it for your own purposes, with or without acknowleding my authorship.
---
layout: post
title: "The Misleading and Inaccurate Claims Made to Tierion ICO Investors"
tags:
- tierion
- ico
- timestamping
---

Bitcoin Payment Messages

This document proposes protocol buffer-based formats for a simple payment protocol between a customer's bitcoin client software and a merchant.

Separate documents will propose an extension to the Bitcoin URI syntax and new MIME types to support them.

Motivation

@petertodd
petertodd / mempool-analyzer.py
Created March 7, 2013 06:22
Shitty mempool analyzer
#!/usr/bin/python3
import os
import sys
import struct
from opentimestamps._internal import hexlify,unhexlify
import opentimestamps._bitcoinrpc as btcrpc
#!/usr/bin/python3
class CMemPoolTx:
@property
def feerate(self):
return self.nFee / self.nSize
@property
def sum_feerate(self):
return self.nSumFees / self.nSumSize