Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Frodek on October 09, 2019, 02:01:51 PM



Title: How decode public key from input script?
Post by: Frodek on October 09, 2019, 02:01:51 PM
I see: https://learnmeabitcoin.com/guide/digital_signatures_signing_verifying (https://learnmeabitcoin.com/guide/digital_signatures_signing_verifying)
Where is this in Bitcoin clienyt sources?
For outputs, for example, is
Code:
bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, std::vector<std::vector<unsigned char> >& vSolutionsRet)
in standard.cpp file.
For inputs can I use this same method or other?

I have problem using this same method to inputs - no key found


Title: Re: How decode public key from input script?
Post by: achow101 on October 09, 2019, 06:39:25 PM
There is no function in Bitcoin Core to do this because it is never done and not needed.