MOVE TO HERE
首先确定已经安装完成 docker,如果没有安装可以使用以下脚本快速安装并配置:
#aliyun | |
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted | |
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted | |
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe | |
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted | |
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe | |
deb http://mirrors.aliyun.com/ubuntu/ xenial universe | |
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe | |
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse | |
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse |
首先确定已经安装完成 docker,如果没有安装可以使用以下脚本快速安装并配置:
bmb.logo |
// Package networks is All Networks params | |
// HDCoinType @see https://github.com/satoshilabs/slips/blob/master/slip-0044.md | |
package networks | |
import "github.com/btcsuite/btcd/chaincfg" | |
// Litecoin network | |
// @see https://github.com/litecoin-project/litecoin/blob/master/src/chainparams.cpp#L135 | |
var Litecoin = &chaincfg.Params{ | |
Name: "Litecoin", |
package main | |
import ( | |
"encoding/hex" | |
"fmt" | |
) | |
func main() { | |
n := 0xffee | |
result := make([]byte, 0, 2) |
生成Keystore
$ geth account new
Your new account is locked with a password. Please give a password. Do not forget this password.
Passphrase:
Repeat passphrase:
Address: {9f257f319f69e6f88012b25d5d50a4faf8bfafd4}
package main | |
import ( | |
"bytes" | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rand" | |
"encoding/hex" | |
"fmt" | |
"io" |
package main | |
import ( | |
"bytes" | |
"encoding/gob" | |
"github.com/syndtr/goleveldb/leveldb" | |
) | |
const dbpath = ".leveldb" |
package main | |
import ( | |
"bytes" | |
) | |
func main() { | |
} |