ICON Service
ICON Service manage state of ICON node including ICX, SCOREs using LevelDB.
Before processing transactions, ICON Service check for syntax errors, balances, etc.
Installation
This chapter will explain how to install icon service engine on your system.
Requirements
ICON SCORE development and execution requires following environments.
- OS: MacOS, Linux
- Windows are not supported yet.
- Python
- Make Virtual Env for Python 3.6.5+ (recommended version, 3.7 is not supported)
- check your python version
$ python3 -V
- IDE: Pycharm is recommended.
Libraries
| name | description | github |
|---|---|---|
| LevelDB | ICON SCORE uses levelDB to store its states. | LevelDB GitHub |
| libsecp256k | ICON SCORE uses secp256k to sign and validate a digital signature. | secp256k GitHub |
Setup on MacOS
#install levelDB
$ brew install leveldb
# Create a working directory
$ mkdir work
$ cd work
# setup the python virtualenv development environment
$ virtualenv -p python3 venv
$ source venv/bin/activate
# Install the ICON SCORE dev tools
(venv) $ pip install iconservice
Setup on Linux
# Install levelDB
$ sudo apt-get install libleveldb1 libleveldb-dev
# Install libSecp256k
$ sudo apt-get install libsecp256k1-dev
# Create a working directory
$ mkdir work
$ cd work
# Setup the python virtualenv development environment
$ virtualenv -p python3 venv
$ source venv/bin/activate
# Install the ICON SCORE dev tools
(venv) $ pip install iconservice
Building source code
First, clone this project. Then go to the project folder and create a user environment and run build script.
$ virtualenv -p python3 venv # Create a virtual environment.
$ source venv/bin/activate # Enter the virtual environment.
(venv)$ ./build.sh # run build script
(venv)$ ls dist/ # check result wheel file
iconservice-x.x.x-py3-none-any.whl
Reference
License
This project follows the Apache 2.0 License. Please refer to LICENSE for details.
Metadata
Release files for iconservice 1.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iconservice-1.2.3.tar.gz | 76.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iconservice-1.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 193.8 kB
Release files / iconservice-1.2.3.tar.gz
| Download URL | iconservice-1.2.3.tar.gz |
|---|---|
| Size | 76.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f17e8b4220dd8141a2488fbec59c7bd0820ce2ab253465c0b1b2909da892c4bf
|
|
BLAKE2b-256 checksum How to use checksums |
16ebfb3224a96326a6be698134beb6226d209e93c7f6d8a65e03c3fb27428b9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Release files / iconservice-1.2.3-py3-none-any.whl
| Download URL | iconservice-1.2.3-py3-none-any.whl |
|---|---|
| Size | 117.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
406bc10f7639009b5c24705cec0dc4e69b9c5868da01922af29b38f3a21029d9
|
|
BLAKE2b-256 checksum How to use checksums |
ebf28458555da9582e31e475a51ab285073860ecb315cf8607f3ee269570e9b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|