Skip to content

Instantly share code, notes, and snippets.

@JackyWYX
Created March 12, 2021 06:11
Show Gist options
  • Save JackyWYX/adba7bf16bccce479045600660d8454b to your computer and use it in GitHub Desktop.
Save JackyWYX/adba7bf16bccce479045600660d8454b to your computer and use it in GitHub Desktop.
Commit sig and bitmap data
## Commit signature and bitmap
Following is the data I obtained as binary for block number 1 in binary:
Signature bytes from next header:
```
011100001101110110000001111101000001101110110001000001110101100010000010100000101101101111100001001100101000110010100111010100000100000001110001111001000010011010010010011010001000110100011010000101000100101010100111000001001110010100110000101011111000011100101010010111101100010100101010011010001011100010001111100000101101111110010011110100010101110101011000000000101111011100001001011000010001011110111011111000111111011001000101001000110100111110101011101011010110101001010110010000001011010011111110110111100100001110111011001101110111101100100111101110000111000111011110100011000010000101000001101010000011001101001110100110001111000001001110010111011001101110111011101101010001001000110001011110000110001110100001101110101100101100100001011010010011010000000010
```
Bitmap from next header:
```
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110000000001000000001000000100000000000000
```
Signature and bitmap read from db (failed to pass validation):
```
0111110000011010101011010100111110001011111011001111010000000001110001011011000001101011110011110011101000000101110010001011110110111000111011100101100001010010010000000100110001001011110111001100111010111100100001010100101111111011110001101111101011000100011101001000111110100111001110110000011000001111001011010001101011101000100101000110100100110010011111010110101100110110000001110100011001101011001001111001110000110111011000011000000011011010100001111011001100011100110111000010010000100010001101010010100111001011001010000000010110111010100100101001101010111011100000010011100011011110111100101111101101110100110001010001010100100110110001101010110010101110011010111111001101100101101111000110000000111000100011011011110100011011010010010010100101110110100110001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110100011101110001100000000001000110100000000000000000000000000100000000000000000000000000
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment