The second article is the creation of bitcoin source environment
Analyzing the source code requires the support of the programming environment. If it is linux or OSX will be very convenient, windows will be more troublesome, will need to cross-compile. However, programmers should rise in the face of difficulties and learn more about their own unknown world.
Step by step, let's analyze how Bitcoin is signed to ensure that the transaction information is sent by the owner of the wallet. For the time being, we only need the following two environments.
Programming language: Candlestick +
Project dependent libraries:
1 、 boost 1.55
There is no need to say much about the famous boost library, how convenient it is, you will know if you have used it.
2. Elliptic curve cryptography
Asymmetric public key cryptography algorithm, in the bitcoin source code, secp256k1 module.
The above environment compiles itself and links correctly. Next, we will create bitcoin addresses based on secure random numbers.