[−][src]Trait exonum_merkledb::indexes::proof_map::ToProofPath
Trait defining key transformation into the format usable in Merkle Patricia trees.
Merkle Patricia trees can only use keys of a fixed byte length (32 bytes).
Since maps frequently have a key type that does not provide an obvious mapping to [u8; 32]
,
keys need to be transformed. This transform is encapsulated in the ToProofPath
trait.
There are two supported transforms:
Required methods
fn transform_key(key: &K) -> ProofPath
Transforms the provided key.