iconservice for python
Project description
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
- Version: python 3.6+
- 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
iconservice-1.0.3.tar.gz
(63.5 kB
view hashes)
Built Distribution
iconservice-1.0.3-py3-none-any.whl
(101.5 kB
view hashes)
Close
Hashes for iconservice-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6aa22c0a07997d0f5cf837f165bb5cbcdbf49a64fb2e1c267a9751cb68235ee |
|
MD5 | 3ca216f009853548fecb26b01cf3e4ad |
|
BLAKE2b-256 | d6f8ff6186d0edfeea1544c7e3a0c6959e7e8b3b8a26fc9c4650e0d880ae4651 |