Ditutup

Modify python electrum blockchain class for variable header length

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;

020000000000000000000000000000000000000000000000000000000000000000000000ffc9050e834e51d2eb40ecda5308714f55743d3c74aed01294bbff1db60ea3acca4ad75100000006e9050000067692ceddd376

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.

Many thanks

Kemahiran: Python, Kejuruteraan Perisian

Lihat lagi: modify python code and write small report, static class variable respondentid, undefined variable header, python electrum library, electrum blockchain header, electrum bitcoin gold, electrum wallet python, electrum bitcoin wallet review, electrum bitcoin rpc, update electrum, electrum script, ida class variable, notice undefined variable header, finding java app class variable, modify python modules scraping, class shape header files, page class suffix header, modify python script, modify python feedback script, python script modify program header

Tentang Majikan:
( 2 ulasan ) Leeds, United Kingdom

ID Projek: #17049401

5 pekerja bebas membida secara purata £261 untuk pekerjaan ini

schoudhary1553

Hello, I can help with you in your project Modify python electrum blockchain class for variable header length. I have more than 5 years of experience in Python, Software Architecture. We have worked on several simil Lagi

£250 GBP dalam 3 hari
(23 Ulasan)
5.3
£150 GBP dalam 3 hari
(17 Ulasan)
4.6
shobhanasaxena

Hi I have read the description, software you want to be develop using Python. I have also gone through your referral link for better understanding of this project as: [login to view URL] Lagi

£150 GBP dalam 3 hari
(2 Ulasan)
3.3
BlackStarGazer

Hello Please answer the following : In the example you put , the final hash should be 5c11c0a01a51944a155a90aa157594799586ebab88f9bebcf68fc63b6ad4dc41 after applying the sha256 to the last bytes after the 80 Lagi

£200 GBP dalam 3 hari
(2 Ulasan)
1.3
Nirav8081

Welcome, dear clients! I'm a professional cryptocurrency developer who has worked on a hundred kinds of big and small projects for 7 years. I work for cryptocurrency project like payment gateway, wallet, cryptocurrency Lagi

£555 GBP dalam 3 hari
(0 Ulasan)
0.0