Crate spartan_codec

Source
Expand description

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.

Structs§

Spartan
Spartan struct used to encode and validate

Type Aliases§

Spartan64bit4096
Spartan configured for 64-bit prime and 4096-byte genesis piece size
Spartan128bit4096
Spartan configured for 128-bit prime and 4096-byte genesis piece size
Spartan256bit4096
Spartan configured for 256-bit prime and 4096-byte genesis piece size
Spartan512bit4096
Spartan configured for 512-bit prime and 4096-byte genesis piece size
Spartan1024bit4096
Spartan configured for 1024-bit prime and 4096-byte genesis piece size
Spartan2048bit4096
Spartan configured for 2048-bit prime and 4096-byte genesis piece size
Spartan4096bit4096
Spartan configured for 4096-bit prime and 4096-byte genesis piece size