Crates.io | spartan-codec |
lib.rs | spartan-codec |
version | 0.1.0 |
source | src |
created_at | 2021-04-18 20:18:43.485795 |
updated_at | 2021-04-18 20:18:43.485795 |
description | A proof-of-concept encoder for the Subspace Network Blockchain based on the SLOTH permutation |
homepage | |
repository | https://github.com/subspace/spartan-codec |
max_upload_size | |
id | 386335 |
size | 19,864 |
spartan-codec
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.
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
cargo test
TODO
Benches single block encode/decode time and full piece encode/decode time for each prime size.