Skip to content

Instantly share code, notes, and snippets.

Avatar

Thibaut Schaeffer Schaeff

View GitHub Profile
View ZoKrates Proof of Private Key Ownership
import "ecc/edwardsAdd.code" as add
import "ecc/edwardsScalarMult.code" as multiply
import "utils/pack/unpack256.code" as unpack256
/// Verifies match of a given public/private keypair.
///
/// Checks if the following equation holds for the provided keypair:
/// pk = sk*G
/// where G is the chosen base point of the subgroup
/// and * denotes scalar multiplication in the subgroup
View sha256.code
This file has been truncated, but you can view the full file.
View sha256.code
This file has been truncated, but you can view the full file.
View Multiple subproviders
var ZeroClientProvider = require('web3-provider-engine/zero.js')
var Web3 = require('web3')
var lightwallet = require('eth-lightwallet')
var interval = 4000
var keyStore = lightwallet.keystore
keyStore.createVault({
password: "abc",
View Ropsten Revert.adoc

Ropsten Revert Chain

  • Stop parity if running

  • download the ropsten-543210.snapshot

    wget https://transfer.sh/jDMLZ/ropsten-543210.snapshot
  • restore parity:

    parity --chain=ropsten restore ropsten-543210.snapshot
View keybase.md

Keybase proof

I hereby claim:

  • I am schaeff on github.
  • I am schaeff (https://keybase.io/schaeff) on keybase.
  • I have a public key whose fingerprint is CE89 7DB7 81C6 57D3 50F0 1798 21F1 B309 6158 1650

To claim this, I am signing this object:

View Campaign.sol
contract Campaign {
address public owner;
string public description;
Reward[] public rewards;
uint public endDate;
uint public goal;
uint public current;
bool public success;
struct Reward {
You can’t perform that action at this time.