这是一份fork自github.com/bitcoinj/bitcoinj master 的源码。
fork date:2018-03-23
同时这是一份我自己保存用来进行bitcoinj源码分析的opensource。
能力有限,肯定会有很多地方分析错误,争取错误越来越少。
分析的源码和心得体会都全部内嵌在源码中间,方便边看边分析。
一个区块链爱好者,欢迎参与PR。
代码地址 https://github.com/bingoer/bitcoinj_sourcecode_analysis
The bitcoinj library is a Java implementation of the Bitcoin protocol, which allows it to maintain a wallet and send/receive transactions without needing a local copy of Bitcoin Core. It comes with full documentation and some example apps showing how to use it.
- Java 7 for the core modules, Java 8 for everything else
- Maven 3+ - for building the project
- Google Protocol Buffers - for use with serialization and hardware communications
To get started, it is best to have the latest JDK and Maven installed. The HEAD of the master branch contains the latest development code and various production releases are provided on feature branches.
To perform a full build use
mvn clean package
You can also run
mvn site:site
to generate a website with useful information like JavaDocs.
The outputs are under the target directory.
Alternatively, just import the project using your IDE. IntelliJ has Maven integration built-in and has a free Community Edition. Simply use File | Import Project and locate the pom.xml in the root of the cloned project source tree.
These are found in the examples module.
Now you are ready to follow the tutorial.