Skip to main content

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

Metadata

Release files for nimlib 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nimlib 0.0.1
File Size Uploaded
nimlib-0.0.1.tar.gz 174.0 kB Details

Release files / nimlib-0.0.1.tar.gz

Download URL nimlib-0.0.1.tar.gz
Size 174.0 kB
Tags Source
SHA-256 checksum
How to use checksums
af0c1f3da95d4c0d53aea8f4f262f35da2bd31800a86e6e1d48ec0d169eff970
BLAKE2b-256 checksum
How to use checksums
9a66a6dea46a2d9d9b7e95137b6933a4cd00ba6b37f8b743e79a7c6d89117035
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.1

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page