• R/O
  • HTTP
  • SSH
  • HTTPS

bytom: 仓库概述

Official Go implementation of the Bytom protocol


Recent Commits RSS

Rev. 时间 作者 Message
0ca0784 2023-03-07 08:25:21 dependabot[bot] dependabot/go_modules/lib/golang.org/x/net/golang.org/x/crypto-0.1.0 Bump golang.org/x/crypto in /lib/golang.org/x/net Bumps...
6058b38 2023-02-25 16:55:29 dependabot[bot] dependabot/go_modules/golang.org/x/sys-0.1.0 Bump golang.org/x/sys from 0.0.0-20210412220455-f1c623a9...
4279155 2023-02-25 16:52:38 dependabot[bot] dependabot/go_modules/lib/golang.org/x/crypto/golang.org/x/sys-0.1.0 Bump golang.org/x/sys in /lib/golang.org/x/crypto Bumps...
155b9cb 2023-02-23 15:23:37 dependabot[bot] dependabot/go_modules/lib/golang.org/x/net/golang.org/x/text-0.3.8 Bump golang.org/x/text from 0.3.6 to 0.3.8 in /lib/golan...
bbcba3d 2022-10-14 18:10:27 yzb master delete some black utxo (#2129) Co-authored-by: yzb@exam...
b64fae8 2022-10-14 18:08:05 yzb@example.cn delete-some-black-utxo delete some black utxo
8fd472f 2022-10-14 18:01:52 yzb@example.cn delete some black utxo
2a82e60 2022-10-14 17:21:31 yzb@example.cn delete some black utxo
8277433 2022-10-10 18:02:11 yzb@example.cn delete some black utxo
6a8afbe 2022-10-09 16:01:47 yzb v2.0.7 add change log (#2128) Co-authored-by: yzb@example.cn <...

Recently edited Tags

名称 Rev. 时间 作者
v2.0.7 6a8afbe 2022-10-09 16:01:47 yzb
v2.0.6 af9fcb9 2021-09-15 11:21:13 DeKaiju
v2.0.5 bb29ea1 2021-09-06 17:41:20 DeKaiju
v2.0.4 7b07f58 2021-08-23 11:40:05 DeKaiju
v2.0.3 fe81ef3 2021-08-20 20:04:21 Paladz
v2.0.2 3f76ecf 2021-08-20 14:55:50 Paladz
v2.0.1 d86a52c 2021-08-20 10:19:17 Paladz
bytom2-prerelease a0d0956 2021-08-19 16:42:55 Paladz
2.0.0-alpha e63faee 2021-04-30 17:51:05 boomyl
v1.1.1 95db958 2020-12-23 10:36:24 DeKaiju
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

Branches

名称 Rev. 时间 作者 Message
dependabot/go_modules/lib/golang.org/x/net/golang.org/x/crypto-0.1.0 0ca0784 2023-03-07 08:25:21 dependabot[bot] Bump golang.org/x/crypto i...
dependabot/go_modules/golang.org/x/sys-0.1.0 6058b38 2023-02-25 16:55:29 dependabot[bot] Bump golang.org/x/sys from...
dependabot/go_modules/lib/golang.org/x/crypto/golang.org/x/sys-0.1.0 4279155 2023-02-25 16:52:38 dependabot[bot] Bump golang.org/x/sys in /...
dependabot/go_modules/lib/golang.org/x/net/golang.org/x/text-0.3.8 155b9cb 2023-02-23 15:23:37 dependabot[bot] Bump golang.org/x/text fro...
master bbcba3d 2022-10-14 18:10:27 yzb delete some black utxo (#2...
delete-some-black-utxo b64fae8 2022-10-14 18:08:05 yzb@example.cn delete some black utxo
fix-relese-yml 57bd98c 2022-10-09 15:47:09 yzb@example.cn fix release
makefile-windows 663d23f 2022-10-09 15:15:26 yzb@example.cn makefile: add windows
seeds 3676ed9 2022-10-09 12:22:37 yzb@example.cn change new seeds
black-utxo dce8e42 2022-10-08 17:51:08 yzb@example.cn black utxo
snapshoot 9e1eba9 2022-09-26 15:27:24 崔浩鑫 feat(modify): modify
bytom2-gm-dev 1ad8a9d 2021-11-19 15:26:59 LonelyPale update gm
bytom2-gm 111021a 2021-10-27 18:55:03 Poseidon Merge pull request #2118 f...
opt_trace_service d38c57c 2021-10-27 18:50:19 shenao78 recover code
nft-with-sig ce79e11 2021-10-22 11:53:43 hyl fix pk for sig
init-nft b954590 2021-09-29 18:03:50 paladz edit contract
add_trace_log_module d5f4687 2021-09-29 13:42:23 shenao78 add trace log module
fix_init_trace_service 654f05d 2021-09-29 12:06:25 shenao78 fix trace scheduler
fix_trace_scheduler c63b1c3 2021-09-22 15:05:06 shenao78 simplify save instance
fix_ended_instance a137641 2021-09-18 14:09:23 shenao78 fix_ended_instance
fix_tracer_in_test 43344c0 2021-09-17 16:23:44 shenao78 remove fmt import
trace_updater b6015c5 2021-09-16 11:30:15 shenao78 replace protocol.chain with...
fix_vm 1953867 2021-09-14 15:18:39 songxuexian change import
integrate_contract_trace dd13dc2 2021-09-14 14:53:06 shenao78 integrate contract tracer
contract_instance_infra 915ada5 2021-09-09 17:32:24 shenao78 merge master and fix conflict
trace_scheduler cc892ca 2021-09-08 17:45:32 shenao78 update go mod
apply_block_for_tracer 00a439f 2021-09-01 18:15:43 shenao78 opt code
contract_trace 20d2820 2021-08-31 18:16:43 shenao78 add new instance func
fix-bitpie-path 3e94c5e 2021-08-27 11:00:44 DeKaiju feat(wallet): function getB...
scout f5b24eb 2021-08-25 23:33:22 songxuexian add precognitive
fix-scan-address a5f1860 2021-08-25 16:21:56 DeKaiju fix(wallet): handle scan wa...
dynamic_vote_pending_num 90d7fd9 2021-08-24 15:44:55 shenao78 dynamic_vote_pending_num
go_mod 4ab6f21 2021-08-23 19:26:28 doraemon test go mod
dev-version 19515f4 2021-08-23 11:36:06 DeKaiju chore(version): change vers...
fix-utxo d7f6712 2021-08-22 19:46:31 DeKaiju fix(protocol): fix bug of f...
fix-time 72dda6d 2021-08-20 19:40:59 DeKaiju fix(time): fix bug of block...
init_btm_supply 2025f7a 2021-08-20 10:14:09 崔浩鑫 feat(init btm supply): init...
edit_configs 0b22244 2021-08-20 00:33:02 paladz edit prod config
btm2.0 b6bbed5 2021-08-19 14:45:44 wyjDoraemon veto input test (#1942) C...
init_btm_total 4291e06 2021-08-18 19:21:37 崔浩鑫 feat(modify): modify
statis_node 4531e4b 2021-08-18 15:01:28 崔浩鑫 feat(last height): last hei...
dev-bytom bac25b1 2021-08-13 14:43:11 Paladz Merge branch 'btm2.0' into...
modify_genesis_tx 454a966 2021-08-11 15:24:05 崔浩鑫 feat(modify): modify
address 977e011 2021-08-11 11:49:42 doraemon edit hrp
block_processer_time 3f7eb81 2021-08-09 20:12:11 doraemon fix bug
block_time 80f2e36 2021-08-09 18:23:24 doraemon fix block time
solonet_validator 27f1a4f 2021-08-09 15:40:39 doraemon fix solonet init xpub nil bug
fix-bcrp 436a3fa 2021-08-05 19:15:01 DeKaiju fix(bcrp): fix bug compare ...
makefile f473539 2021-08-05 14:52:03 songxuexian change makefile
fed_script a520f80 2021-08-05 11:30:11 doraemon edit fed script
uint256_version e496bbe 2021-08-04 18:17:01 doraemon change uint256 version
dev-vote-reward 06817f9 2021-07-30 11:54:12 DeKaiju refactor(toolbar): code ref...
edit_code 21cfcfa 2021-07-28 18:50:35 paladz small edit
justify_height c6dc908 2021-07-27 16:11:59 doraemon opt
delete_useless eec563c 2021-07-26 20:34:19 paladz delete the useless code
delete_change_address ba87f69 2021-07-26 16:23:28 paladz delete the weird code
veto_input_test 1fe7299 2021-07-23 18:41:18 Paladz Merge branch 'btm2.0' into...
btm2.0_api fefb96b 2021-07-22 16:40:21 Paladz Merge branch 'btm2.0' into...
btm2.0_cache_checkpoint ff28713 2021-07-22 11:00:38 崔浩鑫 feat(fix): fix save check p...
edit_config 11bef4d 2021-07-20 10:58:53 paladz edit the config
contractService 5e065cd 2021-07-19 19:40:23 hyl contract service init
btm2.0_genesis_tx 8cb31ae 2021-07-19 19:05:02 崔浩鑫 feat(modify test): moidfy t...
review_vm e2b6e53 2021-07-16 15:30:18 paladz fix veto, vote bug
edit_check_coinbase 374d80b 2021-07-16 12:22:21 paladz fix bug
mov_code ef6cce7 2021-07-15 17:15:52 Paladz Merge branch 'btm2.0' into...
genesis_tx_btm_issue_amount a4e1e96 2021-07-15 15:02:53 hauson feat(add genesis tx btm iss...
edit_bug 6d61b17 2021-07-12 01:27:34 paladz last small edit
reduce_validator f3817e3 2021-07-09 16:05:31 paladz reduce validator
edit_test 1388a94 2021-07-09 12:23:39 paladz fix miss continue
verify_source 94a7b0d 2021-07-09 11:49:16 paladz edit for code review
small_edit 4ee9046 2021-07-07 18:24:25 paladz edit for code review
mov_func 4521907 2021-07-06 21:04:51 paladz elegant
init_blocks d4330bd 2021-07-06 20:49:41 hauson feat(rfactore): refactor
verify_block_header_sign 48016bd 2021-07-06 11:23:59 shenao78 verify_block_header_sign
edit_checkpoint a5aa262 2021-07-05 22:07:02 paladz Merge branch 'btm2.0' into ...
fix_bug a8b8f71 2021-07-05 21:15:14 paladz fix reward bu
no_change 487cc22 2021-07-05 16:02:38 paladz don't use change
merge_func 106a4c4 2021-07-05 10:37:44 paladz merge with btm2.0
no_pow 151f7b0 2021-07-04 00:31:02 paladz remove proof of work
edit_apply_votes 094fe5c 2021-07-02 18:28:15 paladz edit apply votes
add_validator_for_get_block 7e60b79 2021-07-02 16:12:00 shenao78 add_validator_for_get_block
add_account_vote_api 8b2599e 2021-07-01 12:27:15 shenao78 Merge branch 'add_account_v...
tx_fee 9be6b9f 2021-07-01 12:01:46 paladz edit tx fee
edit_casper 47ddadf 2021-07-01 10:59:26 paladz edit for code review
add_node_xpub_for_net_info c0efc83 2021-06-30 14:55:17 shenao78 add_node_xpub_for_net_info
irreversible_block 1e13ce1 2021-06-25 15:51:54 doraemon api add irreversible height
apply_vote_to_utxo_view 9ecb280 2021-06-25 15:09:14 shenao78 fix conflict
edit_sup_link 603c6b7 2021-06-24 13:13:09 paladz edit dup sup link struct
casper_config f781009 2021-06-24 11:27:55 shenao78 Merge branch 'btm2.0' into ...
register_contract b7ce47b 2021-06-23 20:23:54 Paladz Merge branch 'btm2.0' into...
elegant_vm b4da11c 2021-06-21 21:15:49 paladz edit for elegant
remove_pop_int64 2eccb08 2021-06-18 19:00:50 Paladz Merge branch 'btm2.0' into...
remove_finalized_block_header 00ae9fa 2021-06-18 18:38:07 shenao78 merge btm2.0
cond_lock 1ec02ce 2021-06-18 18:08:28 doraemon fix cond lock and justified...
remove_block_index 54238af 2021-06-18 16:36:42 doraemon ci ci
remove_uint64 3f1d6e8 2021-06-18 15:05:37 Paladz Merge branch 'btm2.0' into...
remove_push_int64 8af13c6 2021-06-17 23:05:28 Paladz Merge branch 'btm2.0' into...
block_index 2284d49 2021-06-17 22:07:36 doraemon delete chain best node
replace_block_index 8d305b5 2021-06-17 20:11:52 Paladz Merge branch 'btm2.0' into...
auth_verification_test 674d203 2021-06-17 18:08:53 shenao78 add rollback test

README.md

Bytom

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

Requirements

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

Installation

Ensure Go with the supported version is installed properly:

$ go version
$ go env GOROOT GOPATH
  • 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.

Executables

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.

Initialize

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.

launch

$ ./bytomd node

available flags for bytomd node:

Flags:
      --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)
      --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 "1.1.1.1:46657;2.2.2.2:46658")
      --p2p.laddr string                 Node listen address. (0.0.0.0:0 means any interface, any port) (default "tcp://0.0.0.0:46656")
      --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. 127.0.0.1:1086)
      --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
      --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.

Dashboard

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.

Contributing

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!

License

AGPL v3

Show on old repository browser