MutAnt
MutAnt is a private, mutable key-value store built on Autonomi network scratchpads, offering resilient, cost-efficient, and async-first storage.
Why MutAnt?
Addressing on-chain storage limitations, MutAnt:
- Splits large data into scratchpad-sized chunks.
- Resumes interrupted transfers automatically.
- Recycles freed pads to reduce costs.
- Caches index locally for fast lookups and syncs remotely.
- Adapts to business logic with pluggable backends.
Key Highlights
- Chunk Management: Configurable pad sizes with automatic chunking and reassembly.
- Resumption & Retries: Transparent retry logic and transfer continuation.
- Cost Efficiency: Reuses freed pads to minimize redundant on-chain writes.
- Flexible Interfaces: Rust SDK (
mutant-lib
) and CLI tool (mutant
). - Async-First: Built on
tokio
andasync/await
. - Extensible Architecture: Modular design allows custom network layers.
Quickstart
Add to Cargo.toml
:
= "0.4.0"
use MutAnt;
use StorageMode;
use Result;
async
Fetching Public Data (without a private key)
If you only need to fetch data that was stored publicly (using put
), you can
initialize a lightweight MutAnt
instance without providing a private key:
use MutAnt;
use ScratchpadAddress;
use Result;
async
Note: An instance created with init_public
can only be used for get_public
.
Other operations requiring a private key (like put
, get
, remove
, etc.)
will fail.
Resources & Support
- API docs : https://docs.rs/mutant_lib
- CLI help :
mutant --help
- Repository : https://github.com/Champii/MutAnt
- Issues : https://github.com/Champii/MutAnt/issues