Skip to content

Instantly share code, notes, and snippets.

View mischat's full-sized avatar

Mischa mischat

View GitHub Profile
@mischat
mischat / controller.sol
Created May 27, 2020 23:33
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.17+commit.d19bba13.js&optimize=true&gist=
/**
* Controller - The Consumer Contract Wallet
* Copyright (C) 2019 The Contract Wallet Company Limited
*
* 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,
@mischat
mischat / controller.sol
Created May 27, 2020 23:31
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.17+commit.d19bba13.js&optimize=true&gist=
/**
* Controller - The Consumer Contract Wallet
* Copyright (C) 2019 The Contract Wallet Company Limited
*
* 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,
pragma solidity ^0.4.23;
library Base64Regex {
struct State {
bool accepts;
function (byte) pure internal returns (State memory) func;
}
string public constant regex = "([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?";
Verifying my identity on Peepeth.com 0xf740b814e9f399325be082df901e9222ab73f247

Keybase proof

I hereby claim:

  • I am mischat on github.
  • I am mischat (https://keybase.io/mischat) on keybase.
  • I have a public key whose fingerprint is 18A2 AF28 0CA5 9E77 AE51 2BB3 9ED0 B04E 51F2 F7EF

To claim this, I am signing this object: