Uses of Interface
io.hotmoka.patricia.ToBytes

  • Uses of ToBytes in io.hotmoka.patricia

    Methods in io.hotmoka.patricia with parameters of type ToBytes
    Modifier and Type
    Method
    Description
    static <Key, Value>
    PatriciaTrie<Key,Value,?>
    PatriciaTries.of(KeyValueStore store, byte[] root, io.hotmoka.crypto.api.Hasher<? super Key> hasherForKeys, io.hotmoka.crypto.api.HashingAlgorithm hashingForNodes, byte[] hashOfEmpty, ToBytes<? super Value> valueToBytes, FromBytes<? extends Value> bytesToValue)
    Yields a Merkle-Patricia trie supported by the underlying store, using the given hashing algorithm to hash nodes, keys and the values.
    Constructors in io.hotmoka.patricia with parameters of type ToBytes
    Modifier
    Constructor
    Description
    protected
    AbstractPatriciaTrie(KeyValueStore store, byte[] root, io.hotmoka.crypto.api.Hasher<? super Key> hasherForKeys, io.hotmoka.crypto.api.HashingAlgorithm hashingForNodes, byte[] hashOfEmpty, ToBytes<? super Value> valueToBytes, FromBytes<? extends Value> bytesToValue)
    Creates an empty Merkle-Patricia trie supported by the given underlying store, using the given hashing algorithms to hash nodes and values.