Skip to content

Instantly share code, notes, and snippets.

@dangerousfood
Created June 10, 2019 10:43
Show Gist options
  • Save dangerousfood/32d8ef607c3f80b7e4c0bfdb0f90cc8b to your computer and use it in GitHub Desktop.
Save dangerousfood/32d8ef607c3f80b7e4c0bfdb0f90cc8b to your computer and use it in GitHub Desktop.
for j in range(DEPOSIT_CONTRACT_TREE_DEPTH):
if j < i:
value = sha256(concat(self.branch[j], value))
else:
break
self.branch[i] = value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment