I tried using the rs_merkle, simple_merkle_tree but when I build the rust project with
cargo concordium build
I get errors like this (this is with simple_merkle_tree but rs_merkle is similar):
error[E0277]: the trait bound
&RandomAccessFile: WriteAt is not satisfied
141 | WriteAt::write_at(&mut &*self, pos, buf)
| ----------------- ^^^^^^^^^^^ the trait
WriteAt is not implemented for
| required by a bound introduced by this call
help: consider removing the leading
141 - WriteAt::write_at(&mut &*self, pos, buf)
141 + WriteAt::write_at(&*self, pos, buf)
When I tried merkle_light I received an error in the State structure because the merkle tree structure did not implement serialise.
Is there a standard rust crate to use for this or a internal implementation somewhere?