Skip to main content

Crate arknet_common

Crate arknet_common 

Source
Expand description

Shared types, errors, and utilities used across the arknet workspace.

This crate defines the vocabulary of the protocol: addresses, hashes, amounts, identifiers, error hierarchies, config schema, and serialization helpers. Every other crate in the workspace depends on it.

See docs/PROTOCOL_SPEC.md for canonical definitions and docs/SECURITY.md §12 for the post-quantum migration plan.

Re-exports§

pub use errors::CommonError;
pub use errors::Result;
pub use types::Address;
pub use types::Amount;
pub use types::ChannelId;
pub use types::Hash256;
pub use types::Height;
pub use types::JobId;
pub use types::KemScheme;
pub use types::NodeId;
pub use types::PoolId;
pub use types::PubKey;
pub use types::RoleBitmap;
pub use types::Signature;
pub use types::SignatureScheme;
pub use types::Timestamp;
pub use types::VrfScheme;
pub use types::ARK_SUPPLY_CAP;
pub use types::ATOMS_PER_ARK;

Modules§

config
Shared configuration loading.
errors
Error hierarchy shared across the workspace.
serialization
Serialization helpers for arknet.
types
Core primitive types used throughout arknet.