Created
January 27, 2022 21:08
-
-
Save humbdrag/89191627a671699162279662769bb44a to your computer and use it in GitHub Desktop.
Create submission string
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
def create_submission_str(block: Dict) -> str: | |
submission = ( | |
calc_block_header(block).hex() | |
+ get_le_var_hex(len(block['transactions'])) | |
) | |
for tx in block['transactions']: | |
submission += tx['data'] | |
return submission |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment