nstack
nstack is a stack-like merkle datastructure for storing and accessing indexed values.
Operations supported are add and remove at the end of the structure, and mutable access to indexed leaves.
Usage example
use Cardinality;
use NStack;
let mut nt = new;
nt.push;
nt.push;
// mutable references to the last element
if let Some = nt.nth_mut
assert_eq!;
assert_eq!;