Skip to content

Instantly share code, notes, and snippets.

@dangerousfood
Created June 10, 2019 10:09
Show Gist options
  • Save dangerousfood/fe9306c766e1cbf4da2b0ce139c80c2d to your computer and use it in GitHub Desktop.
Save dangerousfood/fe9306c766e1cbf4da2b0ce139c80c2d to your computer and use it in GitHub Desktop.
zerohashes: bytes32[DEPOSIT_CONTRACT_TREE_DEPTH]
@public
def __init__():
for i in range(DEPOSIT_CONTRACT_TREE_DEPTH - 1):
self.zerohashes[i+1] = sha256(concat(self.zerohashes[i], self.zerohashes[i]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment