This library implements the Skip Ratchet paper. Skip ratchet is a data structure for deriving keys that maintain backward secrecy. Unlike hash chains, this data structure is capable of efficiently making large leaps in hash count.
Usage
Creating a new ratchet and advancing it.
use Ratchet;
let mut ratchet = new;
ratchet.inc_by;
println!;
Getting the previous versions of a ratchet.
use Ratchet;
let mut old_ratchet = new;
old_ratchet.inc_by;
let mut recent_ratchet = old.clone;
recent_ratchet.inc_by;
for revision in recent_ratchet.previous
Building the Project
-
Clone the repository.
-
Change directory
-
Run tests