It could too late to reply your query however when you nonetheless cannot get well your pockets. do that technique.
There are some inquiries to ask earlier than coding.
1. The non-public key
There are numerous format sort of personal key, for instance
- Hexadecimal non-public key (64 size key mixture from ‘0123456789abcdef’ letters, case insensitive)
- Base58 WIF (51 – 52 size key begin with L or Ok or 5, case delicate)
for 4 lacking char, there will likely be 65,536 (16x16x16x16) key to check in first state of affairs and 11,316,496 (58x58x58x58) in second state of affairs
So, What format of your non-public key?
2. The lacking place
Are you aware the place the lacking place is?
If you recognize, It is going to be straightforward to search out the important thing that match along with your tackle, but when not, you have to strive all attainable place and the attainable key to check will likely be very large
3. The tackle of harm non-public key
Are you aware the tackle of that key?
Based on your put up, there’s a p2sh pockets. So the tackle will begin with ‘3’ proper? if you recognize the tackle, you may loop all attainable key above till it match along with your goal tackle
the code beneath is in python. it create on state of affairs that your non-public key’s hexadecimal format, lacking first 4 characters, and you recognize the tackle of that injury non-public key
import hdwallet
import itertools
from hdwallet import HDWallet
from hdwallet.symbols import BTC
hdwallet = HDWallet(image=BTC)
#key = 'f79495fda777197ce73551bcd8e162ceca19167575760d3cc2bced4bf2a213dc'
corrupted_key = '95fda777197ce73551bcd8e162ceca19167575760d3cc2bced4bf2a213dc'
Target_address = "3GQVUFePz517Hf61Vsa9H2tHj5jw5y6ngV"
Possible_missing_key = record(itertools.product('0123456789abcdef', repeat=4))
for i in Possible_missing_key:
Missing_part="".be part of(i)
privateKey = Missing_part + corrupted_key
hdwallet.from_private_key(private_key = privateKey)
if hdwallet.p2sh_address() == Target_address:
print(privateKey)
hdwallet.clean_derivation()
You possibly can regulate the code above to fit your case. Hope this assist.
when you have any query, there’s an e mail and telegram contact in my profile, be at liberty to ask.