* refactor: Destructure imports together from same source in example util-crypto 01 * refactor: Destructure imports together example util-crypto 02. Avoid using default import. Show data to user * refactor: Destructure imports together example util-crypto 03. Show data to user * refactor: Split import over two lines looks cleaner * fix: Address review comments. Update dependencies in examples
Trie-DB Examples
Here you will find a list of examples that takes you through the basics of creating a Patricia Trie, creating key/value pair branches, retrieving the value of a branch with its key, deleting branches, saving the root node hash to a variable and then later setting the root node hash to restore the trie to its previous state, duplicating the trie with a snapshot, showing the size of the trie and other node information, and emptying, closing, and dropping the trie.
Running the examples
From within each folder run the following to install required dependencies and to execute the example:
yarn;
yarn start