segregated witness – Learn how to rapidly discover the non-public key from Segwit P2SH deal with?

0
70


Learn how to rapidly discover the non-public key from Segwit P2SH deal with?

As per right this moment, it’s inconceivable to seek out the non-public key from any public key or deal with. Additionally from a SegWit P2SH deal with. There may be at all times hashing concerned, which is a a technique perform.

I believe you perhaps needed to ask, the right way to come to the general public addresses (see under), as a way to extract corresponding priv key from bitcoin pockets…

I believe there is no such thing as a fast means 🙁

However with some programming and internet web page hyperlinks, this may get you to your aim:

I’ve a really massive checklist of Segwit addresses for bitcoin, beginning
with ‘3’ and have no idea the corresponding legacy ‘1’ deal with for
them.

The best way the sort 3 addresses are composed contains as soon as once more a hash worth, so you can not simply “return” – it’s a a technique perform. The best way how they’re composed is described right here, and here’s a description in bitcointalk discussion board.

How can I rapidly discover the corresponding legacy deal with to export the
non-public key from Bitcoin Core?
The Seqwit addresses haven’t acquired any transactions, but.

And right here it will get tough: except there are some transactions spending with the redeem script of this segwit deal with (which normally reveals the redeem script in clear hex format), there is no such thing as a solution to get to the foundation information. However then once more in case you have the redeem script, it’s a construction like this:

OP_0:    00
Size:  14
keyhash: (20 bytes)

once more with the hash of the corresponding “kind 1” key.
In this hyperlink Pieter stated you may’t, and should not.

So finest in your work is to extract all priv keys from the pockets, and do “the reverse work”. Take a priv key, and create the sort 1 deal with from it (by no means expose your priv keys on-line, you’ll unfastened the funds! It is advisable do that offline!). An excellent web page on the right way to do is right here.

After having the “kind 1” deal with, it’s possible you’ll convert it to segwit deal with, and use once more the identical pubkey to undergo this.

LEAVE A REPLY

Please enter your comment!
Please enter your name here