Skip to main content

Crate nanosol

Crate nanosol 

Source
Expand description

Minimal Solana primitives for the ZeroClaw Solana tool plugins.

nanosol deliberately contains no signer, RPC client, async runtime, or generic SDK surface. Its M1 scope is exact amount arithmetic, public keys and PDAs, the instruction subset required by the planned tools, legacy/v0 message and unsigned-transaction codecs, and deterministic output shaping.

Re-exports§

pub use error::Error;

Modules§

amount
Exact decimal-string amount conversion. No floating-point values are used.
compact_u16
Solana’s canonical one-to-three-byte compact-u16 codec.
error
Unified error wrapper for callers that do not need module-specific errors.
inspect
Semantic decoding for the exact instruction subset built by M3.
instruction
Instruction types and the exact subset required by the planned plugins.
message
Legacy and v0 (without address lookup tables) message and transaction codecs.
mint
Strict SPL Mint parsing and minimal Token-2022 TLV inspection.
nonce
Strict parsing of System Program durable-nonce account data.
pubkey
Solana public keys, program-derived addresses, and associated token accounts.
reference
Deterministic reconciliation references shared by Solana payment tools.
rpc
Deterministic JSON-RPC request builders and strict response parsers.
shape
Deterministic helpers for compact, single-line, injection-resistant output.
signature
Transaction signatures: strict base58 parsing and canonical formatting.