Skip to content

Instantly share code, notes, and snippets.

View 3esmit's full-sized avatar

Ricardo Guilherme Schmidt 3esmit

View GitHub Profile
@3esmit
3esmit / designer.html
Last active March 2, 2016 20:36
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../chart-js/chart-js.html">
<polymer-element name="my-element">
<template>
@3esmit
3esmit / designer.html
Last active March 8, 2016 20:00
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
@3esmit
3esmit / designer.html
Last active March 9, 2016 17:58
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-pages/core-pages.html">
<polymer-element name="my-element">

EthPoolBR

An opensource Ethereum pool optimized for eficiency and transparency with fair flexible payment system. The project will be mainly in javascript, but bindings may be used to improve performance of ethash.

Payment System

We are abstracting the payment system to be able to anyone easily extend your own payment system and we are basing it on Period Based Pay Per Share (PBPPS) that can be configured in minutes or dynamically changed based on ethereum network variables, like blocktime.
The miners are paid proportionaly to the shares accepted in the configured period. The proportion is calculated by

aPeriod.ethEarningsPerShare = aPeriod.totalEthEarned / aPeriod.totalAcceptedShares;
aMiner.balance += aMiner.periodShares[aPeriod.key]*aPeriod.ethEarningsPerShare;
pragma solidity ^0.4.0;
contract ExampleCounter {
uint counter;
uint max;
uint amount;
address device;
address owner;
address reciever;
@3esmit
3esmit / ProofOfAuthoring.sol
Created February 9, 2017 04:00
Contract used to register hashes of files to proof the original authoring of them.
pragma solidity ^0.4.0;
/*
Proof of authoring
Contract used to register hashes of files to proof the original authoring of them.
Owner can transfer the ownership.
Contract accept donation to documents registereds.
Written by Ricardo Guilherme Schmidt <3esmit@gmail.com>
// Grove v0.2
/// @title GroveLib - Library for queriable indexed ordered data.
/// @author PiperMerriam -
library GroveLib {
/*
* Indexes for ordered data
*
* Address: 0x7c1eb207c07e7ab13cf245585bd03d0fa478d034
// String Utils v0.1
/// @title String Utils - String utility functions
/// @author Piper Merriam -
library StringLib {
/*
* Address: 0x443b53559d337277373171280ec57029718203fb
*/
/// @dev Converts an unsigned integert to its string representation.
0x6060604052606061015e8061007e833901809050604051809103906000f060405160008054600160a060020a0319169290921790915561015e806101dc833901809050604051809103906000f060018054600160a060020a031916919091179055605060088190556006556101006007556120608061033a6000396000f3606060405260008054600160a060020a0319163317905561013a806100246000396000f3606060405260e060020a6000350463e8b1d0f3811461001b575b005b60806020601f6044356004818101359283018490049093028401604052606082815261008e94843594602480359591946064949391019190819083828082843750949650505050505050600080543373ffffffffffffffffffffffffffffffffffffffff9081169116146100a057610002565b60408051918252519081900360200190f35b8373ffffffffffffffffffffffffffffffffffffffff168360e060020a9004836040518260e060020a028152600401808280519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156101195780820380516001836020036101000a031916815260200191505b509150506000604051808303816000876161da5a03f197965050505050505056606060405260008054600160a060020a0319163317905561013a806100246000396000
@3esmit
3esmit / ls liaht userprofile ethash light
Created February 15, 2017 18:31
Parity creating files .ethash\light and not cleaning them
C:\Users\Ricardo\.ethash\light>ls -liaht
total 829M
871912 drwxr-xr-x 2 Ricardo Administ 48k Feb 14 05:24 .
14618345 -rw-r--r-- 1 Ricardo Administ 29M Feb 14 05:24 4442f225020ba6d0037c1baa9e9f66654481d0e5b3db0a4631120df006c71b42
34409794 -rw-r--r-- 1 Ricardo Administ 29M Feb 9 16:29 f92939676d14781d5fbba68fae26c2e1a6ba87a8ce503b9958f8f95b37b24146
9390136 -rw-r--r-- 1 Ricardo Administ 25M Sep 19 16:33 0ee232f1867fd14f43990c8413953a4009ad96d14d28c1f27153927f28ee6c68
5731461 -rw-r--r-- 1 Ricardo Administ 25M Sep 19 16:30 60ead4b0f664a9994f7fd5deae34ba1d609e459c051cb0f7be8895dd88ec1aaf
5737049 -rw-r--r-- 1 Ricardo Administ 25M Sep 19 16:27 789121f005cf40651e361085512f0540e36453fb34ca66fbe38e2836348b9f73
2057910 -rw-r--r-- 1 Ricardo Administ 25M Sep 19 16:24 c286f25d7b8f4ce9c9e38813c2b5a117c30004e403b9e5b4378c6694f63c7c40
4671587 -rw-r--r-- 1 Ricardo Administ 25M Sep 19 16:21 35302c733d46ef7245cf797c00d79b6f54049c070099677dab17e6e7deaefffa