README

annchain

annchain 采用 dBFT 共识算法,兼容以太坊合约交易。

编译

go get github.com/annchain/annchain
make ann

初始化节点

执行以下命令

./ann init

初始化将会在 ~/.angine 目录下产生3个配置文件,分别是:

config.toml           // 链运行所需要的参数
genesis.json          // 创世块信息
priv_validator.json   // 节点身份信息

详细文档

Expand ▾ Collapse ▴

Directories

Path Synopsis
angine
angine/blockchain
angine/blockchain/refuse_list
angine/consensus
angine/mempool
angine/plugin
angine/protos
angine/protos/blockchain Package blockchain is a generated protocol buffer package.
angine/protos/consensus Package consensus is a generated protocol buffer package.
angine/protos/events Package events is a generated protocol buffer package.
angine/protos/mempool Package mempool is a generated protocol buffer package.
angine/protos/rpc Package rpc is a generated protocol buffer package.
angine/protos/state Package state is a generated protocol buffer package.
angine/protos/trace Package trace is a generated protocol buffer package.
angine/protos/types Package types is a generated protocol buffer package.
angine/state
angine/types
angine/utils
angine/utils/zip
chain
chain/app
chain/cmd
chain/log
chain/node
chain/start
chain/version
client
client/commands
client/commons
client/utils
config
module/lib/ed25519 Package ed25519 implements the Ed25519 signature algorithm.
module/lib/ed25519/edwards25519 Package edwards25519 implements operations in GF(2**255-19) and on an Edwards curve that is isomorphic to curve25519.
module/lib/ed25519/extra25519
module/lib/go-autofile
module/lib/go-clist
module/lib/go-common Classical-inheritance-style service declarations.
module/lib/go-common/test
module/lib/go-config
module/lib/go-crypto
module/lib/go-crypto/bcrypt
module/lib/go-db
module/lib/go-events
module/lib/go-flowrate/flowrate Package flowrate provides the tools for monitoring and limiting the flow rate of an arbitrary data stream.
module/lib/go-merkle
module/lib/go-merkle/scripts
module/lib/go-p2p Uses nacl's secret_box to encrypt a net.Conn.
module/lib/go-p2p/upnp Taken from taipei-torrent Just enough UPnP to be able to forward ports
module/lib/go-plock
module/lib/go-rpc
module/lib/go-rpc/client
module/lib/go-rpc/server Commons for HTTP handling
module/lib/go-rpc/test
module/lib/go-rpc/types
module/lib/go-wire
module/lib/go-wire/cmd/wire
module/lib/go-wire/expr
module/logger
module/xlib
module/xlib/def
module/xlib/mlist
module/xlog
test/tps
tools
types