Skip to content

Instantly share code, notes, and snippets.

Ricardo Guilherme Schmidt 3esmit

Block or report user

Report or block 3esmit

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
3esmit / config.json
Created Oct 2, 2019 statusd mailserver config (change <your-ip>)
View config.json
"Rendezvous": true,
"ListenAddr": "",
"AdvertiseAddr": "<your-ip>",
"APIModules": "eth,net,web3,admin",
"NoDiscovery": false,
"WhisperConfig": {
"Enabled": true,
"EnableMailServer": true,
"LightClient": false,
3esmit / color-eth-address.css
Created Apr 9, 2019
Color(ful) Eth Address React Component
View color-eth-address.css
.eth-address {
padding: 3px;
border-radius: 8px;
position: relative;
display: inline-grid;
box-shadow: 1px 1px 1px 1px #CCCC;
border-top: solid 1px #FFFC;
border-left: solid 1px #FFFC;
3esmit /
Last active Jan 8, 2019
embark (ethereum development framework) install snippet for ubuntu 18.10
#!/usr/bin/env bash
# Install NVM
wget -qO- $NVM_LINK | bash
source ~/.bashrc
3esmit / PaymentChannel.sol
Last active Dec 10, 2018
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at
View PaymentChannel.sol
pragma solidity >=0.5.0 <0.6.0;
interface Token {
function approve(address _spender, uint256 _value) external returns (bool success);
function allowance(address _owner, address _spender) external view returns (uint256 remaining);
function transferFrom(address _from, address _to, uint256 _value) external returns (bool success);
interface PaymentChannel {}
View phase1.zokrates
import "LIBSNARK/sha256packed"
def hash(field[16] deck) -> (field[2]):
field res = 0
for field i in 0..16 do
res = res + deck[i] * (2**(4*i))
h0, h1 = sha256packed(0, 0, 0, res)
return [h0, h1]
3esmit / Bar.sol
Last active Nov 21, 2018
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at
View Bar.sol
contract Bar {
event FooChanged(uint8 num);
uint256 public foo;
constructor() public {
function testAssert(bool _fail) external {
View UsernameRegistrar.sol
pragma solidity ^0.4.24;
* @title MerkleProof
* @dev Merkle proof verification based on
library MerkleProof {
3esmit / GCDLCMCache.sol
Last active Oct 5, 2018
hacky gcd lcm solidity with cache
View GCDLCMCache.sol
pragma solidity ^0.4.21;
contract GCDLCMCache {
mapping (bytes32 => uint256) public cache;
enum CacheType { GCD, LCM }
function gcd(uint256[] input)
3esmit / MultiSig.sol
Last active Feb 14, 2018
View MultiSig.sol
pragma solidity ^0.4.17;
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
/// @author Stefan George - <> & Ricardo Guilherme Schmidt <>
contract MultiSig {
uint constant public MAX_OWNER_COUNT = 50;
event Confirmation(address indexed sender, uint indexed transactionId);
3esmit / ERC725.sol
Last active Apr 7, 2018
Ethereum ERC725 ERC735 ERC745
View ERC725.sol
pragma solidity ^0.4.15;
contract ERC725 {
uint256 constant MANAGEMENT_KEY = 1;
uint256 constant ACTION_KEY = 2;
uint256 constant CLAIM_SIGNER_KEY = 3;
uint256 constant ENCRYPTION_KEY = 4;
event KeyAdded(address indexed key, uint256 indexed keyType);
You can’t perform that action at this time.