Skip to content

Instantly share code, notes, and snippets.

@yaronvel
Created February 14, 2017 07:52
Show Gist options
  • Select an option

  • Save yaronvel/4d913677c885a3ff42581e69f68690f3 to your computer and use it in GitHub Desktop.

Select an option

Save yaronvel/4d913677c885a3ff42581e69f68690f3 to your computer and use it in GitHub Desktop.
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
##################################################################################
verify_claim_params = [ rlp_header, nonce, share_index, 64_cache_elements, cache_branch, aug_tree_counters_branch, aug_tree_hashes_branch ]
# array inputs should be within []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment