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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nimlib-0.0.1.tar.gz | 174.0 kB | Without provenance | Details for nimlib-0.0.1.tar.gz |
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
|
Security for nimlib 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.