{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/10"},{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/6"},{"label":"Scientific/Engineering","url":"https://skillfed.io/packages/category/scientific-engineering/5"},{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/14"},{"label":"Artificial Intelligence","url":"https://skillfed.io/packages/category/scientific-engineering-artificial-intelligence/6"},{"label":"Build Tools","url":"https://skillfed.io/packages/category/software-development-build-tools/3"},{"label":"Mathematics","url":"https://skillfed.io/packages/category/scientific-engineering-mathematics/2"}],"enrichment":{"capability":"Provides timelock encryption for Bittensor commit-reveal weight commitments and general-purpose data using drand randomness, with Rust core and Python bindings.","skillfed_tags":["bittensor-ecosystem","post-quantum-crypto"],"use_cases":["Encrypt validator weights in Bittensor subnets using commit-reveal to prevent gaming before the reveal epoch.","Build custom miners or tooling that need direct control over weight commitment encryption without SDK overhead.","Timelock-encrypt arbitrary secrets to be revealed after a specified number of blockchain blocks.","Implement post-quantum key encapsulation for NextKey rotation using ML-KEM-768.","Batch-decrypt multiple ciphertexts for the same drand round by fetching the signature once."],"what_it_does":"bittensor-drand is a Rust-backed Python library that encrypts weight commitments for Bittensor's commit-reveal mechanism using drand (distributed randomness) as a timelock. Version 2.0 replaces the prior modulo-based epoch math with a stateful epoch counter model, requiring epoch schedule state from the chain rather than manual tempo and block calculations. The library also provides general-purpose timelock encryption for arbitrary binary data and post-quantum ML-KEM-768 key encapsulation.\n\nThe package is designed for two use patterns: high-level integration via the Bittensor SDK (which handles epoch plumbing internally), or direct lower-level calls for custom clients and tooling. It includes functions to encrypt data for a specified number of blocks into the future, encrypt for a specific drand round, and decrypt with either auto-fetched or pre-supplied drand signatures. The Rust core ensures performance-critical encryption and decryption operations run efficiently.","worth_installing":"Yes, with caution. The library is feature-complete and carries no known vulnerabilities, with permissive MIT licensing and broad Python version support (3.10\u20133.14). However, the repository is archived and marked abandoned, meaning no active maintenance or bug fixes should be expected. Install only if you are committed to maintaining a local fork or can tolerate lack of upstream support. For active Bittensor development, prefer using the high-level SDK integration rather than direct library calls."},"id":"bittensor-drand","links":{"html":"https://skillfed.io/packages/bittensor-drand","md":"https://skillfed.io/packages/bittensor-drand.md","pypi":"https://pypi.org/project/bittensor-drand/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2026-06-18","license_spdx":null,"license_treatment":"permissive","name":"bittensor-drand","python_support":"supports_current","summary":"Rust-backed Python library for generating timelock-encrypted weight commitments for Bittensor's commit-reveal mechanism using drand randomness."},"popularity":{"monthly_downloads":281482,"position":8095,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.0.0"}
