• R/O
  • HTTP
  • SSH

bytom: Repository summary

Official Go implementation of the Bytom protocol

Recent Commits RSS

Rev. Time Author Message
9f1992c 2020-09-27 12:22:57 Chengcheng Zhang zcc0721-patch-1 Create go.yml
88a407d 2020-09-27 12:10:18 Chengcheng Zhang github-actions update
2040381 2020-09-27 12:01:04 Chengcheng Zhang upate
21f411e 2020-09-27 11:59:35 Chengcheng Zhang update
98d6009 2020-09-27 11:58:40 Chengcheng Zhang update
2410cf4 2020-09-27 11:51:47 Chengcheng Zhang update
7165da2 2020-09-27 11:50:12 Chengcheng Zhang update
351e2e4 2020-09-27 11:48:35 Chengcheng Zhang update
5a3fd4b 2020-09-27 11:47:19 Chengcheng Zhang update
31e97f1 2020-09-27 11:45:09 Chengcheng Zhang update

Recently edited Tags

Name Rev. Time Author
v1.1.0 4d4d516 2020-02-06 15:13:34 Paladz
v1.0.10 19d90c0 2019-10-24 16:01:34 Paladz
v1.0.9 00f7762 2019-04-22 16:08:29 Paladz
v1.0.8 56443ac 2019-03-04 16:41:00 Paladz
v1.0.7-hotfix-9e872c0 9e872c0 2018-12-11 14:29:19 Paladz
v1.0.7 96a0b65 2018-11-19 15:51:49 Paladz
v1.0.6rc1 a737e83 2018-10-08 14:48:16 Paladz
v1.0.5-hotfix-6568627 6568627 2018-09-03 10:43:34 Paladz
v1.0.5 2bc2396 2018-08-30 12:53:17 Paladz
v1.0.4 9082510 2018-07-26 12:28:30 Paladz
v1.0.4-simd 9082510 2018-07-26 12:28:30 Paladz
v1.0.3-hotfix-f53cde9 f53cde9 2018-07-14 19:30:45 yahtoo
v1.0.3 9ac0f65 2018-06-19 12:15:10 Paladz
v1.0.2 3089728 2018-05-14 15:33:20 yahtoo
v1.0.1 2c742b9 2018-04-28 14:53:38 Paladz
v1.0.0 23e4539 2018-04-24 14:19:55 Yongfeng LI
v0.5.1 0df7c91 2018-04-23 18:04:15 Paladz
v0.5.0 183ec4a 2018-04-20 19:15:09 Yongfeng LI
v0.4.7 a480139 2018-04-17 14:42:36 Yongfeng LI
v0.4.6 f7709ca 2018-04-12 16:14:15 Yongfeng LI
v0.4.5 fa4a9dd 2018-04-10 16:10:12 Yongfeng LI
v0.4.4 8a6b761 2018-04-10 14:56:31 Yongfeng LI
v0.4.3 f50aabb 2018-04-10 12:08:39 Yongfeng LI
v0.4.2 1d8b641 2018-04-02 21:35:53 Yongfeng LI
v0.4.1 92edf53 2018-03-26 19:35:27 Yongfeng LI
v0.4.0 62658d8 2018-02-01 16:02:14 Guanghua Guo
v0.3.0 3712c2a 2018-01-03 14:56:25 Guanghua Guo
v0.2.0 0eb1d10 2017-11-30 18:22:51 icodezjb
v0.1.4 41dc248 2017-11-06 18:04:15 Guanghua Guo
v0.1.3 fc6922b 2017-10-31 16:17:28 Guanghua Guo
0.1.2 1243faa 2017-10-21 18:45:26 Guanghua Guo
v0.1.1 ddd0e8b 2017-10-13 10:47:26 Guanghua Guo
v0.1.0 c8ee542 2017-09-29 10:55:22 Guanghua Guo


Name Rev. Time Author Message
zcc0721-patch-1 9f1992c 2020-09-27 12:22:57 Chengcheng Zhang Create go.yml
github-actions 88a407d 2020-09-27 12:10:18 Chengcheng Zhang update
golint 770dadb 2020-09-25 15:36:37 Chengcheng Zhang add golint
master bf6535e 2020-09-25 15:01:38 Chengcheng Zhang update (#1838)
dev-listaddress e41a26c 2020-07-14 17:43:57 欧阳 Merge branch 'master' into ...
dev-mov-test 2bd6dd6 2020-02-26 11:21:28 oys modify difficulty to 30s
dev_api_requeset_fix b366f71 2020-02-12 17:01:32 mars add body close for http req...
6dgree 4d4d516 2020-02-06 15:13:34 Paladz Merge pull request #1832 f...
prod cbc1797 2020-02-06 15:11:21 Paladz Merge pull request #1831 f...
dev 4ebbd46 2020-02-06 15:05:30 Paladz Merge pull request #1830 f...
changelog a3f6a0d 2020-02-06 14:34:36 Dkaiju docs(release note): update ...
version 4c4f03a 2020-02-05 14:11:56 Dkaiju feat(version): update versi...
checkpoint 083ba9e 2020-02-05 13:08:31 Dkaiju feat(consensus): update mai...
dev-mov 8057894 2020-01-13 19:15:51 Chengcheng Zhang fix CoinbasePendingBlockNum...
politic baf6eb8 2019-12-19 13:25:33 Zhiting Lin update dashboard: update wo...
politic-dashboard d05970c 2019-12-16 12:24:31 Zhiting Lin update dashboard with 3 tags.
modify_politic_list_transactions b8ba310 2019-12-16 12:09:38 mars add is_reverse
batch-vaildate-tx 13cf5c1 2019-11-29 17:06:44 paladz edit for code review
fix_politic_api 738623c 2019-11-27 11:20:49 Zhiting Lin update dashboard
update_doc d862e8a 2019-11-06 11:54:00 iczc update doc
hotfix_dockerfile_path 80b7119 2019-11-06 11:46:47 iczc update dockerfile
hotfix_import_path 9bca228 2019-11-04 16:41:14 iczc fix travis.yml go import path
release-notes 2fef758 2019-10-24 12:37:00 Zhiting Lin update release note
fix_p2p_log_level 727d644 2019-10-23 16:09:03 iczc modify p2p network log level
dev-readme a335a2d 2019-10-22 15:21:17 Chengcheng Zhang update flags
chaintx 1781af2 2019-10-21 19:20:44 oys modify chain tx fee
dashboard 8ab65e2 2019-10-21 17:50:55 Zhiting Lin update dashboard.
chain-tx-gas 0a22eef 2019-10-18 11:01:41 HAOYUatHZ fix
p2p 5d5c9ef 2019-10-12 21:01:45 Yahtoo Ma Only allow ed25519 pubkeys ...
lan_discv efd4a92 2019-09-26 12:18:09 Yahtoo Ma Specify lan discovery servi...
update-checkpoint c7a3cd1 2019-09-18 17:34:27 Chengcheng Zhang update checkpoint
new-checkpoint 941d772 2019-09-11 16:38:01 Chengcheng Zhang update
add-sign-data e35ae36 2019-09-04 16:47:32 Chengcheng Zhang add sign data
update-testnet-checkpoint 67c1afc 2019-09-04 16:13:03 Chengcheng Zhang update checkpoint and readme
ban_peer da4f422 2019-08-16 13:35:18 Yahtoo Ma fix ban node failed
dev_log 9a2e3f3 2019-08-15 11:58:29 wyjDoraemon log writer close
txpool 5566834 2019-08-13 16:07:03 Yahtoo Ma restore Tx back to Tx pool ...
orphan 68dd406 2019-08-13 12:42:57 Yahtoo Ma fix the orphan issue
fast_mine 2bb8224 2019-08-06 12:01:02 HAOYUatHZ so fk so good
security 640bd83 2019-08-05 11:10:24 Yahtoo Ma Del expired banned peers wh...
fixflag e9157c7 2019-07-31 15:37:39 iczc add missing parenthese
dev-gm 509f0b4 2019-06-18 18:16:04 Paladz Merge pull request #1758 f...
dev-gm-modify-seed de2676b 2019-06-18 16:32:57 Chengcheng Zhang update seed
claimTxOut 98f90fc 2019-05-09 15:51:25 HAOYUatHZ wip(claimOut): set gas for ...
wrap d29d859 2019-05-09 12:12:51 HAOYUatHZ init
globalidx 33a77d8 2019-04-25 15:27:46 HAOYUatHZ feat(wip): init chain.GetTx...
dev-entryid defcab2 2019-03-26 12:13:44 Chengcheng Zhang Merge branch 'dev' into dev...
test_stable d295a48 2019-03-02 14:28:45 paladz edit
testnet 6db5794 2019-03-02 11:37:58 Paladz Merge pull request #1611 f...
fix_conflict 94d139a 2019-02-28 11:53:28 Yahtoo Ma Merge remote-tracking branc...
schrodinger_cat 71f59d5 2019-01-14 21:05:40 Paladz Merge pull request #1556 f...
dev-contract 5460f4e 2019-01-11 16:13:02 oysheng optimise contract check for...
sidechain d9654ef 2018-11-22 16:49:54 wz merge dev



Build Status AGPL v3

Official golang implementation of the Bytom protocol.

Automated builds are available for stable releases and the unstable master branch. Binary archives are published at https://github.com/Bytom/bytom/releases.

What is Bytom?

Bytom is software designed to operate and connect to highly scalable blockchain networks confirming to the Bytom Blockchain Protocol, which allows partipicants to define, issue and transfer digitial assets on a multi-asset shared ledger. Please refer to the White Paper for more details.

In the current state bytom is able to:

  • Manage key, account as well as asset
  • Send transactions, i.e., issue, spend and retire asset

Installing with Homebrew

brew tap bytom/bytom && brew install bytom

Building from source


  • Go version 1.8 or higher, with $GOPATH set to your preferred directory


Ensure Go with the supported version is installed properly:

$ go version
  • Get the source code
$ git clone https://github.com/Bytom/bytom.git $GOPATH/src/github.com/bytom/bytom
  • Build source code
$ cd $GOPATH/src/github.com/bytom/bytom
$ make bytomd    # build bytomd
$ make bytomcli  # build bytomcli

When successfully building the project, the bytomd and bytomcli binary should be present in cmd/bytomd and cmd/bytomcli directory, respectively.


The Bytom project comes with several executables found in the cmd directory.

Command Description
bytomd bytomd command can help to initialize and launch bytom domain by custom parameters. bytomd --help for command line options.
bytomcli Our main Bytom CLI client. It is the entry point into the Bytom network (main-, test- or private net), capable of running as a full node archive node (retaining all historical state). It can be used by other processes as a gateway into the Bytom network via JSON RPC endpoints exposed on top of HTTP, WebSocket and/or IPC transports. bytomcli --help and the bytomcli Wiki page for command line options.

Running bytom

Currently, bytom is still in active development and a ton of work needs to be done, but we also provide the following content for these eager to do something with bytom. This section won't cover all the commands of bytomd and bytomcli at length, for more information, please the help of every command, e.g., bytomcli help.


First of all, initialize the node:

$ cd ./cmd/bytomd
$ ./bytomd init --chain_id mainnet

There are three options for the flag --chain_id:

  • mainnet: connect to the mainnet.
  • testnet: connect to the testnet wisdom.
  • solonet: standalone mode.

After that, you'll see config.toml generated, then launch the node.


$ ./bytomd node

available flags for bytomd node:

      --auth.disable                     Disable rpc access authenticate
      --chain_id string                  Select network type
  -h, --help                             help for node
      --log_file string                  Log output file (default "log")
      --log_level string                 Select log level(debug, info, warn, error or fatal)
      --mining                           Enable mining
      --p2p.dial_timeout int             Set dial timeout (default 3)
      --p2p.handshake_timeout int        Set handshake timeout (default 30)
      --p2p.keep_dial string             Peers addresses try keeping connecting to, separated by ',' (for example ";")
      --p2p.laddr string                 Node listen address. ( means any interface, any port) (default "tcp://")
      --p2p.lan_discoverable             Whether the node can be discovered by nodes in the LAN (default true)
      --p2p.max_num_peers int            Set max num peers (default 50)
      --p2p.node_key string              Node key for p2p communication
      --p2p.proxy_address string         Connect via SOCKS5 proxy (eg.
      --p2p.proxy_password string        Password for proxy server
      --p2p.proxy_username string        Username for proxy server
      --p2p.seeds string                 Comma delimited host:port seed nodes
      --p2p.skip_upnp                    Skip UPNP configuration
      --prof_laddr string                Use http to profile bytomd programs
      --simd.enable                      Enable SIMD mechan for tensority
      --vault_mode                       Run in the offline enviroment
      --wallet.disable                   Disable wallet
      --wallet.rescan                    Rescan wallet
      --wallet.txindex                   Save global tx index
      --web.closed                       Lanch web browser or not
      --ws.max_num_concurrent_reqs int   Max number of concurrent websocket requests that may be processed concurrently (default 20)
      --ws.max_num_websockets int        Max number of websocket connections (default 25)

Global Flags:
      --home string   root directory for config and data
  -r, --root string   DEPRECATED. Use --home (default "/Users/zcc/Library/Application Support/Bytom")
      --trace         print out full stack trace on errors

Given the bytomd node is running, the general workflow is as follows:

  • create key, then you can create account and asset.
  • send transaction, i.e., build, sign and submit transaction.
  • query all kinds of information, let's say, avaliable key, account, key, balances, transactions, etc.

simd feature:

You could enable the simd feature to speed up the PoW verification (e.g., during mining and block verification) by simply:

bytomd node --simd.enable

To enable this feature you will need to compile from the source code by yourself, and make bytomd-simd.

What is more,

  • if you are using Mac, please make sure llvm is installed by brew install llvm.
  • if you are using Windows, please make sure mingw-w64 is installed and set up the PATH environment variable accordingly.

For more details about using bytomcli command please refer to API Reference


Access the dashboard:

$ open http://localhost:9888/

In Docker

Ensure your Docker version is 17.05 or higher.

$ docker build -t bytom .

For the usage please refer to running-in-docker-wiki.


Thank you for considering helping out with the source code! Any contributions are highly appreciated, and we are grateful for even the smallest of fixes!

If you run into an issue, feel free to bytom issues in this repository. We are glad to help!



Show on old repository browser