dh12306 / hpb

save version

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go HPB

Official golang implementation of the HPB protocol.

API Reference Gitter

Building the source (requires a Go version 1.7 or later)

###Clone source

    git clone git@github.com:hpb-project/ghpb-testnet.git $GOPATH/src/github.com/hpb-project/ghpb

###Building ghpb

    go install -a -v ./command/ghpb

or

    cd $GOPATH/src/github.com/hpb-project/ghpb
    make ghpb

###Building promfile

Init with genesis file

$ geth --datadir <some/location/where/to/create/chain> init genesis.json

Running ghpb

$ ghpb --identity "private hpb"  --rpcaddr 127.0.0.1  --rpc   --rpcport 8545  --maxpeers 2  --networkid 100  --datadir "./chain"  --nodiscover

Attach to the node

ghpb attach ipc://path-to-chain-directory/ghpb.ipc

About

save version

License:GNU Lesser General Public License v3.0


Languages

Language:Go 79.4%Language:C 9.6%Language:JavaScript 6.7%Language:C++ 1.5%Language:Assembly 0.7%Language:Java 0.5%Language:Python 0.5%Language:M4 0.4%Language:NSIS 0.4%Language:Makefile 0.2%Language:Shell 0.0%