I need you to develop some software for me. I would like this software to be developed using Python. Ok, let me put here the brief;
You will see here;
[login to view URL]
This is electrum wallet. And it's expecting headers to come back at 80 bytes long, in chunks of 2016. This works fine when the server sends them at this length, However our headers are longer. They are also variable.
Ok, So, here's an example;
This is one header. You will notice byte 81 contains '06' and this byte indicates the length of the following hex.
So to hash this, we can say;
Read the first 80
Then read byte 81 (06)
Then read this many bytes (06)
so the full header is 87
We can then hash this as normal (Double 256)
The complexity here is for example, in the verify_chunk method, we are expecting header's of 80, so as an example in this method we would need to account for this variable length. as well as elsewhere in the file where this convention is used.
Perhaps either having a method to return a position based on a block height, or storing these in a file.
Can you provide a rough estimate and task summary to complete this task. I personally estimated around 8-10 hours including some testing, but I don't have the time right now, and it's urgent.
I have a server instance running it can be tested against.