spartan-codec 0.1.0

A proof-of-concept encoder for the Subspace Network Blockchain based on the SLOTH permutation
Documentation
  • Coverage
  • 100%
    19 out of 19 items documented0 out of 11 items with examples
  • Size
  • Source code size: 27.45 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.28 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2m 36s Average build duration of successful builds.
  • all releases: 2m 36s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • autonomys/spartan-codec
    1 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nazar-pc

CI Crates.io Docs License

Overview

Notes: The code is un-audited and not production ready, use it at your own risk.

Subspace is a proof-of-storage blockchain that resolves the farmer's dilemma, to learn more read our whitepaper.

This is an adaptation of SLOTH (slow-timed hash function) into a time-asymmetric permutation using a standard CBC block cipher. This code is largely based on the C implementation used in PySloth which is the same as used in the paper.

Install

This crate requires Rust 1.51 or newer to compile.

If you have not previously installed the gmp_mpfr_sys crate, follow these instructions.

git clone https://github.com/subspace/spartan-codec.git
cd spartan-codec
cargo build

Run Tests

cargo test

Run Benches

TODO

Benches single block encode/decode time and full piece encode/decode time for each prime size.