Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Ofiuco on April 16, 2019, 01:51:47 PM



Title: Which are the scripts that manage the management of keys in Bitcoin Core?
Post by: Ofiuco on April 16, 2019, 01:51:47 PM
Hi guys,

I am carrying out a project, for which I want to identify possible vulnerabilities in different cryptocurrencies. The idea is to see how the keys are managed by each purse of different cryptocurrencies and in case of not finding vulnerabilities, at least make a guide of good practices when creating them,

I've been looking at code for a while, but I can not find which scripts are exactly where the keys are managed. If someone can help me out, I'll be very grateful,

Best regards,


Title: Re: Which are the scripts that manage the management of keys in Bitcoin Core?
Post by: darosior on April 16, 2019, 03:45:25 PM
Hi guys,

I am carrying out a project, for which I want to identify possible vulnerabilities in different cryptocurrencies. The idea is to see how the keys are managed by each purse of different cryptocurrencies and in case of not finding vulnerabilities, at least make a guide of good practices when creating them,

I've been looking at code for a while, but I can not find which scripts are exactly where the keys are managed. If someone can help me out, I'll be very grateful,

Best regards,
Hi,

the wallet management in core is done in the src/wallet/ (https://github.com/bitcoin/bitcoin/tree/master/src/wallet) directory. You can find some key management functions here : https://github.com/bitcoin/bitcoin/blob/598323911e930d67e678e464353eb570ad3bf2b7/src/wallet/wallet.h#L845


Title: Re: Which are the scripts that manage the management of keys in Bitcoin Core?
Post by: Ofiuco on April 17, 2019, 07:32:22 AM
Thank you very much Darosior, do you know any other script where I can review the key management?

Best regards,


Title: Re: Which are the scripts that manage the management of keys in Bitcoin Core?
Post by: darosior on April 17, 2019, 08:58:18 PM
Thank you very much Darosior, do you know any other script where I can review the key management?

Best regards,
In core ? (btw C++ is not a scripting language)


Title: Re: Which are the scripts that manage the management of keys in Bitcoin Core?
Post by: Ofiuco on April 23, 2019, 10:03:57 AM
Sorry, I used a bad term, I wanted to say that if you knew some more ".cpp" or ".h" file that contains the key management,

If somehow I could find a list to find all of them, it would be wonderful,

Best regards,


Title: Re: Which are the scripts that manage the management of keys in Bitcoin Core?
Post by: darosior on April 23, 2019, 10:12:06 AM
As already pointed out above, you can find them in the src/wallet/ (https://github.com/bitcoin/bitcoin/tree/master/src/wallet) directory.