nimble libraries
Project description
Nimble Libraries
It provides common libraries reusable by miners, validators and network operators.
Development
Virtual Env
# create env & activate
make env
source ./nbenv/bin/activate
# install dependencies
python3 -m pip install -e ./
# clean env
deactivate
make clean
Install
# pip install option
$ pip3 install nimlib
# test install from python
import nimlib
# cuda dependency for cubit install - python 3.10 example
pip install https://github.com/nimble-technology/cubit/releases/download/v1.1.2/cubit-1.1.2-cp310-cp310-linux_x86_64.whl
Wallet
Each wallet has a coldkey. Each coldkey may contain multiple hotkeys and each hotkey belong to a single coldkey. Coldkeys are for secure fund management like transfer, staking, and fund storage. Hotkeys are for all online operations like signing, mining and validating.
# wallet creation in python
import nimlib
wallet = nimlib.wallet()
wallet.create_new_coldkey()
wallet.create_new_hotkey()
# Sign data with the keypair.
wallet.coldkey.sign( data )
Release (Core Contributors Only)
Run the following command to create dist folder
python setup.py sdist
Then use the following command to publish to pypi
twine upload dist/nimlib-{version}.tar.gz
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
nimlib-0.0.1.tar.gz
(174.0 kB
view details)
File details
Details for the file nimlib-0.0.1.tar.gz
.
File metadata
- Download URL: nimlib-0.0.1.tar.gz
- Upload date:
- Size: 174.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af0c1f3da95d4c0d53aea8f4f262f35da2bd31800a86e6e1d48ec0d169eff970 |
|
MD5 | 59faeb19a9718ffdea6ddc9d8003aabc |
|
BLAKE2b-256 | 9a66a6dea46a2d9d9b7e95137b6933a4cd00ba6b37f8b743e79a7c6d89117035 |