[{"data":1,"prerenderedAt":2784},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-navigation-hashing":3,"docs-kids-\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-navigation-hashing":2281,"docs-tracks":2282},{"id":4,"title":5,"body":6,"description":2273,"extension":2274,"meta":2275,"navigation":144,"path":2276,"seo":2277,"source":2278,"stem":2279,"__hash__":2280},"docs\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-navigation-hashing.md","Navigation, Hashing, and Merkle Properties",{"type":7,"value":8,"toc":2265},"minimark",[9,13,16,21,25,28,51,55,58,63,403,408,416,421,432,437,445,449,452,457,460,581,586,592,597,600,738,742,748,753,756,762,767,773,776,780,785,788,869,874,877,883,888,891,897,902,908,913,916,1234,1239,1581,1586,1592,1597,1618,1622,1625,1630,1955,1960,1963,2190,2194,2199,2210,2215,2226,2231,2242,2247,2258,2261],[10,11,5],"h1",{"id":12},"navigation-hashing-and-merkle-properties",[14,15],"hr",{},[17,18,20],"h2",{"id":19},"introduction","Introduction",[22,23,24],"p",{},"Now that you understand SHAMap's architecture and node types, let's explore how navigation actually works and how hashes propagate through the tree.",[22,26,27],{},"These operations are at the heart of what makes SHAMap efficient:",[29,30,31,39,45],"ul",{},[32,33,34,38],"li",{},[35,36,37],"strong",{},"Navigation",": Finding the correct path to any account",[32,40,41,44],{},[35,42,43],{},"Hashing",": Computing cryptographic commitments at each level",[32,46,47,50],{},[35,48,49],{},"Verification",": Ensuring data integrity through hash chains",[17,52,54],{"id":53},"navigation-algorithm","Navigation Algorithm",[22,56,57],{},"Finding a leaf in a SHAMap is straightforward because the account's key determines the exact path:",[22,59,60],{},[35,61,62],{},"Algorithm: findLeaf",[64,65,70],"pre",{"className":66,"code":67,"language":68,"meta":69,"style":69},"language-cpp shiki shiki-themes github-dark-high-contrast","std::shared_ptr\u003CSHAMapLeafNode> findLeaf(uint256 key) {\n    std::shared_ptr\u003CSHAMapTreeNode> node = mRoot;\n\n    for (int depth = 0; depth \u003C 64; ++depth) {\n        \u002F\u002F Is this a leaf?\n        if (auto leaf = std::dynamic_pointer_cast\u003CSHAMapLeafNode>(node)) {\n            return leaf;\n        }\n\n        \u002F\u002F Must be inner node\n        auto inner = std::dynamic_pointer_cast\u003CSHAMapInnerNode>(node);\n\n        \u002F\u002F Extract 4-bit chunk (nibble) at position 'depth'\n        int branch = key.nthNibble(depth);\n\n        \u002F\u002F Get child node at that branch\n        node = inner->getChild(branch);\n\n        if (!node) {\n            \u002F\u002F Child doesn't exist - key not in tree\n            return nullptr;\n        }\n    }\n\n    return nullptr;  \u002F\u002F Key not found\n}\n","cpp","",[71,72,73,114,139,146,184,191,222,231,237,242,248,273,278,284,304,309,315,332,337,350,356,367,372,378,383,397],"code",{"__ignoreMap":69},[74,75,78,82,86,89,92,95,98,102,105,108,111],"span",{"class":76,"line":77},"line",1,[74,79,81],{"class":80},"s_sBn","std",[74,83,85],{"class":84},"sMAXC","::",[74,87,88],{"class":80},"shared_ptr",[74,90,91],{"class":84},"\u003C",[74,93,94],{"class":80},"SHAMapLeafNode",[74,96,97],{"class":84},"> ",[74,99,101],{"class":100},"sj_SG","findLeaf",[74,103,104],{"class":84},"(",[74,106,107],{"class":80},"uint256",[74,109,110],{"class":80}," key",[74,112,113],{"class":84},") {\n",[74,115,117,120,122,124,126,129,132,136],{"class":76,"line":116},2,[74,118,119],{"class":80},"    std",[74,121,85],{"class":84},[74,123,88],{"class":80},[74,125,91],{"class":84},[74,127,128],{"class":80},"SHAMapTreeNode",[74,130,131],{"class":84},"> node ",[74,133,135],{"class":134},"sWyjQ","=",[74,137,138],{"class":84}," mRoot;\n",[74,140,142],{"class":76,"line":141},3,[74,143,145],{"emptyLinePlaceholder":144},true,"\n",[74,147,149,152,155,158,161,163,167,170,172,175,178,181],{"class":76,"line":148},4,[74,150,151],{"class":134},"    for",[74,153,154],{"class":84}," (",[74,156,157],{"class":134},"int",[74,159,160],{"class":84}," depth ",[74,162,135],{"class":134},[74,164,166],{"class":165},"sCcAr"," 0",[74,168,169],{"class":84},"; depth ",[74,171,91],{"class":134},[74,173,174],{"class":165}," 64",[74,176,177],{"class":84},"; ",[74,179,180],{"class":134},"++",[74,182,183],{"class":84},"depth) {\n",[74,185,187],{"class":76,"line":186},5,[74,188,190],{"class":189},"sQrFR","        \u002F\u002F Is this a leaf?\n",[74,192,194,197,199,202,205,207,210,212,215,217,219],{"class":76,"line":193},6,[74,195,196],{"class":134},"        if",[74,198,154],{"class":84},[74,200,201],{"class":134},"auto",[74,203,204],{"class":84}," leaf ",[74,206,135],{"class":134},[74,208,209],{"class":80}," std",[74,211,85],{"class":84},[74,213,214],{"class":100},"dynamic_pointer_cast",[74,216,91],{"class":84},[74,218,94],{"class":80},[74,220,221],{"class":84},">(node)) {\n",[74,223,225,228],{"class":76,"line":224},7,[74,226,227],{"class":134},"            return",[74,229,230],{"class":84}," leaf;\n",[74,232,234],{"class":76,"line":233},8,[74,235,236],{"class":84},"        }\n",[74,238,240],{"class":76,"line":239},9,[74,241,145],{"emptyLinePlaceholder":144},[74,243,245],{"class":76,"line":244},10,[74,246,247],{"class":189},"        \u002F\u002F Must be inner node\n",[74,249,251,254,257,259,261,263,265,267,270],{"class":76,"line":250},11,[74,252,253],{"class":134},"        auto",[74,255,256],{"class":84}," inner ",[74,258,135],{"class":134},[74,260,209],{"class":80},[74,262,85],{"class":84},[74,264,214],{"class":100},[74,266,91],{"class":84},[74,268,269],{"class":80},"SHAMapInnerNode",[74,271,272],{"class":84},">(node);\n",[74,274,276],{"class":76,"line":275},12,[74,277,145],{"emptyLinePlaceholder":144},[74,279,281],{"class":76,"line":280},13,[74,282,283],{"class":189},"        \u002F\u002F Extract 4-bit chunk (nibble) at position 'depth'\n",[74,285,287,290,293,295,298,301],{"class":76,"line":286},14,[74,288,289],{"class":134},"        int",[74,291,292],{"class":84}," branch ",[74,294,135],{"class":134},[74,296,297],{"class":84}," key.",[74,299,300],{"class":100},"nthNibble",[74,302,303],{"class":84},"(depth);\n",[74,305,307],{"class":76,"line":306},15,[74,308,145],{"emptyLinePlaceholder":144},[74,310,312],{"class":76,"line":311},16,[74,313,314],{"class":189},"        \u002F\u002F Get child node at that branch\n",[74,316,318,321,323,326,329],{"class":76,"line":317},17,[74,319,320],{"class":84},"        node ",[74,322,135],{"class":134},[74,324,325],{"class":84}," inner->",[74,327,328],{"class":100},"getChild",[74,330,331],{"class":84},"(branch);\n",[74,333,335],{"class":76,"line":334},18,[74,336,145],{"emptyLinePlaceholder":144},[74,338,340,342,344,347],{"class":76,"line":339},19,[74,341,196],{"class":134},[74,343,154],{"class":84},[74,345,346],{"class":134},"!",[74,348,349],{"class":84},"node) {\n",[74,351,353],{"class":76,"line":352},20,[74,354,355],{"class":189},"            \u002F\u002F Child doesn't exist - key not in tree\n",[74,357,359,361,364],{"class":76,"line":358},21,[74,360,227],{"class":134},[74,362,363],{"class":165}," nullptr",[74,365,366],{"class":84},";\n",[74,368,370],{"class":76,"line":369},22,[74,371,236],{"class":84},[74,373,375],{"class":76,"line":374},23,[74,376,377],{"class":84},"    }\n",[74,379,381],{"class":76,"line":380},24,[74,382,145],{"emptyLinePlaceholder":144},[74,384,386,389,391,394],{"class":76,"line":385},25,[74,387,388],{"class":134},"    return",[74,390,363],{"class":165},[74,392,393],{"class":84},";",[74,395,396],{"class":189},"  \u002F\u002F Key not found\n",[74,398,400],{"class":76,"line":399},26,[74,401,402],{"class":84},"}\n",[22,404,405],{},[35,406,407],{},"Step-by-Step Example:",[64,409,414],{"className":410,"code":412,"language":413},[411],"language-text","Key: 0x3A7F2E1B4C9D... (account hash)\n\nDepth 0: Root\n  Extract nibble 0 (first 4 bits): 3\n  Navigate to child 3\n\nDepth 1:\n  Extract nibble 1 (next 4 bits): A\n  Navigate to child A in the child-3 subtree\n\nDepth 2:\n  Extract nibble 2: 7\n  Navigate to child 7\n\n... continue until reaching leaf\n","text",[71,415,412],{"__ignoreMap":69},[22,417,418],{},[35,419,420],{},"Time Complexity:",[29,422,423,426,429],{},[32,424,425],{},"Worst case: O(64) inner node traversals (fixed depth)",[32,427,428],{},"Each traversal: O(1) array access to branch pointer",[32,430,431],{},"Total: O(1) expected time (with high probability leaf found before depth 64)",[22,433,434],{},[35,435,436],{},"Space Requirement:",[29,438,439,442],{},[32,440,441],{},"Path from root to leaf: ~64 pointers maximum",[32,443,444],{},"Working memory: O(1) per operation",[17,446,448],{"id":447},"hash-computation","Hash Computation",[22,450,451],{},"Hashing is fundamental to SHAMap's integrity guarantees:",[22,453,454],{},[35,455,456],{},"Leaf Node Hashing",[22,458,459],{},"Leaves compute their hash from their data with a type prefix:",[64,461,463],{"className":66,"code":462,"language":68,"meta":69,"style":69},"uint256 SHAMapLeafNode::computeHash() {\n    Blob data;\n\n    \u002F\u002F Type prefix (1 byte) - prevents collisions\n    data.push_back(mLeafType);  \u002F\u002F ACCOUNT, TX, or TX_WITH_META\n\n    \u002F\u002F Account key (32 bytes)\n    data.append(mItem->getTag());\n\n    \u002F\u002F Account data (variable)\n    data.append(mItem->getData());\n\n    \u002F\u002F Hash the complete structure\n    return SHA512Half(data);\n}\n",[71,464,465,480,488,492,497,511,515,520,536,540,545,558,562,567,577],{"__ignoreMap":69},[74,466,467,469,472,474,477],{"class":76,"line":77},[74,468,107],{"class":80},[74,470,471],{"class":80}," SHAMapLeafNode",[74,473,85],{"class":84},[74,475,476],{"class":100},"computeHash",[74,478,479],{"class":84},"() {\n",[74,481,482,485],{"class":76,"line":116},[74,483,484],{"class":80},"    Blob",[74,486,487],{"class":84}," data;\n",[74,489,490],{"class":76,"line":141},[74,491,145],{"emptyLinePlaceholder":144},[74,493,494],{"class":76,"line":148},[74,495,496],{"class":189},"    \u002F\u002F Type prefix (1 byte) - prevents collisions\n",[74,498,499,502,505,508],{"class":76,"line":186},[74,500,501],{"class":84},"    data.",[74,503,504],{"class":100},"push_back",[74,506,507],{"class":84},"(mLeafType);",[74,509,510],{"class":189},"  \u002F\u002F ACCOUNT, TX, or TX_WITH_META\n",[74,512,513],{"class":76,"line":193},[74,514,145],{"emptyLinePlaceholder":144},[74,516,517],{"class":76,"line":224},[74,518,519],{"class":189},"    \u002F\u002F Account key (32 bytes)\n",[74,521,522,524,527,530,533],{"class":76,"line":233},[74,523,501],{"class":84},[74,525,526],{"class":100},"append",[74,528,529],{"class":84},"(mItem->",[74,531,532],{"class":100},"getTag",[74,534,535],{"class":84},"());\n",[74,537,538],{"class":76,"line":239},[74,539,145],{"emptyLinePlaceholder":144},[74,541,542],{"class":76,"line":244},[74,543,544],{"class":189},"    \u002F\u002F Account data (variable)\n",[74,546,547,549,551,553,556],{"class":76,"line":250},[74,548,501],{"class":84},[74,550,526],{"class":100},[74,552,529],{"class":84},[74,554,555],{"class":100},"getData",[74,557,535],{"class":84},[74,559,560],{"class":76,"line":275},[74,561,145],{"emptyLinePlaceholder":144},[74,563,564],{"class":76,"line":280},[74,565,566],{"class":189},"    \u002F\u002F Hash the complete structure\n",[74,568,569,571,574],{"class":76,"line":286},[74,570,388],{"class":134},[74,572,573],{"class":100}," SHA512Half",[74,575,576],{"class":84},"(data);\n",[74,578,579],{"class":76,"line":306},[74,580,402],{"class":84},[22,582,583],{},[35,584,585],{},"Example:",[64,587,590],{"className":588,"code":589,"language":413},[411],"Account0 data: mTag=0x123ABC..., mData=\u003C100 XRP, flags>\nType prefix: ACCOUNT_LEAF (1 byte)\n\nHash input: [0x01][123ABC...][100 XRP, flags]\nHash output: 0x47FA... (256 bits)\n\nChanged: mData to \"99 XRP\"\nHash input: [0x01][123ABC...][99 XRP, flags]\nHash output: 0xB8EF... (completely different)\n",[71,591,589],{"__ignoreMap":69},[22,593,594],{},[35,595,596],{},"Inner Node Hashing",[22,598,599],{},"Inner nodes compute their hash from their children's hashes:",[64,601,603],{"className":66,"code":602,"language":68,"meta":69,"style":69},"uint256 SHAMapInnerNode::computeHash() {\n    Blob data;\n\n    \u002F\u002F For each of 16 possible children\n    for (int i = 0; i \u003C 16; ++i) {\n        if (hasChild(i)) {\n            \u002F\u002F Get child's hash (whether child exists in memory or disk)\n            uint256 childHash = getChildHash(i);\n            data.append(childHash);  \u002F\u002F Append 32 bytes\n        }\n    }\n\n    \u002F\u002F Hash all non-empty child hashes\n    return SHA512Half(data);\n}\n",[71,604,605,618,624,628,633,663,675,680,696,709,713,717,721,726,734],{"__ignoreMap":69},[74,606,607,609,612,614,616],{"class":76,"line":77},[74,608,107],{"class":80},[74,610,611],{"class":80}," SHAMapInnerNode",[74,613,85],{"class":84},[74,615,476],{"class":100},[74,617,479],{"class":84},[74,619,620,622],{"class":76,"line":116},[74,621,484],{"class":80},[74,623,487],{"class":84},[74,625,626],{"class":76,"line":141},[74,627,145],{"emptyLinePlaceholder":144},[74,629,630],{"class":76,"line":148},[74,631,632],{"class":189},"    \u002F\u002F For each of 16 possible children\n",[74,634,635,637,639,641,644,646,648,651,653,656,658,660],{"class":76,"line":186},[74,636,151],{"class":134},[74,638,154],{"class":84},[74,640,157],{"class":134},[74,642,643],{"class":84}," i ",[74,645,135],{"class":134},[74,647,166],{"class":165},[74,649,650],{"class":84},"; i ",[74,652,91],{"class":134},[74,654,655],{"class":165}," 16",[74,657,177],{"class":84},[74,659,180],{"class":134},[74,661,662],{"class":84},"i) {\n",[74,664,665,667,669,672],{"class":76,"line":193},[74,666,196],{"class":134},[74,668,154],{"class":84},[74,670,671],{"class":100},"hasChild",[74,673,674],{"class":84},"(i)) {\n",[74,676,677],{"class":76,"line":224},[74,678,679],{"class":189},"            \u002F\u002F Get child's hash (whether child exists in memory or disk)\n",[74,681,682,685,688,690,693],{"class":76,"line":233},[74,683,684],{"class":80},"            uint256",[74,686,687],{"class":84}," childHash ",[74,689,135],{"class":134},[74,691,692],{"class":100}," getChildHash",[74,694,695],{"class":84},"(i);\n",[74,697,698,701,703,706],{"class":76,"line":239},[74,699,700],{"class":84},"            data.",[74,702,526],{"class":100},[74,704,705],{"class":84},"(childHash);",[74,707,708],{"class":189},"  \u002F\u002F Append 32 bytes\n",[74,710,711],{"class":76,"line":244},[74,712,236],{"class":84},[74,714,715],{"class":76,"line":250},[74,716,377],{"class":84},[74,718,719],{"class":76,"line":275},[74,720,145],{"emptyLinePlaceholder":144},[74,722,723],{"class":76,"line":280},[74,724,725],{"class":189},"    \u002F\u002F Hash all non-empty child hashes\n",[74,727,728,730,732],{"class":76,"line":286},[74,729,388],{"class":134},[74,731,573],{"class":100},[74,733,576],{"class":84},[74,735,736],{"class":76,"line":306},[74,737,402],{"class":84},[22,739,740],{},[35,741,585],{},[64,743,746],{"className":744,"code":745,"language":413},[411],"Inner node has children 0, 3, 7, 15:\n\nmBranches[0] → child hash: 0xAA11...\nmBranches[3] → child hash: 0xBB22...\nmBranches[7] → child hash: 0xCC33...\nmBranches[15] → child hash: 0xDD44...\n\nCompute hash:\n  data = [0xAA11...][0xBB22...][0xCC33...][0xDD44...]\n  hash = SHA512Half(data)\n  result: 0x5678...\n",[71,747,745],{"__ignoreMap":69},[22,749,750],{},[35,751,752],{},"Hash Update Process",[22,754,755],{},"When tree is modified, hashes must be recomputed bottom-up:",[64,757,760],{"className":758,"code":759,"language":413},[411],"Scenario: Account0 balance changes\n\nStep 1: Leaf changes\n  Old: Account0 leaf hash = 0xOLD1\n  New: Account0 leaf hash = 0xNEW1\n\nStep 2: Parent recomputes\n  Parent stored hash references to all 16 children\n  One changed: [0xAAA][0xNEW1][0xBBB]...\n  Old parent hash: 0xOLD2\n  New parent hash: 0xNEW2\n\nStep 3: Grandparent recomputes\n  Parent hash changed: 0xOLD2 → 0xNEW2\n  Grandparent's child references change: [...][0xNEW2][...]\n  Old grandparent hash: 0xOLD3\n  New grandparent hash: 0xNEW3\n\n... propagates up to root\n",[71,761,759],{"__ignoreMap":69},[22,763,764],{},[35,765,766],{},"Critical Property: All Hashes Change",[64,768,771],{"className":769,"code":770,"language":413},[411],"Change 1 account → 1 leaf hash changes\n                 → parent hash changes\n                 → grandparent hash changes\n                 → ... all ancestors up to root change\n\nRoot hash changes with certainty\n",[71,772,770],{"__ignoreMap":69},[22,774,775],{},"This is why root hash is used as the ledger's cryptographic commitment. Change anything in the ledger → root hash changes.",[17,777,779],{"id":778},"merkle-tree-properties","Merkle Tree Properties",[22,781,782],{},[35,783,784],{},"Property 1: O(1) Subtree Comparison",[22,786,787],{},"Two complete SHAMaps can be compared by comparing single 256-bit values:",[64,789,791],{"className":66,"code":790,"language":68,"meta":69,"style":69},"bool sameLedgerState = (treeA.getRootHash() == treeB.getRootHash());\n\nif (sameLedgerState) {\n    \u002F\u002F Entire trees identical\n    \u002F\u002F Verified cryptographically\n} else {\n    \u002F\u002F At least one difference\n    \u002F\u002F Must investigate child hashes to find it\n}\n",[71,792,793,822,826,834,839,844,855,860,865],{"__ignoreMap":69},[74,794,795,798,801,803,806,809,812,815,818,820],{"class":76,"line":77},[74,796,797],{"class":134},"bool",[74,799,800],{"class":84}," sameLedgerState ",[74,802,135],{"class":134},[74,804,805],{"class":84}," (treeA.",[74,807,808],{"class":100},"getRootHash",[74,810,811],{"class":84},"() ",[74,813,814],{"class":134},"==",[74,816,817],{"class":84}," treeB.",[74,819,808],{"class":100},[74,821,535],{"class":84},[74,823,824],{"class":76,"line":116},[74,825,145],{"emptyLinePlaceholder":144},[74,827,828,831],{"class":76,"line":141},[74,829,830],{"class":134},"if",[74,832,833],{"class":84}," (sameLedgerState) {\n",[74,835,836],{"class":76,"line":148},[74,837,838],{"class":189},"    \u002F\u002F Entire trees identical\n",[74,840,841],{"class":76,"line":186},[74,842,843],{"class":189},"    \u002F\u002F Verified cryptographically\n",[74,845,846,849,852],{"class":76,"line":193},[74,847,848],{"class":84},"} ",[74,850,851],{"class":134},"else",[74,853,854],{"class":84}," {\n",[74,856,857],{"class":76,"line":224},[74,858,859],{"class":189},"    \u002F\u002F At least one difference\n",[74,861,862],{"class":76,"line":233},[74,863,864],{"class":189},"    \u002F\u002F Must investigate child hashes to find it\n",[74,866,867],{"class":76,"line":239},[74,868,402],{"class":84},[22,870,871],{},[35,872,873],{},"Implication:",[22,875,876],{},"Peers can quickly determine if their ledgers match:",[64,878,881],{"className":879,"code":880,"language":413},[411],"Peer A: \"My ledger root is 0xABCD...\"\nPeer B: \"My ledger root is 0xABCD...\"\n\nComparison: 1 operation\nResult: \"Ledgers identical\" (proven cryptographically)\n\nNo need to compare millions of accounts\n",[71,882,880],{"__ignoreMap":69},[22,884,885],{},[35,886,887],{},"Property 2: Efficient Difference Detection",[22,889,890],{},"If root hashes differ, child hashes pinpoint the differences:",[64,892,895],{"className":893,"code":894,"language":413},[411],"Root hash differs: 0xABCD != 0xXYZW\n\nCompare children:\n  Child 0: 0xAA == 0xAA (same)\n  Child 1: 0xBB == 0xBB (same)\n  Child 2: 0xCC != 0xXX (different!)\n  Child 3: 0xDD == 0xDD (same)\n  ...\n\nRecursively descend into Child 2 and its siblings\n\nEventually reach specific accounts that differ\n",[71,896,894],{"__ignoreMap":69},[22,898,899],{},[35,900,901],{},"Search Complexity:",[64,903,906],{"className":904,"code":905,"language":413},[411],"Complete recount:      O(N) comparisons (N = number of accounts)\nMerkle tree method:    O(log N) comparisons (log_16 of N)\n\nExample: 1M accounts = 64 bits \u002F 4 bits per level\nBinary search depth = 20\nRadix-16 Merkle depth = 5\n\nMerkle method: 5 hash comparisons to find differences\nvs. 1,000,000 account comparisons\n",[71,907,905],{"__ignoreMap":69},[22,909,910],{},[35,911,912],{},"Property 3: Cryptographic Proofs",[22,914,915],{},"Prove that a specific item is in the tree:",[64,917,919],{"className":66,"code":918,"language":68,"meta":69,"style":69},"\u002F\u002F Prove Account A exists in tree with root hash R\n\nMerkleProof proof;  \u002F\u002F Vector of serialized nodes\n\nstd::optional\u003Cstd::vector\u003CBlob>> getProofPath(uint256 key) {\n    std::vector\u003CBlob> path;\n\n    std::shared_ptr\u003CSHAMapTreeNode> node = mRoot;\n\n    for (int depth = 0; depth \u003C 64; ++depth) {\n        \u002F\u002F Serialize current node\n        Blob serialized = node->serialize();\n        path.push_back(serialized);\n\n        if (auto leaf = std::dynamic_pointer_cast\u003CSHAMapLeafNode>(node)) {\n            \u002F\u002F Reached target leaf\n            return path;\n        }\n\n        \u002F\u002F Descend to next node following key\n        auto inner = std::dynamic_pointer_cast\u003CSHAMapInnerNode>(node);\n        int branch = key.nthNibble(depth);\n        node = inner->getChild(branch);\n\n        if (!node) {\n            return std::nullopt;  \u002F\u002F Key not found\n        }\n    }\n\n    return std::nullopt;\n}\n",[71,920,921,926,930,938,942,979,994,998,1016,1020,1046,1051,1070,1080,1084,1108,1113,1120,1124,1128,1133,1153,1167,1179,1183,1193,1204,1209,1214,1219,1229],{"__ignoreMap":69},[74,922,923],{"class":76,"line":77},[74,924,925],{"class":189},"\u002F\u002F Prove Account A exists in tree with root hash R\n",[74,927,928],{"class":76,"line":116},[74,929,145],{"emptyLinePlaceholder":144},[74,931,932,935],{"class":76,"line":141},[74,933,934],{"class":84},"MerkleProof proof;",[74,936,937],{"class":189},"  \u002F\u002F Vector of serialized nodes\n",[74,939,940],{"class":76,"line":148},[74,941,145],{"emptyLinePlaceholder":144},[74,943,944,946,948,951,953,955,957,960,962,965,968,971,973,975,977],{"class":76,"line":186},[74,945,81],{"class":80},[74,947,85],{"class":84},[74,949,950],{"class":80},"optional",[74,952,91],{"class":84},[74,954,81],{"class":80},[74,956,85],{"class":84},[74,958,959],{"class":80},"vector",[74,961,91],{"class":84},[74,963,964],{"class":80},"Blob",[74,966,967],{"class":84},">> ",[74,969,970],{"class":100},"getProofPath",[74,972,104],{"class":84},[74,974,107],{"class":80},[74,976,110],{"class":80},[74,978,113],{"class":84},[74,980,981,983,985,987,989,991],{"class":76,"line":193},[74,982,119],{"class":80},[74,984,85],{"class":84},[74,986,959],{"class":80},[74,988,91],{"class":84},[74,990,964],{"class":80},[74,992,993],{"class":84},"> path;\n",[74,995,996],{"class":76,"line":224},[74,997,145],{"emptyLinePlaceholder":144},[74,999,1000,1002,1004,1006,1008,1010,1012,1014],{"class":76,"line":233},[74,1001,119],{"class":80},[74,1003,85],{"class":84},[74,1005,88],{"class":80},[74,1007,91],{"class":84},[74,1009,128],{"class":80},[74,1011,131],{"class":84},[74,1013,135],{"class":134},[74,1015,138],{"class":84},[74,1017,1018],{"class":76,"line":239},[74,1019,145],{"emptyLinePlaceholder":144},[74,1021,1022,1024,1026,1028,1030,1032,1034,1036,1038,1040,1042,1044],{"class":76,"line":244},[74,1023,151],{"class":134},[74,1025,154],{"class":84},[74,1027,157],{"class":134},[74,1029,160],{"class":84},[74,1031,135],{"class":134},[74,1033,166],{"class":165},[74,1035,169],{"class":84},[74,1037,91],{"class":134},[74,1039,174],{"class":165},[74,1041,177],{"class":84},[74,1043,180],{"class":134},[74,1045,183],{"class":84},[74,1047,1048],{"class":76,"line":250},[74,1049,1050],{"class":189},"        \u002F\u002F Serialize current node\n",[74,1052,1053,1056,1059,1061,1064,1067],{"class":76,"line":275},[74,1054,1055],{"class":80},"        Blob",[74,1057,1058],{"class":84}," serialized ",[74,1060,135],{"class":134},[74,1062,1063],{"class":84}," node->",[74,1065,1066],{"class":100},"serialize",[74,1068,1069],{"class":84},"();\n",[74,1071,1072,1075,1077],{"class":76,"line":280},[74,1073,1074],{"class":84},"        path.",[74,1076,504],{"class":100},[74,1078,1079],{"class":84},"(serialized);\n",[74,1081,1082],{"class":76,"line":286},[74,1083,145],{"emptyLinePlaceholder":144},[74,1085,1086,1088,1090,1092,1094,1096,1098,1100,1102,1104,1106],{"class":76,"line":306},[74,1087,196],{"class":134},[74,1089,154],{"class":84},[74,1091,201],{"class":134},[74,1093,204],{"class":84},[74,1095,135],{"class":134},[74,1097,209],{"class":80},[74,1099,85],{"class":84},[74,1101,214],{"class":100},[74,1103,91],{"class":84},[74,1105,94],{"class":80},[74,1107,221],{"class":84},[74,1109,1110],{"class":76,"line":311},[74,1111,1112],{"class":189},"            \u002F\u002F Reached target leaf\n",[74,1114,1115,1117],{"class":76,"line":317},[74,1116,227],{"class":134},[74,1118,1119],{"class":84}," path;\n",[74,1121,1122],{"class":76,"line":334},[74,1123,236],{"class":84},[74,1125,1126],{"class":76,"line":339},[74,1127,145],{"emptyLinePlaceholder":144},[74,1129,1130],{"class":76,"line":352},[74,1131,1132],{"class":189},"        \u002F\u002F Descend to next node following key\n",[74,1134,1135,1137,1139,1141,1143,1145,1147,1149,1151],{"class":76,"line":358},[74,1136,253],{"class":134},[74,1138,256],{"class":84},[74,1140,135],{"class":134},[74,1142,209],{"class":80},[74,1144,85],{"class":84},[74,1146,214],{"class":100},[74,1148,91],{"class":84},[74,1150,269],{"class":80},[74,1152,272],{"class":84},[74,1154,1155,1157,1159,1161,1163,1165],{"class":76,"line":369},[74,1156,289],{"class":134},[74,1158,292],{"class":84},[74,1160,135],{"class":134},[74,1162,297],{"class":84},[74,1164,300],{"class":100},[74,1166,303],{"class":84},[74,1168,1169,1171,1173,1175,1177],{"class":76,"line":374},[74,1170,320],{"class":84},[74,1172,135],{"class":134},[74,1174,325],{"class":84},[74,1176,328],{"class":100},[74,1178,331],{"class":84},[74,1180,1181],{"class":76,"line":380},[74,1182,145],{"emptyLinePlaceholder":144},[74,1184,1185,1187,1189,1191],{"class":76,"line":385},[74,1186,196],{"class":134},[74,1188,154],{"class":84},[74,1190,346],{"class":134},[74,1192,349],{"class":84},[74,1194,1195,1197,1199,1202],{"class":76,"line":399},[74,1196,227],{"class":134},[74,1198,209],{"class":80},[74,1200,1201],{"class":84},"::nullopt;",[74,1203,396],{"class":189},[74,1205,1207],{"class":76,"line":1206},27,[74,1208,236],{"class":84},[74,1210,1212],{"class":76,"line":1211},28,[74,1213,377],{"class":84},[74,1215,1217],{"class":76,"line":1216},29,[74,1218,145],{"emptyLinePlaceholder":144},[74,1220,1222,1224,1226],{"class":76,"line":1221},30,[74,1223,388],{"class":134},[74,1225,209],{"class":80},[74,1227,1228],{"class":84},"::nullopt;\n",[74,1230,1232],{"class":76,"line":1231},31,[74,1233,402],{"class":84},[22,1235,1236],{},[35,1237,1238],{},"Proof Verification:",[64,1240,1242],{"className":66,"code":1241,"language":68,"meta":69,"style":69},"bool verifyProofPath(\n    uint256 key,\n    uint256 expectedRootHash,\n    std::vector\u003CBlob> proof)\n{\n    \u002F\u002F Start from leaf end of proof\n    auto leafNode = deserialize(proof.back());\n\n    \u002F\u002F Verify leaf contains the key\n    if (leafNode->getKey() != key) {\n        return false;\n    }\n\n    uint256 computedHash = leafNode->computeHash();\n\n    \u002F\u002F Move from leaf toward root\n    for (int i = proof.size() - 2; i >= 0; --i) {\n        auto innerNode = deserialize(proof[i]);\n\n        \u002F\u002F Verify the branch we came from\n        int depth = i;  \u002F\u002F Depth in tree\n        int branch = key.nthNibble(depth);\n\n        \u002F\u002F Child hash must match computed hash\n        if (innerNode->getChildHash(branch) != computedHash) {\n            return false;\n        }\n\n        \u002F\u002F Compute this node's hash\n        computedHash = innerNode->computeHash();\n    }\n\n    \u002F\u002F Verify final hash matches expected root\n    return (computedHash == expectedRootHash);\n}\n",[71,1243,1244,1254,1264,1273,1293,1298,1303,1324,1328,1333,1352,1362,1366,1370,1386,1390,1395,1435,1449,1453,1458,1472,1486,1490,1495,1513,1521,1525,1529,1534,1548,1552,1557,1563,1576],{"__ignoreMap":69},[74,1245,1246,1248,1251],{"class":76,"line":77},[74,1247,797],{"class":134},[74,1249,1250],{"class":100}," verifyProofPath",[74,1252,1253],{"class":84},"(\n",[74,1255,1256,1259,1261],{"class":76,"line":116},[74,1257,1258],{"class":80},"    uint256",[74,1260,110],{"class":80},[74,1262,1263],{"class":84},",\n",[74,1265,1266,1268,1271],{"class":76,"line":141},[74,1267,1258],{"class":80},[74,1269,1270],{"class":80}," expectedRootHash",[74,1272,1263],{"class":84},[74,1274,1275,1277,1279,1281,1283,1285,1287,1290],{"class":76,"line":148},[74,1276,119],{"class":80},[74,1278,85],{"class":84},[74,1280,959],{"class":80},[74,1282,91],{"class":84},[74,1284,964],{"class":80},[74,1286,97],{"class":84},[74,1288,1289],{"class":80},"proof",[74,1291,1292],{"class":84},")\n",[74,1294,1295],{"class":76,"line":186},[74,1296,1297],{"class":84},"{\n",[74,1299,1300],{"class":76,"line":193},[74,1301,1302],{"class":189},"    \u002F\u002F Start from leaf end of proof\n",[74,1304,1305,1308,1311,1313,1316,1319,1322],{"class":76,"line":224},[74,1306,1307],{"class":134},"    auto",[74,1309,1310],{"class":84}," leafNode ",[74,1312,135],{"class":134},[74,1314,1315],{"class":100}," deserialize",[74,1317,1318],{"class":84},"(proof.",[74,1320,1321],{"class":100},"back",[74,1323,535],{"class":84},[74,1325,1326],{"class":76,"line":233},[74,1327,145],{"emptyLinePlaceholder":144},[74,1329,1330],{"class":76,"line":239},[74,1331,1332],{"class":189},"    \u002F\u002F Verify leaf contains the key\n",[74,1334,1335,1338,1341,1344,1346,1349],{"class":76,"line":244},[74,1336,1337],{"class":134},"    if",[74,1339,1340],{"class":84}," (leafNode->",[74,1342,1343],{"class":100},"getKey",[74,1345,811],{"class":84},[74,1347,1348],{"class":134},"!=",[74,1350,1351],{"class":84}," key) {\n",[74,1353,1354,1357,1360],{"class":76,"line":250},[74,1355,1356],{"class":134},"        return",[74,1358,1359],{"class":165}," false",[74,1361,366],{"class":84},[74,1363,1364],{"class":76,"line":275},[74,1365,377],{"class":84},[74,1367,1368],{"class":76,"line":280},[74,1369,145],{"emptyLinePlaceholder":144},[74,1371,1372,1374,1377,1379,1382,1384],{"class":76,"line":286},[74,1373,1258],{"class":80},[74,1375,1376],{"class":84}," computedHash ",[74,1378,135],{"class":134},[74,1380,1381],{"class":84}," leafNode->",[74,1383,476],{"class":100},[74,1385,1069],{"class":84},[74,1387,1388],{"class":76,"line":306},[74,1389,145],{"emptyLinePlaceholder":144},[74,1391,1392],{"class":76,"line":311},[74,1393,1394],{"class":189},"    \u002F\u002F Move from leaf toward root\n",[74,1396,1397,1399,1401,1403,1405,1407,1410,1413,1415,1418,1421,1423,1426,1428,1430,1433],{"class":76,"line":317},[74,1398,151],{"class":134},[74,1400,154],{"class":84},[74,1402,157],{"class":134},[74,1404,643],{"class":84},[74,1406,135],{"class":134},[74,1408,1409],{"class":84}," proof.",[74,1411,1412],{"class":100},"size",[74,1414,811],{"class":84},[74,1416,1417],{"class":134},"-",[74,1419,1420],{"class":165}," 2",[74,1422,650],{"class":84},[74,1424,1425],{"class":134},">=",[74,1427,166],{"class":165},[74,1429,177],{"class":84},[74,1431,1432],{"class":134},"--",[74,1434,662],{"class":84},[74,1436,1437,1439,1442,1444,1446],{"class":76,"line":334},[74,1438,253],{"class":134},[74,1440,1441],{"class":84}," innerNode ",[74,1443,135],{"class":134},[74,1445,1315],{"class":100},[74,1447,1448],{"class":84},"(proof[i]);\n",[74,1450,1451],{"class":76,"line":339},[74,1452,145],{"emptyLinePlaceholder":144},[74,1454,1455],{"class":76,"line":352},[74,1456,1457],{"class":189},"        \u002F\u002F Verify the branch we came from\n",[74,1459,1460,1462,1464,1466,1469],{"class":76,"line":358},[74,1461,289],{"class":134},[74,1463,160],{"class":84},[74,1465,135],{"class":134},[74,1467,1468],{"class":84}," i;",[74,1470,1471],{"class":189},"  \u002F\u002F Depth in tree\n",[74,1473,1474,1476,1478,1480,1482,1484],{"class":76,"line":369},[74,1475,289],{"class":134},[74,1477,292],{"class":84},[74,1479,135],{"class":134},[74,1481,297],{"class":84},[74,1483,300],{"class":100},[74,1485,303],{"class":84},[74,1487,1488],{"class":76,"line":374},[74,1489,145],{"emptyLinePlaceholder":144},[74,1491,1492],{"class":76,"line":380},[74,1493,1494],{"class":189},"        \u002F\u002F Child hash must match computed hash\n",[74,1496,1497,1499,1502,1505,1508,1510],{"class":76,"line":385},[74,1498,196],{"class":134},[74,1500,1501],{"class":84}," (innerNode->",[74,1503,1504],{"class":100},"getChildHash",[74,1506,1507],{"class":84},"(branch) ",[74,1509,1348],{"class":134},[74,1511,1512],{"class":84}," computedHash) {\n",[74,1514,1515,1517,1519],{"class":76,"line":399},[74,1516,227],{"class":134},[74,1518,1359],{"class":165},[74,1520,366],{"class":84},[74,1522,1523],{"class":76,"line":1206},[74,1524,236],{"class":84},[74,1526,1527],{"class":76,"line":1211},[74,1528,145],{"emptyLinePlaceholder":144},[74,1530,1531],{"class":76,"line":1216},[74,1532,1533],{"class":189},"        \u002F\u002F Compute this node's hash\n",[74,1535,1536,1539,1541,1544,1546],{"class":76,"line":1221},[74,1537,1538],{"class":84},"        computedHash ",[74,1540,135],{"class":134},[74,1542,1543],{"class":84}," innerNode->",[74,1545,476],{"class":100},[74,1547,1069],{"class":84},[74,1549,1550],{"class":76,"line":1231},[74,1551,377],{"class":84},[74,1553,1555],{"class":76,"line":1554},32,[74,1556,145],{"emptyLinePlaceholder":144},[74,1558,1560],{"class":76,"line":1559},33,[74,1561,1562],{"class":189},"    \u002F\u002F Verify final hash matches expected root\n",[74,1564,1566,1568,1571,1573],{"class":76,"line":1565},34,[74,1567,388],{"class":134},[74,1569,1570],{"class":84}," (computedHash ",[74,1572,814],{"class":134},[74,1574,1575],{"class":84}," expectedRootHash);\n",[74,1577,1579],{"class":76,"line":1578},35,[74,1580,402],{"class":84},[22,1582,1583],{},[35,1584,1585],{},"Proof Size:",[64,1587,1590],{"className":1588,"code":1589,"language":413},[411],"Tree with 1M accounts:\n  Depth: log_16(1M) ≈ 5\n\nProof includes:\n  1 leaf node: ~50-100 bytes\n  5 inner nodes: ~100 bytes each\n  Total: ~600 bytes\n\nCompare to:\n  Sending all accounts: millions of bytes\n  Merkle proof: \u003C1 KB\n\nVerification requires hashing ~5 nodes\nvs. hashing millions of accounts\n",[71,1591,1589],{"__ignoreMap":69},[22,1593,1594],{},[35,1595,1596],{},"Use Cases:",[1598,1599,1600,1606,1612],"ol",{},[32,1601,1602,1605],{},[35,1603,1604],{},"Light Clients",": Verify account state without full ledger",[32,1607,1608,1611],{},[35,1609,1610],{},"Cross-Chain Bridges",": Prove XRPL state to other chains",[32,1613,1614,1617],{},[35,1615,1616],{},"Auditing",": Prove specific transactions were executed",[17,1619,1621],{"id":1620},"mutable-tree-operations","Mutable Tree Operations",[22,1623,1624],{},"When constructing a new ledger, trees must support modifications:",[22,1626,1627],{},[35,1628,1629],{},"Adding a New Leaf",[64,1631,1633],{"className":66,"code":1632,"language":68,"meta":69,"style":69},"void addLeaf(uint256 key, SHAMapItem item) {\n    auto leaf = std::make_shared\u003CSHAMapLeafNode>(key, item);\n    leaf->setCowID(mCowID);  \u002F\u002F Mark as owned by this tree\n\n    std::shared_ptr\u003CSHAMapTreeNode> node = mRoot;\n\n    \u002F\u002F Navigate to position\n    for (int depth = 0; depth \u003C 64; ++depth) {\n        if (auto inner = std::dynamic_pointer_cast\u003CSHAMapInnerNode>(node)) {\n            int branch = key.nthNibble(depth);\n            auto child = inner->getChild(branch);\n\n            if (!child) {\n                \u002F\u002F Empty slot - insert leaf here\n                inner = unshareNode(inner);  \u002F\u002F Copy-on-write\n                inner->setChild(branch, leaf);\n                updateHashes(inner);  \u002F\u002F Recompute hashes up to root\n                return;\n            } else if (auto childLeaf =\n                      std::dynamic_pointer_cast\u003CSHAMapLeafNode>(child)) {\n                \u002F\u002F Slot occupied by another leaf\n                \u002F\u002F Need to split into inner node\n                \u002F\u002F ... (complex branch splitting logic)\n            }\n\n            node = child;\n        }\n    }\n}\n",[71,1634,1635,1660,1682,1696,1700,1718,1722,1727,1753,1777,1792,1808,1812,1824,1829,1845,1856,1866,1873,1893,1909,1914,1919,1924,1929,1933,1943,1947,1951],{"__ignoreMap":69},[74,1636,1637,1640,1643,1645,1647,1649,1652,1655,1658],{"class":76,"line":77},[74,1638,1639],{"class":134},"void",[74,1641,1642],{"class":100}," addLeaf",[74,1644,104],{"class":84},[74,1646,107],{"class":80},[74,1648,110],{"class":80},[74,1650,1651],{"class":84},", ",[74,1653,1654],{"class":80},"SHAMapItem",[74,1656,1657],{"class":80}," item",[74,1659,113],{"class":84},[74,1661,1662,1664,1666,1668,1670,1672,1675,1677,1679],{"class":76,"line":116},[74,1663,1307],{"class":134},[74,1665,204],{"class":84},[74,1667,135],{"class":134},[74,1669,209],{"class":80},[74,1671,85],{"class":84},[74,1673,1674],{"class":100},"make_shared",[74,1676,91],{"class":84},[74,1678,94],{"class":80},[74,1680,1681],{"class":84},">(key, item);\n",[74,1683,1684,1687,1690,1693],{"class":76,"line":141},[74,1685,1686],{"class":84},"    leaf->",[74,1688,1689],{"class":100},"setCowID",[74,1691,1692],{"class":84},"(mCowID);",[74,1694,1695],{"class":189},"  \u002F\u002F Mark as owned by this tree\n",[74,1697,1698],{"class":76,"line":148},[74,1699,145],{"emptyLinePlaceholder":144},[74,1701,1702,1704,1706,1708,1710,1712,1714,1716],{"class":76,"line":186},[74,1703,119],{"class":80},[74,1705,85],{"class":84},[74,1707,88],{"class":80},[74,1709,91],{"class":84},[74,1711,128],{"class":80},[74,1713,131],{"class":84},[74,1715,135],{"class":134},[74,1717,138],{"class":84},[74,1719,1720],{"class":76,"line":193},[74,1721,145],{"emptyLinePlaceholder":144},[74,1723,1724],{"class":76,"line":224},[74,1725,1726],{"class":189},"    \u002F\u002F Navigate to position\n",[74,1728,1729,1731,1733,1735,1737,1739,1741,1743,1745,1747,1749,1751],{"class":76,"line":233},[74,1730,151],{"class":134},[74,1732,154],{"class":84},[74,1734,157],{"class":134},[74,1736,160],{"class":84},[74,1738,135],{"class":134},[74,1740,166],{"class":165},[74,1742,169],{"class":84},[74,1744,91],{"class":134},[74,1746,174],{"class":165},[74,1748,177],{"class":84},[74,1750,180],{"class":134},[74,1752,183],{"class":84},[74,1754,1755,1757,1759,1761,1763,1765,1767,1769,1771,1773,1775],{"class":76,"line":239},[74,1756,196],{"class":134},[74,1758,154],{"class":84},[74,1760,201],{"class":134},[74,1762,256],{"class":84},[74,1764,135],{"class":134},[74,1766,209],{"class":80},[74,1768,85],{"class":84},[74,1770,214],{"class":100},[74,1772,91],{"class":84},[74,1774,269],{"class":80},[74,1776,221],{"class":84},[74,1778,1779,1782,1784,1786,1788,1790],{"class":76,"line":244},[74,1780,1781],{"class":134},"            int",[74,1783,292],{"class":84},[74,1785,135],{"class":134},[74,1787,297],{"class":84},[74,1789,300],{"class":100},[74,1791,303],{"class":84},[74,1793,1794,1797,1800,1802,1804,1806],{"class":76,"line":250},[74,1795,1796],{"class":134},"            auto",[74,1798,1799],{"class":84}," child ",[74,1801,135],{"class":134},[74,1803,325],{"class":84},[74,1805,328],{"class":100},[74,1807,331],{"class":84},[74,1809,1810],{"class":76,"line":275},[74,1811,145],{"emptyLinePlaceholder":144},[74,1813,1814,1817,1819,1821],{"class":76,"line":280},[74,1815,1816],{"class":134},"            if",[74,1818,154],{"class":84},[74,1820,346],{"class":134},[74,1822,1823],{"class":84},"child) {\n",[74,1825,1826],{"class":76,"line":286},[74,1827,1828],{"class":189},"                \u002F\u002F Empty slot - insert leaf here\n",[74,1830,1831,1834,1836,1839,1842],{"class":76,"line":306},[74,1832,1833],{"class":84},"                inner ",[74,1835,135],{"class":134},[74,1837,1838],{"class":100}," unshareNode",[74,1840,1841],{"class":84},"(inner);",[74,1843,1844],{"class":189},"  \u002F\u002F Copy-on-write\n",[74,1846,1847,1850,1853],{"class":76,"line":311},[74,1848,1849],{"class":84},"                inner->",[74,1851,1852],{"class":100},"setChild",[74,1854,1855],{"class":84},"(branch, leaf);\n",[74,1857,1858,1861,1863],{"class":76,"line":317},[74,1859,1860],{"class":100},"                updateHashes",[74,1862,1841],{"class":84},[74,1864,1865],{"class":189},"  \u002F\u002F Recompute hashes up to root\n",[74,1867,1868,1871],{"class":76,"line":334},[74,1869,1870],{"class":134},"                return",[74,1872,366],{"class":84},[74,1874,1875,1878,1880,1883,1885,1887,1890],{"class":76,"line":339},[74,1876,1877],{"class":84},"            } ",[74,1879,851],{"class":134},[74,1881,1882],{"class":134}," if",[74,1884,154],{"class":84},[74,1886,201],{"class":134},[74,1888,1889],{"class":84}," childLeaf ",[74,1891,1892],{"class":134},"=\n",[74,1894,1895,1898,1900,1902,1904,1906],{"class":76,"line":352},[74,1896,1897],{"class":80},"                      std",[74,1899,85],{"class":84},[74,1901,214],{"class":100},[74,1903,91],{"class":84},[74,1905,94],{"class":80},[74,1907,1908],{"class":84},">(child)) {\n",[74,1910,1911],{"class":76,"line":358},[74,1912,1913],{"class":189},"                \u002F\u002F Slot occupied by another leaf\n",[74,1915,1916],{"class":76,"line":369},[74,1917,1918],{"class":189},"                \u002F\u002F Need to split into inner node\n",[74,1920,1921],{"class":76,"line":374},[74,1922,1923],{"class":189},"                \u002F\u002F ... (complex branch splitting logic)\n",[74,1925,1926],{"class":76,"line":380},[74,1927,1928],{"class":84},"            }\n",[74,1930,1931],{"class":76,"line":385},[74,1932,145],{"emptyLinePlaceholder":144},[74,1934,1935,1938,1940],{"class":76,"line":399},[74,1936,1937],{"class":84},"            node ",[74,1939,135],{"class":134},[74,1941,1942],{"class":84}," child;\n",[74,1944,1945],{"class":76,"line":1206},[74,1946,236],{"class":84},[74,1948,1949],{"class":76,"line":1211},[74,1950,377],{"class":84},[74,1952,1953],{"class":76,"line":1216},[74,1954,402],{"class":84},[22,1956,1957],{},[35,1958,1959],{},"Hash Updates",[22,1961,1962],{},"After modification, hashes propagate up:",[64,1964,1966],{"className":66,"code":1965,"language":68,"meta":69,"style":69},"void updateHashes(std::shared_ptr\u003CSHAMapInnerNode> node) {\n    uint256 oldHash = node->getHash();\n    uint256 newHash = node->computeHash();\n\n    if (oldHash == newHash) {\n        return;  \u002F\u002F Nothing changed\n    }\n\n    \u002F\u002F Find parent\n    auto parent = node->getParent();\n    if (parent) {\n        \u002F\u002F Update parent's reference to this node\n        int branch = node->getNodeID().getNibbleAtDepth(\n            node->getDepth() - 1);\n        parent->setChildHash(branch, newHash);\n\n        \u002F\u002F Recursively update parent\n        updateHashes(parent);\n    } else {\n        \u002F\u002F This is root - update root hash\n        mRootHash = newHash;\n    }\n}\n",[71,1967,1968,1994,2010,2025,2029,2041,2050,2054,2058,2063,2079,2086,2091,2112,2130,2141,2145,2150,2158,2167,2172,2182,2186],{"__ignoreMap":69},[74,1969,1970,1972,1975,1977,1979,1981,1983,1985,1987,1989,1992],{"class":76,"line":77},[74,1971,1639],{"class":134},[74,1973,1974],{"class":100}," updateHashes",[74,1976,104],{"class":84},[74,1978,81],{"class":80},[74,1980,85],{"class":84},[74,1982,88],{"class":80},[74,1984,91],{"class":84},[74,1986,269],{"class":80},[74,1988,97],{"class":84},[74,1990,1991],{"class":80},"node",[74,1993,113],{"class":84},[74,1995,1996,1998,2001,2003,2005,2008],{"class":76,"line":116},[74,1997,1258],{"class":80},[74,1999,2000],{"class":84}," oldHash ",[74,2002,135],{"class":134},[74,2004,1063],{"class":84},[74,2006,2007],{"class":100},"getHash",[74,2009,1069],{"class":84},[74,2011,2012,2014,2017,2019,2021,2023],{"class":76,"line":141},[74,2013,1258],{"class":80},[74,2015,2016],{"class":84}," newHash ",[74,2018,135],{"class":134},[74,2020,1063],{"class":84},[74,2022,476],{"class":100},[74,2024,1069],{"class":84},[74,2026,2027],{"class":76,"line":148},[74,2028,145],{"emptyLinePlaceholder":144},[74,2030,2031,2033,2036,2038],{"class":76,"line":186},[74,2032,1337],{"class":134},[74,2034,2035],{"class":84}," (oldHash ",[74,2037,814],{"class":134},[74,2039,2040],{"class":84}," newHash) {\n",[74,2042,2043,2045,2047],{"class":76,"line":193},[74,2044,1356],{"class":134},[74,2046,393],{"class":84},[74,2048,2049],{"class":189},"  \u002F\u002F Nothing changed\n",[74,2051,2052],{"class":76,"line":224},[74,2053,377],{"class":84},[74,2055,2056],{"class":76,"line":233},[74,2057,145],{"emptyLinePlaceholder":144},[74,2059,2060],{"class":76,"line":239},[74,2061,2062],{"class":189},"    \u002F\u002F Find parent\n",[74,2064,2065,2067,2070,2072,2074,2077],{"class":76,"line":244},[74,2066,1307],{"class":134},[74,2068,2069],{"class":84}," parent ",[74,2071,135],{"class":134},[74,2073,1063],{"class":84},[74,2075,2076],{"class":100},"getParent",[74,2078,1069],{"class":84},[74,2080,2081,2083],{"class":76,"line":250},[74,2082,1337],{"class":134},[74,2084,2085],{"class":84}," (parent) {\n",[74,2087,2088],{"class":76,"line":275},[74,2089,2090],{"class":189},"        \u002F\u002F Update parent's reference to this node\n",[74,2092,2093,2095,2097,2099,2101,2104,2107,2110],{"class":76,"line":280},[74,2094,289],{"class":134},[74,2096,292],{"class":84},[74,2098,135],{"class":134},[74,2100,1063],{"class":84},[74,2102,2103],{"class":100},"getNodeID",[74,2105,2106],{"class":84},"().",[74,2108,2109],{"class":100},"getNibbleAtDepth",[74,2111,1253],{"class":84},[74,2113,2114,2117,2120,2122,2124,2127],{"class":76,"line":286},[74,2115,2116],{"class":84},"            node->",[74,2118,2119],{"class":100},"getDepth",[74,2121,811],{"class":84},[74,2123,1417],{"class":134},[74,2125,2126],{"class":165}," 1",[74,2128,2129],{"class":84},");\n",[74,2131,2132,2135,2138],{"class":76,"line":306},[74,2133,2134],{"class":84},"        parent->",[74,2136,2137],{"class":100},"setChildHash",[74,2139,2140],{"class":84},"(branch, newHash);\n",[74,2142,2143],{"class":76,"line":311},[74,2144,145],{"emptyLinePlaceholder":144},[74,2146,2147],{"class":76,"line":317},[74,2148,2149],{"class":189},"        \u002F\u002F Recursively update parent\n",[74,2151,2152,2155],{"class":76,"line":334},[74,2153,2154],{"class":100},"        updateHashes",[74,2156,2157],{"class":84},"(parent);\n",[74,2159,2160,2163,2165],{"class":76,"line":339},[74,2161,2162],{"class":84},"    } ",[74,2164,851],{"class":134},[74,2166,854],{"class":84},[74,2168,2169],{"class":76,"line":352},[74,2170,2171],{"class":189},"        \u002F\u002F This is root - update root hash\n",[74,2173,2174,2177,2179],{"class":76,"line":358},[74,2175,2176],{"class":84},"        mRootHash ",[74,2178,135],{"class":134},[74,2180,2181],{"class":84}," newHash;\n",[74,2183,2184],{"class":76,"line":369},[74,2185,377],{"class":84},[74,2187,2188],{"class":76,"line":374},[74,2189,402],{"class":84},[17,2191,2193],{"id":2192},"summary","Summary",[22,2195,2196],{},[35,2197,2198],{},"Navigation:",[29,2200,2201,2204,2207],{},[32,2202,2203],{},"Keys determine paths through tree",[32,2205,2206],{},"O(1) expected lookup time",[32,2208,2209],{},"Fixed depth ensures bounded operations",[22,2211,2212],{},[35,2213,2214],{},"Hashing:",[29,2216,2217,2220,2223],{},[32,2218,2219],{},"Leaves hash their data with type prefixes",[32,2221,2222],{},"Inner nodes hash their children's hashes",[32,2224,2225],{},"Changes propagate bottom-up to root",[22,2227,2228],{},[35,2229,2230],{},"Merkle Properties:",[29,2232,2233,2236,2239],{},[32,2234,2235],{},"O(1) tree comparison through root hash",[32,2237,2238],{},"O(log N) difference detection",[32,2240,2241],{},"O(log N) proof generation and verification",[22,2243,2244],{},[35,2245,2246],{},"Performance:",[29,2248,2249,2252,2255],{},[32,2250,2251],{},"Single account lookup: microseconds (tree traversal)",[32,2253,2254],{},"Root hash computation: milliseconds (hash all changed nodes)",[32,2256,2257],{},"Proof verification: thousands of hashes (proof depth)",[22,2259,2260],{},"These properties make SHAMap practical for blockchain state management: efficient updates, verifiable state, and fast synchronization.",[2262,2263,2264],"style",{},"html pre.shiki code .s_sBn, html code.shiki .s_sBn{--shiki-default:#FFB757}html pre.shiki code .sMAXC, html code.shiki .sMAXC{--shiki-default:#F0F3F6}html pre.shiki code .sj_SG, html code.shiki .sj_SG{--shiki-default:#DBB7FF}html pre.shiki code .sWyjQ, html code.shiki .sWyjQ{--shiki-default:#FF9492}html pre.shiki code .sCcAr, html code.shiki .sCcAr{--shiki-default:#91CBFF}html pre.shiki code .sQrFR, html code.shiki .sQrFR{--shiki-default:#BDC4CC}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":69,"searchDepth":116,"depth":116,"links":2266},[2267,2268,2269,2270,2271,2272],{"id":19,"depth":116,"text":20},{"id":53,"depth":116,"text":54},{"id":447,"depth":116,"text":448},{"id":778,"depth":116,"text":779},{"id":1620,"depth":116,"text":1621},{"id":2192,"depth":116,"text":2193},"Navigation, Hashing, and Merkle Properties for Anatomy of Rippled: SHAMap and NodeStore, in the Core Dev Bootcamp: XRPL Commons docs.","md",{},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-navigation-hashing",{"title":5,"description":2273},"xrpl-trainings\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-navigation-hashing.md","docs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-navigation-hashing","nFOjRb0Gh9Pm4-1HIYvh9lmbaDosX19_2b7PGEl7gPU",[],[2283,2324,2338,2358,2381,2773],{"title":2284,"path":2285,"children":2286,"description":2323,"pages":280},"XRPL Basics","\u002Fdocs\u002Fxrpl-basics",[2287,2290,2293,2296,2299,2302,2305,2308,2311,2314,2317,2320],{"title":2288,"path":2289},"Getting Started","\u002Fdocs\u002Fxrpl-basics\u002Fgetting-started",{"title":2291,"path":2292},"Trustline","\u002Fdocs\u002Fxrpl-basics\u002Ftrustline",{"title":2294,"path":2295},"Payments","\u002Fdocs\u002Fxrpl-basics\u002Fpayments",{"title":2297,"path":2298},"Reading and subscribing to Transactions","\u002Fdocs\u002Fxrpl-basics\u002Freading-and-writing-memos",{"title":2300,"path":2301},"Writing and reading memos","\u002Fdocs\u002Fxrpl-basics\u002Fwriting-and-reading-memos",{"title":2303,"path":2304},"Non Fungible Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fnon-fungible-tokens",{"title":2306,"path":2307},"Multi-Purpose Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fmptoken",{"title":2309,"path":2310},"PathFinding","\u002Fdocs\u002Fxrpl-basics\u002Fpath-finding",{"title":2312,"path":2313},"Escrow","\u002Fdocs\u002Fxrpl-basics\u002Fescrow",{"title":2315,"path":2316},"Price Oracles","\u002Fdocs\u002Fxrpl-basics\u002Fprice-oracles",{"title":2318,"path":2319},"Tickets","\u002Fdocs\u002Fxrpl-basics\u002Ftickets",{"title":2321,"path":2322},"Multi-Signature","\u002Fdocs\u002Fxrpl-basics\u002Fmulti-signature","In this section we will cover some of the primary functionality of the XRPL ledger.",{"title":2325,"path":2326,"children":2327,"description":2337,"pages":148},"Token Issuance and Liquidity","\u002Fdocs\u002Ftoken-issuance-and-liquidity",[2328,2331,2334],{"title":2329,"path":2330},"Creating Accounts and Setup","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fcreating-accounts",{"title":2332,"path":2333},"Issuing Tokens","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fissuing-tokens",{"title":2335,"path":2336},"Creating an AMM Pool","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fcreating-an-amm-pool","This session will cover token issuance and providing liquidity for your tokens using the automatic market maker built in to the XRPL",{"title":2339,"path":2340,"children":2341,"description":2357,"pages":193},"Cyphered Chat on XRPL","\u002Fdocs\u002Fcyphered-chat-on-xrpl",[2342,2345,2348,2351,2354],{"title":2343,"path":2344},"Set up","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up",{"title":2346,"path":2347},"Set up Keys","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-keys",{"title":2349,"path":2350},"Cypher the message","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fcypher-the-message",{"title":2352,"path":2353},"Set up the memo & send the tx","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-the-memo-and-send-the-tx",{"title":2355,"path":2356},"Get the message and decypher it","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fget-the-message-and-decypher-it","Send encrypted messages over XRPL",{"title":2359,"path":2360,"children":2361,"description":2380,"pages":224},"EVM Sidechain","\u002Fdocs\u002Fevm-sidechain",[2362,2365,2368,2371,2374,2377],{"title":2363,"path":2364},"Connecting Metamask","\u002Fdocs\u002Fevm-sidechain\u002Fconnecting-metamask",{"title":2366,"path":2367},"Set up a Foundry project","\u002Fdocs\u002Fevm-sidechain\u002Fset-up-an-evm-project",{"title":2369,"path":2370},"Bridging Assets","\u002Fdocs\u002Fevm-sidechain\u002Fbridging-assets",{"title":2372,"path":2373},"Remix","\u002Fdocs\u002Fevm-sidechain\u002Fremix",{"title":2375,"path":2376},"Banking App","\u002Fdocs\u002Fevm-sidechain\u002Fbanking-app",{"title":2378,"path":2379},"Banking Contract Key Concepts","\u002Fdocs\u002Fevm-sidechain\u002Fbanking-contract-key-concepts","This workshop will walk you through deploying a smart contract and building a full app on the XRPL EVM sidechain",{"title":2382,"path":2383,"children":2384,"description":2771,"pages":2772},"Core Dev Bootcamp","\u002Fdocs\u002Fcore-dev-bootcamp",[2385,2405,2448,2496,2527,2584,2615,2631,2671,2705,2730,2746],{"title":2386,"path":2387,"children":2388},"Rippled I – Compilation, Configuration, and Launch","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01",[2389,2392,2395,2398],{"title":2390,"path":2391},"Environment & Build Toolchain","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fenvironment-build-toolchain",{"title":2393,"path":2394},"Compilation Process & Generating Binary","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fcompilation-process-generating-binary",{"title":2396,"path":2397},"Local Development & Testing","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Flocal-development-testing",{"title":2399,"path":2400,"children":2401},"Homeworks","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks",[2402],{"title":2403,"path":2404},"Homework 1: Rippled Node Setup and Mainnet Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks\u002Fhomework1",{"title":2406,"path":2407,"children":2408},"Rippled II: Deep Dive into the Protocol and Codebase","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02",[2409,2412,2415,2418,2421,2424,2427,2430,2433],{"title":2410,"path":2411},"Protocols: Communication and Interoperability","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fprotocols-communication-and-interoperability",{"title":2413,"path":2414},"Transactors: Transaction Processing Framework","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransactors-transaction-processing-framework",{"title":2416,"path":2417},"Application Layer: Central Orchestration and Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fapplication-layer-central-orchestration-and-coordination",{"title":2419,"path":2420},"Consensus Engine: XRP Ledger Consensus Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fconsensus-engine-xrp-ledger-consensus-protocol",{"title":2422,"path":2423},"Overlay Network: Peer-to-Peer Networking Layer","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Foverlay-network-peer-to-peer-networking-layer",{"title":2425,"path":2426},"Transaction Lifecycle: Complete Transaction Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransaction-lifecycle-complete-transaction-journey",{"title":2428,"path":2429},"Codebase Navigation: Efficiently Navigating the Rippled Source","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fcodebase-navigation-efficiently-navigating-the-rippled-source",{"title":2431,"path":2432},"Debugging Tools: Development and Debugging Techniques","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fdebugging-tools-development-and-debugging-techniques",{"title":2399,"path":2434,"children":2435},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks",[2436,2439,2442,2445],{"title":2437,"path":2438},"Homework 1: Transaction Flow Analysis","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework1",{"title":2440,"path":2441},"Homework 2: Transactor Code Exploration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework2",{"title":2443,"path":2444},"Homework 3: Logging and Debugging","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework3",{"title":2446,"path":2447},"Homework 4: Architecture Diagram","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework4",{"title":2449,"path":2450,"children":2451},"Anatomy of Rippled: SHAMap and NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03",[2452,2455,2458,2461,2462,2465,2468,2471,2474,2477,2480,2483],{"title":2453,"path":2454},"Foundational Concepts","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstate-management-challenges",{"title":2456,"path":2457},"Trees, Hashing, and Cryptographic Commitments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Ftree-fundamentals",{"title":2459,"path":2460},"SHAMap Architecture and Node Hierarchy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-architecture",{"title":5,"path":2276},{"title":2463,"path":2464},"Traversal, Iteration, and Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-synchronization",{"title":2466,"path":2467},"The NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fnodestore-architecture",{"title":2469,"path":2470},"Storage Abstraction and Backend Implementations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstorage-backends",{"title":2472,"path":2473},"Cache Layer and Performance Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fcache-layer",{"title":2475,"path":2476},"Database Operations and Lifecycle Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fdatabase-operations",{"title":2478,"path":2479},"Cryptographic Proofs and State Reconstruction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fproofs-state-reconstruction",{"title":2481,"path":2482},"Resource Management and Performance Characteristics","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fresource-management",{"title":2484,"path":2485,"children":2486},"Appendices","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices",[2487,2490,2493],{"title":2488,"path":2489},"Appendix : Codebase Navigation Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fnavigation",{"title":2491,"path":2492},"Appendix : Configuration Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fconfiguration",{"title":2494,"path":2495},"Appendix : Debugging and Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fdebugging",{"title":2497,"path":2498,"children":2499},"Transactors: Understanding the Lifecycle of a Transaction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis",[2500,2503,2506,2509,2512,2515,2518,2521,2524],{"title":2501,"path":2502},"Transactor Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ftransactor-architecture",{"title":2504,"path":2505},"Processing Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fprocessing-pipeline",{"title":2507,"path":2508},"Fee and Sequence Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ffee-sequence-handling",{"title":2510,"path":2511},"State Modification Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fstate-modification",{"title":2513,"path":2514},"TER Result Codes","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fter-result-codes",{"title":2516,"path":2517},"Case Study: CheckCreate Transactor","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fcase-study-checkcreate",{"title":2519,"path":2520},"Homework 1: Trace a Transaction Through All Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework1",{"title":2522,"path":2523},"Homework 2: Implement a Custom Validation Check","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework2",{"title":2525,"path":2526},"Homework 3: Analyze TER Code Paths","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework3",{"title":2528,"path":2529,"children":2530},"Cryptography I: Blockchain Security and Cryptographic Foundations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04",[2531,2534,2537,2540,2543,2546,2549,2552,2555,2558,2561,2564,2567,2578],{"title":2532,"path":2533},"The Four Pillars of Security","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-four-pillars-of-security",{"title":2535,"path":2536},"The Lifecycle of a Cryptographic Key","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-lifecycle-of-a-cryptographic-key",{"title":2538,"path":2539},"Random Number Generation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation",{"title":2541,"path":2542},"Random Number Generation & Entropy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation-and-entropy",{"title":2544,"path":2545},"Key Generation Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fkey-generation-pipeline",{"title":2547,"path":2548},"Transaction Signing & Verification","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Ftransaction-signing-and-verification",{"title":2550,"path":2551},"Hash Functions in XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhash-functions-in-xrpl",{"title":2553,"path":2554},"Base58Check Encoding","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fbase58check-encoding",{"title":2556,"path":2557},"Peer Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fpeer-handshake-protocol",{"title":2559,"path":2560},"Secure Memory Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fsecure-memory-handling",{"title":2562,"path":2563},"Common Cryptographic Pitfalls","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fcommon-cryptographic-pitfalls",{"title":2565,"path":2566},"Performance & Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fperformance-and-optimization",{"title":2484,"path":2568,"children":2569},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices",[2570,2572,2575],{"title":2488,"path":2571},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fcodebase-navigation-guide",{"title":2573,"path":2574},"Appendix : Debugging & Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fdebugging-and-development-tools",{"title":2576,"path":2577},"Appendix : RFCs and Standards Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Frfcs-and-standards-reference",{"title":2399,"path":2579,"children":2580},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks",[2581],{"title":2582,"path":2583},"Homework 1: Signature Verification Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks\u002Fhomework1",{"title":2585,"path":2586,"children":2587},"Cryptography II: Protocol Extensions and Quantum Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05",[2588,2591,2594,2597,2600,2603,2609],{"title":2589,"path":2590},"Overlay Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Foverlay-architecture",{"title":2592,"path":2593},"Connection Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fconnection-lifecycle",{"title":2595,"path":2596},"Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhandshake-protocol",{"title":2598,"path":2599},"Message Relaying","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fmessage-relaying",{"title":2601,"path":2602},"Peer Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fpeer-discovery",{"title":2484,"path":2604,"children":2605},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices",[2606],{"title":2607,"path":2608},"XLS-??d Quantum-Resistant Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices\u002Fxls-d",{"title":2399,"path":2610,"children":2611},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks",[2612],{"title":2613,"path":2614},"Homework 1: Building Quantum-Resistant Signatures for XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks\u002Fhomework1",{"title":2616,"path":2617,"children":2618},"Communication I: Understanding XRPL(d) RPC Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06",[2619,2622,2625,2628],{"title":2620,"path":2621},"RPC Handler Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frpc-handler-architecture",{"title":2623,"path":2624},"Request and Response Flow","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frequest-response-flow",{"title":2626,"path":2627},"Authentication and Authorization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Fauthentication-authorization",{"title":2629,"path":2630},"Error Handling and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Ferror-handling-validation",{"title":2632,"path":2633,"children":2634},"Communication II: Building and Integrating Custom RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07",[2635,2638,2641,2644,2647,2659],{"title":2636,"path":2637},"Implementing Custom Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fimplementing-custom-handlers",{"title":2639,"path":2640},"Testing RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Ftesting-rpc-handlers",{"title":2642,"path":2643},"Advanced Features","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fadvanced-features",{"title":2645,"path":2646},"Best Practices and Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fbest-practices-patterns",{"title":2484,"path":2648,"children":2649},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices",[2650,2653,2656],{"title":2651,"path":2652},"Appendix: Handler Examples","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhandler-examples",{"title":2654,"path":2655},"Appendix: Helper Functions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhelper-functions",{"title":2657,"path":2658},"Appendix: Debugging Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fdebugging-guide",{"title":2399,"path":2660,"children":2661},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks",[2662,2665,2668],{"title":2663,"path":2664},"Homework 1: Building a Custom RPC Handler","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhomework1",{"title":2666,"path":2667},"Hints","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhints",{"title":2669,"path":2670},"Snippets","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fsnippets",{"title":2672,"path":2673,"children":2674},"Consensus I: Node, Consensus, and Ledger Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08",[2675,2678,2681,2684,2687,2690,2693,2696],{"title":2676,"path":2677},"Consensus Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-fundamentals",{"title":2679,"path":2680},"Consensus Modes and Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-modes-phases",{"title":2682,"path":2683},"Consensus Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-lifecycle",{"title":2685,"path":2686},"Ledger Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-architecture",{"title":2688,"path":2689},"Ledger Data Structures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-data-structures",{"title":2691,"path":2692},"Ledger Acquisition and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-acquisition-validation",{"title":2694,"path":2695},"RPC and Peer Transaction Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Frpc-peer-tx-lifecycle",{"title":2399,"path":2697,"children":2698},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks",[2699,2702],{"title":2700,"path":2701},"Homework 1: Transaction Consensus Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework1",{"title":2703,"path":2704},"Homework 2: Consensus Dispute Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework2",{"title":2706,"path":2707,"children":2708},"Consensus II: UNLs and Ledger Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09",[2709,2712,2715,2718,2721,2724,2727],{"title":2710,"path":2711},"Transaction Ordering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Ftx-ordering",{"title":2713,"path":2714},"Consensus Validations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-validations",{"title":2716,"path":2717},"Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Famendments",{"title":2719,"path":2720},"UNL Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Funl",{"title":2722,"path":2723},"Consensus Peers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-peers",{"title":2725,"path":2726},"Homework 1: Validator Keys Setup and Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework1",{"title":2728,"path":2729},"Homework 2: Negative UNL Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework2",{"title":2731,"path":2732,"children":2733},"AMM: Automated Market Maker","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis",[2734,2737,2740,2743],{"title":2735,"path":2736},"AMM Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-architecture",{"title":2738,"path":2739},"AMM Transactions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-transactions",{"title":2741,"path":2742},"AMM Logic","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-logic",{"title":2744,"path":2745},"Pathfinding Integration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-pathfinding",{"title":2747,"path":2748,"children":2749},"Building Amendments: Lifecycle and Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10",[2750,2753,2756,2759,2762,2765,2768],{"title":2751,"path":2752},"Amendment Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-architecture",{"title":2754,"path":2755},"Amendment Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-lifecycle",{"title":2757,"path":2758},"Voting and Activation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fvoting-and-activation",{"title":2760,"path":2761},"Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fprotocol-impact",{"title":2763,"path":2764},"Network Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fnetwork-coordination",{"title":2766,"path":2767},"Monitoring and Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-monitoring",{"title":2769,"path":2770},"Homework 1: Amendment Status Analysis","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fhomework\u002Fhomework1","The XRPL Core Dev Bootcamp – Online Edition is a program designed for intermediate to advanced C++ developers looking to deepen their skills in the core of the XRP Ledger.",126,{"title":2774,"path":2775,"children":2776,"description":2783,"pages":141},"Tools","\u002Fdocs\u002Ftools",[2777,2780],{"title":2778,"path":2779},"Xaman Setup","\u002Fdocs\u002Ftools\u002Fxaman-setup",{"title":2781,"path":2782},"Metamask Setup","\u002Fdocs\u002Ftools\u002Fmetamask-setup","In this section you will find instructions on how to setup wallets and tools",1796220771101]