比特币及相关资料如下,也可以google,baidu相关资料参考。
Youtube上就有一些挺好的教程,但英文的居多。
1、比特币
1.1、下载Bitcoin Core
可以下载比特币客户端Bitcoin Core看一看,下载地址
建议下载”Bitcoin Core version 0.13.0 released”及之前版本,因为网上大多数资料和教程都是基于Bitcoin Core早期版本。
另外如果进行测试的话,需要用到bitcoind和bitcoion-cli可执行文件,
1.1.1、windows系统
在windows系统下,需要下载 bitcoin-x.XX.x-win64.zip,而不是bitcoin-x.XX.x-win64-setup.exe
1.1.2、Ubuntu系统
在Ubuntu上安装Bitcoin Core除了在官网上面直接下载安装包之外,还可以使用PPA的方式安装。
PPA:Personal Package Archives ,在Ubuntu上允许编译和发布一个apt repository。Bitcoin团队维护了一个apt repository,地址:https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin。使用PPA的好处可以使用
shell
直接安装,自动解决依赖,还可以选择性的安装bitcoind
和bitcoin-qt
。
首先需要添加bitcoin的源:
sudo add-apt-repository ppa:bitcoin/bitcoin
Stable Channel of bitcoin-qt and bitcoind for Ubuntu, and their dependencies
More info: https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin
Press [ENTER] to continue or ctrl-c to cancel adding it
......
gpg: imported: 1 (RSA: 1)
OK
显示如上提示,说明添加源成功,之后,需要更新下源:
sudo apt-get update
安装bitcoind:
sudo apt-get install bitcoind
可以选择性的安装bitcoin-qt
,在ubuntu-service
版本上是不需要bitcoin-qt
的,如果是在ubuntu-desktop
上面想使用bitcoin-qt
的话可以选择安装:
sudo apt-get install bitcoin-qt
1.2、运行bitcoind
ubuntu可在命令行直接输入bitcoind
命令可以让bitcoind
在终端直接运行。
windows系统需要在下载后打开命令行窗口(cmd.exe),进入bitcoin core含bitcoind.exe 和bitcoin-cli.exe的目录,执行相应命令。当然你也可以为bitcoin配置环境变量,直接在命令行窗口运行指令,而不用寻找目录。
在退化测试模式下进行测试,先运行
bitcoind -regtest
然后再开一个窗口运行
bitcoin-cli -regtest help
根据需要,在regtest模式下测试bitcoin的各种命令。
可以按照这个网页指南,在regtest模式下试试transaction的产生、签名和发送,熟悉熟悉bitcoin transaction的操作。
1.3、相关资料链接:
Bitcoins the hard way: Using the raw Bitcoin protocol
Using the raw Bitcoin protocol
2、 以太坊:
1)下载go-ethereum源代码,找相关的指南tutorlal进行编译执行。
2)熟悉geth的使用,建立private blockchain试试
3)在private blockchain上编译简单的智能合约
4)深入了解ethereum的数据结构,go-ethereum的功能模块。