Skip to content

Instantly share code, notes, and snippets.

View hackervera's full-sized avatar
😻

Veronika Tyler hackervera

😻
View GitHub Profile

Keybase proof

I hereby claim:

  • I am hackervera on github.
  • I am hackervera (https://keybase.io/hackervera) on keybase.
  • I have a public key ASCm_-amE90a2zyqmpqZx5vXeTxqokbEmSY8dHOjSnUFego

To claim this, I am signing this object:

Verifying my identity on Peepeth.com 0xb5d7d1ea4a8f29a658006e3f3915040577136d7b
Please send the money to 0xb5d7d1ea4a8f29a658006e3f3915040577136d7b
@hackervera
hackervera / RegulatedToken.sol
Created June 6, 2018 23:26
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.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.18;
import 'https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC20/DetailedERC20.sol';
// import 'zeppelin-solidity/contracts/token/DetailedERC20.sol';
//import 'zeppelin-solidity/contracts/token/MintableToken.sol';
import 'https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC20/MintableToken.sol';
import './ServiceRegistry.sol';
import './RegulatorService.sol';
/// @notice An ERC-20 token that has the ability to check for trade validity
require "dag"
require "rbnacl"
require "bencode"
require "time"
require "socket"
require "json"
include RbNaCl::Util
$dag = DAG.new
require "sequel"
require "merkle-hash-tree"
require "rbnacl"
require "digest"
DB = Sequel.connect('postgres://[email protected]/merk')
def build_chain(head)
chain = DB.from(:chains)[head: head]
if chain[:previous_head] == "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
[chain[:body]]
require "bundler"
require "pp"
Bundler.require
description = RDF::Turtle::Reader.new(STDIN)
graph = RDF::Graph.new << description
query = graph.query(predicate: RDF::URI('http://xmlns.com/wot/0.1/assurance')).first
subject_uri = query && query.subject.to_s
signature_uri = query && query.object.to_s
if signature_uri && signature_uri =~ /urn:ipfs:(.*)/

Keybase proof

I hereby claim:

  • I am tjgillies on github.
  • I am kodo (https://keybase.io/kodo) on keybase.
  • I have a public key whose fingerprint is D2A5 4409 1FA3 22EF DA4E 919B 1E3F 1410 05B8 4A46

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am tjgillies on github.
  • I am kodo (https://keybase.io/kodo) on keybase.
  • I have a public key ASBEU08jWpQsq89BZ9AMArU280HHxYeAJ2wFG9Jvzi6L_Qo

To claim this, I am signing this object:

8ED78A42D56A3CCFEBE1ACA94B41B4DDF1B39C1F