Skip to main content

bittensor_core/
lib.rs

1//! The chain-defined compute core and native Rust SDK for Bittensor clients.
2//!
3//! Rust owns the chain-defined pieces (crypto, SCALE, extrinsic payloads,
4//! metadata digests) and now also exposes a thin native client and semantic
5//! transaction executor over those primitives. Binding crates may reuse the
6//! same client or expose only the compute surface to another language.
7//!
8//! See `sdk/bittensor-core-spec.md` for the full design.
9
10#[cfg(feature = "host")]
11pub mod client;
12pub mod codec;
13pub mod digest;
14pub mod error;
15pub mod keyfile_env;
16#[cfg(feature = "host")]
17pub mod keyfiles;
18pub mod keys;
19pub mod mlkem;
20#[cfg(feature = "host")]
21pub mod pow;
22pub mod runtime;
23pub mod signers;
24pub mod timelock;
25#[cfg(feature = "host")]
26pub mod transaction;
27
28#[cfg(feature = "host")]
29pub use client::Client;
30pub use error::CoreError;
31#[cfg(feature = "host")]
32pub use transaction::{Executor, IntentCall, Plan, Policy, SignerRole, Spend, Wallet};