Skip to content

Instantly share code, notes, and snippets.

View warner's full-sized avatar

Brian Warner warner

  • San Francisco, CA
View GitHub Profile
--- /Users/warner/stuff/crypto/ethereum/dao.out 2016-07-19 18:18:44.000000000 -0700
+++ /tmp/1.out 2016-07-19 18:27:56.000000000 -0700
@@ -1,7 +1,4 @@
/*
-
-- Bytecode Verification performed was compared on second iteration -
-
This file is part of the DAO.
The DAO is free software: you can redistribute it and/or modify
@warner
warner / README.md
Last active April 1, 2016 07:18
git chaos

diagram from GitX

Some text from an etherpad about the "servers of happiness" docs, for ticket #1382
pasted to IRC last week:
Suppose your upload achieves a happiness count of C, and your encoding is configured to need a minimum of K shares (aka "shares.needed"). Then immediately after a successful upload, we know we can tolerate the loss of any C - K servers.
We provide shares.happy as a parameter to the upload process so that it knows whether it was successful or not: if the uploader cannot place shares to meet this C >= shares.happy threshold, it aborts the upload, rather than finishing with an insufficiently robust placement. There is another parameter, shares.total (aka "N"), which provides a goal: the uploader will attempt to place N unique shares. But as long as it can achieve shares.happy, it will indicate success.
Another way to state this property is that for *any* subset of shares.happy servers that have shares after a successful upload, only K need to retain them.
@warner
warner / keybase.md
Last active February 9, 2017 01:17

Keybase proof

I hereby claim:

  • I am warner on github.
  • I am warner (https://keybase.io/warner) on keybase.
  • I have a public key ASBnjfSs_vOUoJthxiXW1MIWuIL09sFu7YNmZ1wL436IAwo

To claim this, I am signing this object:

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
define([
'intern!tdd',
'intern/chai!assert',
'sjcl',
'client/lib/credentials',
'tests/addons/environment'
FxAccountClient.prototype._passwordChangeFinish = function(email, newPassword, oldCreds) {
var self = this;
var newWrapKb;
var authPW;
var oldWrapKB;
var p1 = this.accountKeys(oldCreds.keyFetchToken, oldCreds.oldUnwrapBKey);
var p2 = credentials.setup(email, newPassword);
var p3 = hawkCredentials(oldCreds.passwordChangeToken, 'passwordChangeToken', 2 * 32);
Promise.all([p1, p2, p3])
@warner
warner / README.md
Last active December 11, 2015 16:48
test for gombot-crypto-jetpack
We couldn’t find that file to show.
#include <botan/botan.h>
#include <botan/pbkdf2.h>
#include <botan/hmac.h>
#include <botan/sha2_32.h>
#include <iostream>
#include <memory>
using namespace Botan;
std::string password_hash(const std::string& pass,
@warner
warner / README.txt
Created July 20, 2012 02:26
screenshots
this repo holds screenshots for bug reports