Merk::prove and Merk::prove_unchecked take a &mut self receiver, which is unintuitive. The reason is that even though the tree structure isn't changed, the operations fetch nodes and cache them in memory. However, we should just use interior mutability to make this method more convenient to call.
Merk::prove
andMerk::prove_unchecked
take a&mut self
receiver, which is unintuitive. The reason is that even though the tree structure isn't changed, the operations fetch nodes and cache them in memory. However, we should just use interior mutability to make this method more convenient to call.