比特币源码分析(一) - 源码学习计划

总体计划
先分析整体架构,再局部分析具体内容。

源码及工具
分析源码时github上的bitcoin最新的release版本是v0.16.1,commit号:dac5d68fc6cf136e0d7b21b9ed4fa053d54e6059
所以就使用这个版本的源码进行分析了,源码地址:https://github.com/bitcoin/bitcoin/tree/v0.16.1

可以查看安装的Bitcoin Core信息和上面的版本号和commit号进行比对:

y@ubuntu:~$ bitcoind --version
Bitcoin Core Daemon version v0.16.1.0-gdac5d68fc6cf
Copyright (C) 2009-2018 The Bitcoin Core developers

Please contribute if you find Bitcoin Core useful. Visit
<https://bitcoincore.org> for further information about the software.
The source code is available from <https://github.com/bitcoin/bitcoin>.

This is experimental software.
Distributed under the MIT software license, see the accompanying file COPYING
or <https://opensource.org/licenses/MIT>

This product includes software developed by the OpenSSL Project for use in the
OpenSSL Toolkit <https://www.openssl.org> and cryptographic software written by
Eric Young and UPnP software written by Thomas Bernard.

代码阅读工具是CLion

涉及到的相关具体内容
程序初始化过程
私钥、公钥、地址
钱包
交易创建、传播、确认
P2P网络
区块链
挖矿和共识机制

插曲
由于比特币源码分析是一个比较长的过程,因此可能写了一篇后中途又想写其他文章,但是这样的话在目录列表里《比特币源码分析》这系列的文章看着就”断层”了,不连贯。于是乎,就想了个办法,一口气把这个系列想写的文章都只先写了开头的总结性部分,相当于把所有想写的文章先列了个大纲,后面再一篇一篇详写,哈哈哈哈,这样看着就舒服了~~~

参考资料
https://github.com/bitcoin/bitcoin
https://bitcoin.org/en/developer-documentation
https://en.bitcoin.it/wiki/Main_Page
https://en.wikipedia.org/wiki/Bitcoin
https://bitcointalk.org/

rpc相关:
https://bitcoin.org/en/developer-reference#remote-procedure-calls-rpcs
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list

猜你喜欢

转载自blog.csdn.net/yzpbright/article/details/81162364
今日推荐