|
xrpld
|
A SHAMap is both a radix tree with a fan-out of 16 and a Merkle tree. More...
#include <SHAMap.h>

Public Attributes | |
| SHAMapNodeID | nodeID |
| bool | isLeaf |
| Blob | data |
A SHAMap is both a radix tree with a fan-out of 16 and a Merkle tree.
A radix tree is a tree with two properties:
These properties result in a significantly smaller memory footprint for a radix tree.
A fan-out of 16 means that each node in the tree has at most 16 children. See https://en.wikipedia.org/wiki/Radix_tree
A Merkle tree is a tree where each non-leaf node is labelled with the hash of the combined labels of its children nodes.
A key property of a Merkle tree is that testing for node inclusion is O(log(N)) where N is the number of nodes in the tree.
See https://en.wikipedia.org/wiki/Merkle_tree Holds a SHAMap node's identity, leaf status, and serialized data. Used by getNodeFat to return node data for peer synchronization.
| SHAMapNodeID xrpl::SHAMapNodeData::nodeID |