Menu

Tree [bbcba3] master /
 History

HTTPS access


File Date Author Commit
 .github 2022-10-09 yzb yzb [6a8afb] add change log (#2128)
 accesstoken 2021-07-26 Paladz Paladz [49148e] delete the weird code (#2052)
 account 2021-07-27 Paladz Paladz [e66093] delete the useless code (#2054)
 api 2021-09-17 Poseidon Poseidon [14165a] fix_tracer_in_test (#2110)
 asset 2021-07-27 Paladz Paladz [e66093] delete the useless code (#2054)
 blockchain 2021-08-06 DeKaiju DeKaiju [b9e193] fix(bcrp): fix bug compare asset id with consen...
 cmd 2021-08-13 DeKaiju DeKaiju [fa6489] chore(cli): delete getDifficultyCmd and getHash...
 common 2021-08-11 wyjDoraemon wyjDoraemon [a1d96c] edit hrp (#2071)
 config 2022-10-09 yzb yzb [8b7177] change mainnet seeds (#2124)
 consensus 2021-09-06 Poseidon Poseidon [43df8a] dynamic_vote_pending_num (#2098)
 contract 2021-10-27 shenao78 shenao78 [62a9d7] opt trace service
 crypto 2021-06-10 wyjDoraemon wyjDoraemon [695dc3] delete useless code (#1960)
 dashboard 2021-09-06 岛书 岛书 [5b47f9] update dashboard (#2101)
 database 2021-07-28 Paladz Paladz [5adb98] small edit (#2057)
 docs 2021-05-25 Poseidon Poseidon [e922f7] 2.0_beta_relese_node (#1939)
 encoding 2019-11-04 Zhongchun Cao Zhongchun Cao [3ad514] modify import path (#1805)
 env 2017-08-23 gguoss gguoss [10ee9e] Added env dir.
 errors 2018-06-09 oysheng oysheng [61cdf1] modify error response (#1039)
 event 2021-07-08 Paladz Paladz [f823e3] edit the event channel (#2021)
 lib 2021-06-24 xuexiansong xuexiansong [a42ba6] change go mod (#1987)
 log 2019-11-04 Zhongchun Cao Zhongchun Cao [3ad514] modify import path (#1805)
 math 2021-04-01 xuexiansong xuexiansong [6fa688] Feat(BVM): change op1Add use uint256 (#1846)
 net 2021-03-31 jacksoom jacksoom [0edeef] feat(bytom2.0 net): fix unit test and other (#1...
 netsync 2021-07-09 Paladz Paladz [f9defe] verify source and target height (#2023)
 node 2021-09-17 Poseidon Poseidon [14165a] fix_tracer_in_test (#2110)
 p2p 2021-08-16 Poseidon Poseidon [c9e5ac] add more seeds (#2080)
 proposal 2021-08-09 wyjDoraemon wyjDoraemon [25d7f4] fix bug (#2070)
 protocol 2022-10-14 yzb yzb [bbcba3] delete some black utxo (#2129)
 test 2021-08-18 DeKaiju DeKaiju [4cd67e] fix(bcrp): fix bcrp when apply block and detach...
 testcontrol 2021-04-13 hauson hauson [674bf0] Rm tx status fail (#1882)
 testutil 2021-04-21 jacksoom jacksoom [a90dec] Feat(ed25519): replace with crypto/ed25519 (#1907)
 toolbar 2021-08-13 DeKaiju DeKaiju [1f5654] feat(vote reward): build chain transaction send...
 util 2019-11-04 Zhongchun Cao Zhongchun Cao [3ad514] modify import path (#1805)
 version 2022-10-14 yzb yzb [bbcba3] delete some black utxo (#2129)
 wallet 2021-09-06 Poseidon Poseidon [43df8a] dynamic_vote_pending_num (#2098)
 .gitignore 2018-08-08 Paladz Paladz [96bd4e] txpool handle orphan (#1228)
 .travis.yml 2019-11-04 Zhongchun Cao Zhongchun Cao [3ad514] modify import path (#1805)
 Dockerfile 2019-11-06 Zhongchun Cao Zhongchun Cao [28d0c9] update dockerfile (#1806)
 LICENSE 2017-09-23 gguoss gguoss [7402df] Added LICENSE.
 Makefile 2022-10-09 yzb yzb [631c86] makefile: add windows (#2126)
 README.md 2021-07-15 boomyl boomyl [277d5b] remove unused config simd (#2037)
 go.mod 2021-09-09 Poseidon Poseidon [0fd3e9] add trace scheduler (#2103)
 go.sum 2021-08-04 wyjDoraemon wyjDoraemon [1a8a72] change uint256 version (#2063)

Read Me

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

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.