Kagome
Polkadot Runtime Engine in C++17
|
#include <trie_serializer.hpp>
Public Member Functions | |
virtual | ~TrieSerializer ()=default |
virtual RootHash | getEmptyRootHash () const =0 |
virtual outcome::result< RootHash > | storeTrie (PolkadotTrie &trie)=0 |
virtual outcome::result< std::shared_ptr< PolkadotTrie > > | retrieveTrie (const common::Buffer &db_key) const =0 |
Serializes PolkadotTrie and stores it in an external storage
Definition at line 18 of file trie_serializer.hpp.
|
virtualdefault |
|
pure virtual |
Implemented in kagome::storage::trie::TrieSerializerImpl.
|
pure virtual |
Fetches a trie from the storage. A nullptr is returned in case that there is no entry for provided key.
Implemented in kagome::storage::trie::TrieSerializerImpl.
|
pure virtual |
Writes a trie to a storage, recursively storing its nodes.
Implemented in kagome::storage::trie::TrieSerializerImpl.