This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function verifyAgt( uint leaf32BytesHash, | |
uint leafCounter, | |
uint branchIndex, | |
uint[] countersBranch, | |
uint[] hashesBranch ) constant returns(bool) { | |
uint currentHash = leaf32BytesHash & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; | |
uint leftCounterMin; | |
uint leftCounterMax; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
epoch_params = [ ethash_cache_root, cache_number_of_elements, branch_depth, epoch ] | |
#where branch_depth was 24 in previous example | |
#epoch = block_number / 30000 | |
################################################################################## | |
submit_claim_params = [ num_shares, difficutly, min_counter, max_counter, aug_merkle_root ] | |
# min, max and root are 128 bits integers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x2c93a043734b911e841214a3d6b5c567d9a3b22b6e2331cf1eba063dda975303 | |
0x9d9d0573fe6787403254255ec8382a3d0b6f1677cf360e8d9c2a3b0c7022a99 | |
0xb7b441a1b569c5bae2959b6176ad0e520980af4daf52d32d2d4308362ebbdbca | |
0xc94b5b473a5735a28020719a90dc0cbf851dd25644c07e319fea2afb1bddd7c0 | |
0xad3e817e8d7e178209a31df18d7c1fc19013fccc42790b99b73af42e9ba96ded | |
0x5f069616f00ca39e22ba2946ecfcb11722ff4212e7f7a00e72c7f5b4ac21b3ce | |
0x5bedb027f6b6838737b7f153fe0c28ec5db4b67146222434f2278e33c94540ad | |
0x2b58f4acc7effbf4913bfad9d236844a57fb7380f876bdfb7aea1ad09c832508 | |
0xd91c613187717a94765f59190379e31f2335e1514477b474c7df23e6e97cdec4 | |
0x5215bfe12e0d26ef005a5b0436f2dd2e4555c48d6d476801b6895cdaf074645a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This file is an automatically generated Go binding. Do not modify as any | |
// change will likely be lost upon the next re-generation! | |
package main | |
import ( | |
"math/big" | |
"strings" | |
"github.com/ethereum/go-ethereum/accounts/abi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends" | |
"github.com/ethereum/go-ethereum/common" | |
"github.com/ethereum/go-ethereum/rpc" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.9; | |
import "./Ethash_asm.sol"; | |
/** | |
* @title RLPReader | |
* | |
* RLPReader is used to read and parse RLP encoded data in memory. | |
* | |
* @author Andreas Olofsson (androlo1980@gmail.com) | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"constant":true,"inputs":[],"name":"newVersionReleased","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"x","type":"uint256[]"}],"name":"array","outputs":[{"name":"","type":"bytes32"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"getMinerId","outputs":[{"name":"","type":"bytes32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"rlpHeader","type":"bytes"},{"name":"nonce","type":"uint256"},{"name":"shareIndex","type":"uint256"},{"name":"dataSetLookup","type":"uint256[]"},{"name":"witnessForLookup","type":"uint256[]"},{"name":"augCountersBranch","type":"uint256[]"},{"name":"augHashesBranch","type":"uint256[]"}],"name":"verifyClaim","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"getClaimSeed","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":""," |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.9; | |
import "./Ethash_asm.sol"; | |
/** | |
* @title RLPReader | |
* | |
* RLPReader is used to read and parse RLP encoded data in memory. | |
* | |
* @author Andreas Olofsson (androlo1980@gmail.com) | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"constant":true,"inputs":[],"name":"newVersionReleased","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"x","type":"uint256[]"}],"name":"array","outputs":[{"name":"","type":"bytes32"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"isRegistered","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"getMinerId","outputs":[{"name":"","type":"bytes32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"rlpHeader","type":"bytes"},{"name":"nonce","type":"uint256"},{"name":"shareIndex","type":"uint256"},{"name":"dataSetLookup","type":"uint256[]"},{"name":"witnessForLookup","type":"uint256[]"},{"name":"augCountersBranch","type":"uint256[]"},{"name":"augHashesBranch","type":"uint256[]"}],"name":"verifyClaim","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"getClaimSeed","outputs":[{"name":"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"constant":true,"inputs":[],"name":"newVersionReleased","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"x","type":"uint256[]"}],"name":"array","outputs":[{"name":"","type":"bytes32"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"isRegistered","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"getMinerId","outputs":[{"name":"","type":"bytes32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"rlpHeader","type":"bytes"},{"name":"nonce","type":"uint256"},{"name":"shareIndex","type":"uint256"},{"name":"dataSetLookup","type":"uint256[]"},{"name":"witnessForLookup","type":"uint256[]"},{"name":"augCountersBranch","type":"uint256[]"},{"name":"augHashesBranch","type":"uint256[]"}],"name":"verifyClaim","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"getClaimSeed","outputs":[{"name":"" |