• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/H17-May-2021-14352

.tx/H17-May-2021-86

build-aux/m4/H17-May-2021-3,3733,020

build_msvc/H03-May-2022-2,2431,845

ci/H17-May-2021-1,011647

contrib/H17-May-2021-10,1908,016

depends/H17-May-2021-6,2125,331

doc/H03-May-2022-9,8437,725

share/H17-May-2021-621362

src/H03-May-2022-786,313650,208

test/H17-May-2021-54,87840,973

.appveyor.ymlH A D17-May-20213.4 KiB6665

.cirrus.ymlH A D17-May-2021708 2423

.gitattributesH A D17-May-202135 21

.gitignoreH A D17-May-20212 KiB160133

.gitmodulesH A D17-May-2021129 54

.python-versionH A D17-May-20216 21

.style.yapfH A D17-May-20217.8 KiB262215

.travis.ymlH A D17-May-20216.7 KiB170155

CONTRIBUTING.mdH A D17-May-202117.5 KiB363277

COPYINGH A D17-May-20211.1 KiB2318

Changelog.mdH A D17-May-2021408 189

INSTALL.mdH A D17-May-2021161 64

Makefile.amH A D17-May-202112.2 KiB345272

README.mdH A D17-May-202113.5 KiB287190

SECURITY.mdH A D17-May-2021850 2113

autogen.shH A D17-May-2021546 1711

configure.acH A D17-May-202161.5 KiB1,7371,524

libbitcoinconsensus.pc.inH A D17-May-2021267 119

README.md

1What is Qtum?
2-------------
3
4Qtum is a decentralized blockchain project built on Bitcoin's UTXO model, with support for Ethereum Virtual Machine based smart contracts, and secured by a proof of stake consensus model. It achieves this through the revolutionary Account Abstraction Layer which allows the EVM to communicate with Qtum's Bitcoin-like UTXO blockchain. For more general information about Qtum as well as links to join our community, go to https://qtum.org
5
6Welcome to the Qtum Ignition Main Network. This is the main network where the tokens hold value and should be guarded very carefully. If you are testing the network, or developing unstable software on Qtum, we highly recommend using either testnet or regtest mode.
7
8The major features of the Qtum network include:
9
101. Compatibility with the Ethereum Virtual Machine, which allows for compatibility with most existing Solidity based smart contracts. No special solidity compiler is required to deploy your smart contract to Qtum.
112. A Proof of Stake consensus system which is optimized for Qtum's contract model. Any user can stake and help to secure the network. There is no voting, master nodes, or minimum amount required. There have been transactions as small as 2 Qtum that have created blocks in the past. Staking from smart contracts is under development.
123. The Decentralized Governance Protocol is completely implemented and functional, which allows certain network parameters to be modified without a fork or other network disruption. This currently controls parameters like block size, gas prices, etc.
134. Uses the UTXO transaction model and is compatible with Bitcoin, allowing for existing tooling and workflows to be used with Qtum. This allows for the infamous SPV protocol to be used which is ideal for light wallets on mobile phones and IoT devices.
14
15Note: Qtum Core is considered beta software. We make no warranties or guarantees of its security or stability.
16
17Qtum Documentation and Usage Resources
18---------------
19
20These are some resources that might be helpful in understanding Qtum.
21
22Basic usage resources:
23
24* [User guide](https://docs.qtum.site/en/)
25* [Qtum-Qt Wallet Tutorial](https://github.com/qtumproject/documents/tree/master/en/Qtum-Wallet-Tutorial#qtum-qt-wallet-tutorial)
26* [Qtum staking tutorial](https://github.com/qtumproject/documents/tree/master/en/How-to-Stake-with-Qtum)
27* [Qtum tutorial on Raspberry Pi](https://github.com/qtumproject/documents/tree/master/en/Qtum-on-Raspberry-Pi)
28* [Running Qtum on Amazon AWS using Qtum AMI](https://github.com/qtumproject/documents/tree/master/en/Qtum-AWS)
29* [Encrypting and unlocking wallet](https://github.com/qtumproject/documents/tree/master/en/Encrypt-and-Unlock-Qtum-Wallet)
30* [Testnet guide](https://github.com/qtumproject/documents/blob/master/en/Testnet-User-Guide.md)
31* [Block explorer](https://qtum.info), [Older explorer](https://explorer.qtum.org)
32
33
34Development resources:
35
36* [Qtum Book - A Developer's Guide To QTUM](http://book.qtum.site/en/)
37* [Qtum contract usage](https://docs.qtum.site/en/QRC20-Token-Introduce.html)
38* [Deploying a custom token to Qtum](https://blog.qtum.org/qtum-custom-token-walkthrough-467d725fa27d)
39* [QtumJS document](https://qtumproject.github.io/qtumjs-doc/)
40* [Smart contract ICO example](http://book.qtum.site/en/part3/ico.htm)
41* [Early example faucet contract](http://earlz.net/view/2017/06/30/2144/the-qtum-sparknet-faucet)
42
43General Info about Qtum:
44
45* [CIRCLERESEARCH Qtum Primer](https://www.circle.com/marketing/pdfs/research/circle-research-qtum.pdf)
46* [Qtum's PoS vs CASPER](https://www.reddit.com/r/Qtum/comments/788oa5/qtums_pos_vs_casper_and_the_nothingatstake_problem/)
47* [Technical article explaining Qtum's PoS model in depth](http://earlz.net/view/2017/07/27/1904/the-missing-explanation-of-proof-of-stake-version)
48
49
50Developer's Tools
51-----------------
52
53* Smart contract deployment tool
54  * https://github.com/qtumproject/solar
55* DApp JavaScript Library
56  * https://github.com/qtumproject/qtumjs
57* A toolkit for building qtum light wallets
58  * https://github.com/qtumproject/qtumjs-wallet
59* CORS qtumd RPC proxy for DApp
60  * https://github.com/qtumproject/qtumportal
61* Docker images for running qtum services
62  * https://github.com/qtumproject/qtum-docker
63* qtum.info API that powers the block explorer and the QTUM Web wallet
64  * https://github.com/qtumproject/qtuminfo-api#qtuminfo-api-documentation
65
66
67What is Qtum Core?
68------------------
69
70Qtum Core is our primary mainnet wallet. It implements a full node and is capable of storing, validating, and distributing all history of the Qtum network. Qtum Core is considered the reference implementation for the Qtum network.
71
72Qtum Core currently implements the following:
73
74* Sending/Receiving QTUM coins
75* Sending/Receiving QRC20 tokens on the Qtum network
76* Staking and creating blocks for the Qtum network
77* Creating and interacting with smart contracts
78* Running a full node for distributing the blockchain to other users
79* "Prune" mode, which minimizes disk usage
80* Regtest mode, which enables developers to very quickly build their own private Qtum network for Dapp testing
81* Testnet mode, using the public Qtum Testnet, with faucet available
82* Compatibility with the Bitcoin Core set of RPC commands and APIs
83* Full SegWit capability with p2sh-segwit (legacy) and bech32 (native) addresses
84
85Alternative Wallets
86-------------------
87
88Qtum Core uses a full node model, and thus requires downloading the entire blockchain. If you do not need the entire blockchain, and do not intend on developing smart contracts, it may be more ideal to use an alternative wallet such as one of our light wallets that can be synchronized in a matter of seconds.
89
90### Qtum Web Wallet
91
92A browser wallet that supports the Ledger hardware wallet, offline cold wallet, and restoration from mobile wallets.
93
94Web site https://qtumwallet.org
95
96User documentation https://github.com/qtumproject/documents/tree/master/en/QTUM-WebWallet-usage
97
98### Qtum Electrum
99
100A light wallet that supports the Ledger and Trezor hardware wallets and is based on the well-known Electrum wallet software.
101
102Download: https://github.com/qtumproject/qtum-electrum/releases
103
104### iOS and Android Wallets
105
106These wallets run on mobile devices and synchronize quickly.
107
108Android Download: https://play.google.com/store/apps/details?id=org.qtum.newwallet
109
110iOS Download: https://github.com/qtumproject/qtum-ios (open source, deprecated)
111
112### Ledger Chrome Wallet
113
114This light wallet runs in your Chrome browser as a browser extension. This wallet requires a Ledger device to use.
115
116How to install: https://ledger.zendesk.com/hc/en-us/articles/115003776913-How-to-install-and-use-Qtum-with-Ledger
117
118
119### Community Resources
120
121Make sure to check out these resources as well for more information and to keep up to date with all the latest news about Qtum. At least 1 developer is always around, so if you're developing on Qtum and need help, we'd love to welcome you to our community.
122
123*	@Qtum on Twitter https://twitter.com/qtum
124* Qtum blog https://blog.qtum.org/
125*	Qtum Telegram Group https://t.me/qtumofficial, other languages available
126* Qtum Discord https://discordapp.com/invite/wRfmkQ9
127*	/r/Qtum on Reddit https://www.reddit.com/r/Qtum/
128*	Qtum.org https://qtum.org
129*	Qtum on Facebook https://www.facebook.com/QtumOfficial/
130*	Qtum Forum https://forum.qtum.org
131
132### Qtum Smart Contract Limitations
133
134*	EVM smart contracts cannot receive coins from or send coins to any address type other than pay-to-pubkeyhash (starts with Q) addresses. This is due to a limitation in the EVM
135*	Contracts are not allowed to create contracts with an initial endowment of coins. The contract must first be created, and then be sent coins in a separate transaction. Humans are also not allowed to create contracts with an initial endowment of coins.
136*	Although all of the infrastructure is present, Qtum Core does not currently parse Solidity event data. You must parse this yourself using either searchlogs or -record-log-opcodes features.
137*	It is not possible to send a contract coins without also executing the contract. This is also the case of Ethereum. This was promised in earlier discussions and technically does work, but due to lack of time for testing this feature was disabled. We hope to reenable this feature with release of the x86 virtual machine in 2020.
138*	In Qtum there can be multiple addresses used to create a proof-of-stake block. However, the EVM can only see the first output using the coinbase operation in Solidity (this address is also the one registered for the continuous staker rewards after 500 blocks).
139
140----------
141
142# Building Qtum Core
143
144### Validate and Reproduce Binaries
145
146Qtum uses a tool called Gitian to make reproducible builds that can be verified by anyone. Instructions on setting up a Gitian VM and building Qtum are provided in [Gitan Building](https://github.com/qtumproject/qtum/blob/master/doc/gitian-building.md)
147
148### Build on Ubuntu
149
150This is a quick start script for compiling Qtum on Ubuntu
151
152
153    sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils git cmake libboost-all-dev libgmp3-dev
154    sudo apt-get install software-properties-common
155    sudo add-apt-repository ppa:bitcoin/bitcoin
156    sudo apt-get update
157    sudo apt-get install libdb4.8-dev libdb4.8++-dev
158
159    # If you want to build the Qt GUI:
160    sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler qrencode
161
162    git clone https://github.com/qtumproject/qtum --recursive
163    cd qtum
164
165    # Note autogen will prompt to install some more dependencies if needed
166    ./autogen.sh
167    ./configure
168    make -j2
169
170### Build on CentOS
171
172Here is a brief description for compiling Qtum on CentOS, for more details please refer to [the specific document](https://github.com/qtumproject/qtum/blob/master/doc/build-unix.md)
173
174    # Compiling boost manually
175    sudo yum install python-devel bzip2-devel
176    git clone https://github.com/boostorg/boost.git
177    cd boost
178    git checkout boost-1.66.0
179    git submodule update --init --recursive
180    ./bootstrap.sh --prefix=/usr --libdir=/usr/lib64
181    ./b2 headers
182    sudo ./b2 -j4 install
183
184    # Installing Dependencies for Qtum
185    sudo yum install epel-release
186    sudo yum install libtool libdb4-cxx-devel openssl-devel libevent-devel gmp-devel
187
188    # If you want to build the Qt GUI:
189    sudo yum install qt5-qttools-devel protobuf-devel qrencode-devel
190
191    # Building Qtum
192    git clone --recursive https://github.com/qtumproject/qtum.git
193    cd qtum
194    ./autogen.sh
195    ./configure
196    make -j4
197
198### Build on Mac OS
199
200The commands in this guide should be executed in a Terminal application.
201The built-in one is located in `/Applications/Utilities/Terminal.app`.
202
203#### Preparation
204
205Install the Mac OS command line tools:
206
207`xcode-select --install`
208
209When the popup appears, click `Install`.
210
211Then install [Homebrew](https://brew.sh).
212
213#### Dependencies
214
215    brew install cmake automake berkeley-db4 libtool boost miniupnpc openssl pkg-config protobuf qt5 libevent imagemagick librsvg qrencode gmp
216
217NOTE: Building with Qt4 is still supported, however, could result in a broken UI. Building with Qt5 is recommended.
218
219#### Build Qtum Core
220
2211. Clone the qtum source code and cd into `qtum`
222
223        git clone --recursive https://github.com/qtumproject/qtum.git
224        cd qtum
225
2262.  Build qtum-core:
227
228    Configure and build the headless qtum binaries as well as the GUI (if Qt is found).
229
230    You can disable the GUI build by passing `--without-gui` to configure.
231
232        ./autogen.sh
233        ./configure
234        make
235
2363.  It is recommended to build and run the unit tests:
237
238        make check
239
240### Run
241
242Then you can either run the command-line daemon using `src/qtumd` and `src/qtum-cli`, or you can run the Qt GUI using `src/qt/qtum-qt`
243
244License
245-------
246
247Qtum is GPLv3 licensed.
248
249Development Process
250-------------------
251
252The `master` branch is regularly built and tested, but is not guaranteed to be
253completely stable. [Tags](https://github.com/qtumproject/qtum/tags) are created
254regularly to indicate new official, stable release versions of Qtum.
255
256The contribution workflow is described in [CONTRIBUTING.md](https://github.com/qtumproject/qtum/blob/master/CONTRIBUTING.md)
257and useful hints for developers can be found in [doc/developer-notes.md](doc/developer-notes.md).
258
259Testing
260-------
261
262Testing and code review is the bottleneck for development; we get more pull
263requests than we can review and test on short notice. Please be patient and help out by testing
264other people's pull requests, and remember this is a security-critical project where any mistake might cost people
265lots of money.
266
267### Automated Testing
268
269Developers are strongly encouraged to write [unit tests](src/test/README.md) for new code, and to
270submit new unit tests for old code. Unit tests can be compiled and run
271(assuming they weren't disabled in configure) with: `make check`. Further details on running
272and extending unit tests can be found in [/src/test/README.md](/src/test/README.md).
273
274There are also [regression and integration tests](/test), written
275in Python, that are run automatically on the build server.
276These tests can be run (if the [test dependencies](/test) are installed) with: `test/functional/test_runner.py`
277
278The Travis CI system makes sure that every pull request is built for Windows, Linux, and macOS, and that unit/sanity tests are run automatically.
279
280### Manual Quality Assurance (QA) Testing
281
282Changes should be tested by somebody other than the developer who wrote the
283code. This is especially important for large or high-risk changes. It is useful
284to add a test plan to the pull request description if testing the changes is
285not straightforward.
286
287