Skip to content

Instantly share code, notes, and snippets.

Rusty Russell rustyrussell

Block or report user

Report or block rustyrussell

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 hkdf-clarification.patch
diff --git a/08-transport.md b/08-transport.md
index d8edcf6..72fb64a 100644
--- a/08-transport.md
+++ b/08-transport.md
@@ -130,7 +130,7 @@ The following functions will also be referenced:
* The returned value is the raw big-endian byte serialization of
`x-coordinate` (using affine coordinates) of the generated point.
- * `HKDF`: a function is defined in [5](#reference-5), evaluated with a
+ * `HKDF(salt,ikm)`: a function is defined in [5](#reference-5), evaluated with a
@rustyrussell
rustyrussell / next-block-fees.sh
Last active Nov 24, 2016
What I'm watching right now... #bitcoin
View next-block-fees.sh
# Assumes you've set blockmaxweight=4000000 and blocksizemax=1000000 in bitcoin.conf
# Every 10 seconds, prints out: <blocknum>:<satoshis-in-fees-nextblock>(<fees-in-USD)=<percent-of-subsidy>,
# eg:
# 440303:123401888($911.692)=9%
# 440304:62908635($464.768)=5%
# 440305:63134415($466.436)=5%
# 440305:63317722($467.791)=5%
i=0
View keybase.md

Keybase proof

I hereby claim:

  • I am rustyrussell on github.
  • I am rusty (https://keybase.io/rusty) on keybase.
  • I have a public key ASC4VX3VeiYZQYlueN8xKP66plAc-FBIXx8HWn8lCOAU7Ao

To claim this, I am signing this object:

View truncated-graph-test.sh
#! /bin/sh
test_run()
{
if [ "`./truncated-graph-traversal \"$1\"`" = "$2" ]; then
echo "$2"
else
./truncated-graph-traversal "$1" >&2
echo Expected "$2" >&2
exit 1
View versionbitsbip.mediawiki

  BIP: ??
  Title: Version bits with timeout and delay
  Author: Pieter Wuille <pieter.wuille@gmail.com>, Peter Todd <pete@petertodd.org>, Greg Maxwell <greg@xiph.org>, Rusty Russell <rusty@rustcorp.com.au>
  Status: Draft
  Type: Informational Track
  Created: 2015-10-04

Abstract

@rustyrussell
rustyrussell / megatx-benchmark.c
Created Jul 8, 2015
Simple bitcoin signature hashing benchmark code
View megatx-benchmark.c
/* Usage: benchmark-sha256 <numtxs> [<numiterations>]
* Benchmark the input signature hashes for a maximum-sized transaction with this many
* inputs
*
* Rusty Russell, <rusty@rustcorp.com.au> GPLv3.
*/
#include <ccan/crypto/sha256/sha256.c>
#include <ccan/time/time.h>
#include <stdio.h>
#include <string.h>
View perfme.c
/* Simple wrapper to allow a program to perf itself.
* Copyright Rusty Russell, Blockstream 2015.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
You can’t perform that action at this time.