Skip to content

Instantly share code, notes, and snippets.

View abramsymons's full-sized avatar

Mahdi Heydari abramsymons

View GitHub Profile

Keybase proof

I hereby claim:

  • I am abramsymons on github.
  • I am abramsymons (https://keybase.io/abramsymons) on keybase.
  • I have a public key ASAzaoo8nDRqmRpB3YTAS-jybIjtTLyKUuL5Sz6I_sOHTwo

To claim this, I am signing this object:

mahdi_heydari

Keybase proof

I hereby claim:

  • I am abramsymons on github.
  • I am mahdi_heydari (https://keybase.io/mahdi_heydari) on keybase.
  • I have a public key ASCk_HfarnitAcUzSoZ8G7vvwx-IhwmZCs01wgxDN8zCVQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am abramsymons on github.
  • I am mahdi_heydari (https://keybase.io/mahdi_heydari) on keybase.
  • I have a public key ASCk_HfarnitAcUzSoZ8G7vvwx-IhwmZCs01wgxDN8zCVQo

To claim this, I am signing this object:

import time
from arango import ArangoClient
db = ArangoClient().db('_system')
users = db.collection('users')
connections = db.collection('connections')
def urlSafeB64ToB64(s):
s = s.replace('_', '/').replace('-', '+')
while len(s) % 4:
pragma solidity ^0.6.3;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";
contract BrightID is Ownable {
event Verified(address indexed addr);
event Revoked(address indexed addr);
mapping(address => bool) public verifications;
mapping(address => address) public history;
pragma solidity ^0.6.3;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol";
contract BrightID {
mapping(address => bool) public verifications;
mapping(address => address) public history;
}
pragma solidity ^0.6.3;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol";
import "https://github.com/BrightID/BrightID-SmartContract/blob/master/v4/IBrightID.sol";
contract Sahm is ERC20, Ownable {
IBrightID public brightid;
mapping(address => bool) public claimed;
import json
import time
import requests
import base64
import ed25519
URL = 'http://test.brightid.org/brightid/v5/operations'
PRIVATE = ''
op = {
import brightid
from eth_account import Account
import secrets
import time
import requests
context = 'RabbitHole'
node = brightid.Node('http://node.brightid.org/brightid/v5')
def newAddress():
const CryptoJS = require("crypto-js");
const nacl = require("tweetnacl");
const B64 = require("base64-js");
const { create } = require("apisauce");
const assert = require("assert");
const qrcode = require("qrcode-terminal");
const baseURL = "http://test.brightid.org/profile";
const api = create({
baseURL,