Skip to content

Instantly share code, notes, and snippets.

View drgorb's full-sized avatar
🤓
helping create awesome blockchain software

Micha Roon drgorb

🤓
helping create awesome blockchain software
View GitHub Profile
@drgorb
drgorb / designer.html
Created January 5, 2015 14:05
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
0xcfb2197bbf251afcb735f28105546cd6e1616f52
0x77454e832261aeed81422348efee52d5bd3a3684
/// auth.sol -- widely-used access control pattern for Ethereum
// Copyright (C) 2015, 2016, 2017 DappHub, LLC
// Licensed under the Apache License, Version 2.0 (the "License").
// You may not use this file except in compliance with the License.
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND (express or implied).
@drgorb
drgorb / Auth.sol
Last active August 31, 2017 09:40
CDX-Token
/// auth.sol -- widely-used access control pattern for Ethereum
// Copyright (C) 2015, 2016, 2017 DappHub, LLC
// Licensed under the Apache License, Version 2.0 (the "License").
// You may not use this file except in compliance with the License.
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND (express or implied).
0x3532727c1126ddad9a6e9f935b74e41e7b1d4025
0x855e89aee346d780aa5912838d0fd16b4fcf12a3

Keybase proof

I hereby claim:

  • I am drgorb on github.
  • I am micha_roon (https://keybase.io/micha_roon) on keybase.
  • I have a public key ASCp_VwcE-aTkbZRZfLdXU5cW7_UcpHU5rsg2c7CBkB1RQo

To claim this, I am signing this object:

@drgorb
drgorb / deploy-forwarders.js
Created February 27, 2018 06:43
deploying the Roles and Forwarder contracts
var ForwarderFactory = {
"contractName": "ForwarderFactory",
"abi": [
{
"constant": false,
"inputs": [
{
"name": "from",
"type": "address"
},
@drgorb
drgorb / gist:593d72efdd183caec5456011cf4c22eb
Created December 4, 2019 20:06
Create a signed JWT claim
const EthrDID = require("ethr-did")
const LocalProvider = require('web3-local-signing-provider')
const Web3 = require('web3')
const didJWT = require('did-jwt')
const ethrResolver = require('ethr-did-resolver').default
const {Resolver} = require('did-resolver')
// EthrDID.createKeyPair()
LocalProvider.prototype.sendAsync = LocalProvider.prototype.send
Web3.providers.HttpProvider.prototype.sendAsync = Web3.providers.HttpProvider.prototype.send