[{"data":1,"prerenderedAt":1619},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Ftree-fundamentals":3,"docs-kids-\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Ftree-fundamentals":1115,"docs-tracks":1116},{"id":4,"title":5,"body":6,"description":1107,"extension":1108,"meta":1109,"navigation":349,"path":1110,"seo":1111,"source":1112,"stem":1113,"__hash__":1114},"docs\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Ftree-fundamentals.md","Trees, Hashing, and Cryptographic Commitments",{"type":7,"value":8,"toc":1096},"minimark",[9,13,16,21,25,41,44,48,56,62,72,75,80,83,89,94,97,103,108,111,125,132,143,147,150,156,161,164,178,183,194,197,202,205,211,214,218,225,230,233,247,252,258,263,266,277,282,285,296,301,450,453,467,471,474,479,499,504,507,513,518,521,527,530,536,539,545,550,553,559,563,566,571,582,587,601,606,612,617,631,635,638,706,711,725,730,733,867,870,962,967,970,976,980,983,994,999,1002,1008,1013,1016,1022,1025,1029,1034,1081,1086,1089,1092],[10,11,5],"h1",{"id":12},"trees-hashing-and-cryptographic-commitments",[14,15],"hr",{},[17,18,20],"h2",{"id":19},"introduction","Introduction",[22,23,24],"p",{},"Before diving into the implementation of SHAMap and NodeStore, we need to understand the mathematical foundations they're built on. This chapter covers:",[26,27,28,32,35,38],"ul",{},[29,30,31],"li",{},"Cryptographic hashing and why it creates mathematical guarantees",[29,33,34],{},"Tree structures and why they matter for efficiency",[29,36,37],{},"How Merkle trees combine both to create verifiable commitments to data",[29,39,40],{},"Patricia tries and why they're optimal for key-value storage",[22,42,43],{},"Don't skip this chapter thinking it's just theory. Every design decision in SHAMap flows directly from the properties of these data structures. Understanding the foundations will make the implementation clear.",[17,45,47],{"id":46},"cryptographic-hash-functions","Cryptographic Hash Functions",[22,49,50,51,55],{},"A cryptographic hash function ",[52,53,54],"code",{},"H"," has three critical properties:",[22,57,58],{},[59,60,61],"strong",{},"1. Determinism",[63,64,69],"pre",{"className":65,"code":67,"language":68},[66],"language-text","H(x) always returns the same result\nH(\"hello\") = 0x2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824\nH(\"hello\") = 0x2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824\n","text",[52,70,67],{"__ignoreMap":71},"",[22,73,74],{},"Same input, always same output. This enables verification: others can compute the same hash and confirm correctness.",[22,76,77],{},[59,78,79],{},"2. Collision Resistance",[22,81,82],{},"Finding two different inputs with the same hash output is computationally infeasible:",[63,84,87],{"className":85,"code":86,"language":68},[66],"H(x) = H(y) where x ≠ y  → \"collision\"\n\nFor SHA-256: Finding a collision requires ~2^128 operations\nCurrent computers: ~10^18 operations\u002Fsecond\nTime required: 10^20 seconds ≈ 3 billion years\n\nCryptographic security: \"practical impossibility\"\n",[52,88,86],{"__ignoreMap":71},[22,90,91],{},[59,92,93],{},"3. Avalanche Effect",[22,95,96],{},"Tiny changes produce completely different outputs:",[63,98,101],{"className":99,"code":100,"language":68},[66],"H(\"hello\") = 0x2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824\nH(\"hallo\") = 0xd3751713b7ac3d1ab39b1f7b1859d6e7baeac08b8cdb1c8fefd1f96a3f3c17f8\n\nChange one character → hash completely changes\n",[52,102,100],{"__ignoreMap":71},[22,104,105],{},[59,106,107],{},"Implication for XRPL:",[22,109,110],{},"Hash output acts as a \"fingerprint\" of data:",[26,112,113,116,119,122],{},[29,114,115],{},"Two accounts with identical state have identical hashes",[29,117,118],{},"Even one byte difference produces completely different hashes",[29,120,121],{},"Anyone can verify a claimed hash by recomputing it",[29,123,124],{},"Cannot forge a hash without recomputing it (collision-resistant)",[22,126,127,128,131],{},"XRPL uses ",[59,129,130],{},"SHA-512Half",": First 256 bits of SHA-512. This gives:",[26,133,134,137,140],{},[29,135,136],{},"256-bit output (32 bytes, fits in a uint256)",[29,138,139],{},"Security level of ~128 bits (same as AES-128)",[29,141,142],{},"Good performance for cryptographic verification",[17,144,146],{"id":145},"tree-structures","Tree Structures",[22,148,149],{},"Trees are recursive data structures: a root node with zero or more children, each of which is a tree.",[63,151,154],{"className":152,"code":153,"language":68},[66],"         Root\n        \u002F  |  \\\n       \u002F   |   \\\n      A    B    C\n     \u002F \\   |   \u002F \\\n    D   E  F  G   H\n",[52,155,153],{"__ignoreMap":71},[22,157,158],{},[59,159,160],{},"Key Tree Property: Logarithmic Depth",[22,162,163],{},"For a balanced tree with branching factor B and N items:",[26,165,166,169,172,175],{},[29,167,168],{},"Depth = log_B(N)",[29,170,171],{},"Binary tree (B=2): 1M items → depth 20",[29,173,174],{},"Radix-16 tree (B=16): 1M items → depth 5",[29,176,177],{},"Radix-256 tree (B=256): 1M items → depth 3",[22,179,180],{},[59,181,182],{},"Why Depth Matters:",[26,184,185,188,191],{},[29,186,187],{},"Access time: proportional to depth",[29,189,190],{},"Update time: change leaf → rehash path from leaf to root (depth operations)",[29,192,193],{},"Synchronization: identify differences by comparing hashes (depth comparisons)",[22,195,196],{},"Higher branching factor = shallower tree = faster operations.",[22,198,199],{},[59,200,201],{},"The Balance Problem:",[22,203,204],{},"But trees can become unbalanced:",[63,206,209],{"className":207,"code":208,"language":68},[66],"Sequential insertion:\n\nBalanced (good):      Unbalanced (bad - linked list):\n      4                        1\n     \u002F \\                        \\\n    2   6                        2\n   \u002F|   |\\                        \\\n  1 3  5 7                         3\n                                    \\\n                                     4\n",[52,210,208],{"__ignoreMap":71},[22,212,213],{},"For blockchain state, accounts are inserted in unpredictable order. Without careful tree structure, you get unbalanced trees and logarithmic operations degrade.",[17,215,217],{"id":216},"patricia-tries-radix-tries","Patricia Tries (Radix Tries)",[22,219,220,221,224],{},"Patricia tries solve the balance problem by using the ",[59,222,223],{},"key itself as navigation",".",[22,226,227],{},[59,228,229],{},"Basic Idea:",[22,231,232],{},"For a 256-bit key (like an account address), use the bits to guide traversal:",[26,234,235,238,241,244],{},[29,236,237],{},"Radix-2 (binary): Each bit (0 or 1) determines left or right child",[29,239,240],{},"Radix-4: Each 2-bit pair determines one of 4 children",[29,242,243],{},"Radix-16 (hex): Each 4-bit nibble determines one of 16 children",[29,245,246],{},"Radix-256: Each 8-bit byte determines one of 256 children",[22,248,249],{},[59,250,251],{},"Example: Radix-16 Patricia Trie",[63,253,256],{"className":254,"code":255,"language":68},[66],"Account1 hash: 0x3A7F2E1B...\nAccount2 hash: 0x7B4C9D3A...\n\nAccount1: Navigate using hex digits\n  Level 0: Digit 0 (3) → go to child 3\n  Level 1: Digit 1 (A) → go to child A\n  Level 2: Digit 2 (7) → go to child 7\n  ...\n  Eventually reaches leaf containing Account1\n\nAccount2: Navigate using hex digits\n  Level 0: Digit 0 (7) → go to child 7\n  Level 1: Digit 1 (B) → go to child B\n  ...\n  Eventually reaches leaf containing Account2\n",[52,257,255],{"__ignoreMap":71},[22,259,260],{},[59,261,262],{},"Balance Guarantee:",[22,264,265],{},"Since navigation is determined by the key:",[26,267,268,271,274],{},[29,269,270],{},"All paths from root to any leaf have the same structure",[29,272,273],{},"Tree depth depends only on key length (256 bits \u002F 4 bits = 64 levels)",[29,275,276],{},"Perfect balance for any set of keys",[22,278,279],{},[59,280,281],{},"Space Trade-off:",[22,283,284],{},"Inner nodes have up to 16 pointers (for radix-16), but most sparse:",[26,286,287,290,293],{},[29,288,289],{},"Many branches are empty (no accounts in that range)",[29,291,292],{},"Compressed representation avoids wasting space",[29,294,295],{},"Net result: similar space as binary tree despite higher branching",[22,297,298],{},[59,299,300],{},"XRPL's Choice: Radix-16",[63,302,306],{"className":303,"code":304,"language":305,"meta":71,"style":71},"language-cpp shiki shiki-themes github-dark-high-contrast","\u002F\u002F From rippled source: 16 possible children per level\nstatic const int NUM_BRANCHES = 16;\n\n\u002F\u002F Each level represents 4 bits (one hex digit) of the key\nfor (int i = 0; i \u003C keyLengthInBits; i += 4) {\n    int branch = (key >> (keyLengthInBits - i - 4)) & 0x0F;\n    \u002F\u002F Navigate to child at position 'branch'\n}\n","cpp",[52,307,308,317,344,351,357,395,438,444],{"__ignoreMap":71},[309,310,313],"span",{"class":311,"line":312},"line",1,[309,314,316],{"class":315},"sQrFR","\u002F\u002F From rippled source: 16 possible children per level\n",[309,318,320,324,327,330,334,337,341],{"class":311,"line":319},2,[309,321,323],{"class":322},"sWyjQ","static",[309,325,326],{"class":322}," const",[309,328,329],{"class":322}," int",[309,331,333],{"class":332},"sMAXC"," NUM_BRANCHES ",[309,335,336],{"class":322},"=",[309,338,340],{"class":339},"sCcAr"," 16",[309,342,343],{"class":332},";\n",[309,345,347],{"class":311,"line":346},3,[309,348,350],{"emptyLinePlaceholder":349},true,"\n",[309,352,354],{"class":311,"line":353},4,[309,355,356],{"class":315},"\u002F\u002F Each level represents 4 bits (one hex digit) of the key\n",[309,358,360,363,366,369,372,374,377,380,383,386,389,392],{"class":311,"line":359},5,[309,361,362],{"class":322},"for",[309,364,365],{"class":332}," (",[309,367,368],{"class":322},"int",[309,370,371],{"class":332}," i ",[309,373,336],{"class":322},[309,375,376],{"class":339}," 0",[309,378,379],{"class":332},"; i ",[309,381,382],{"class":322},"\u003C",[309,384,385],{"class":332}," keyLengthInBits; i ",[309,387,388],{"class":322},"+=",[309,390,391],{"class":339}," 4",[309,393,394],{"class":332},") {\n",[309,396,398,401,404,406,409,412,415,418,420,422,424,427,430,433,436],{"class":311,"line":397},6,[309,399,400],{"class":322},"    int",[309,402,403],{"class":332}," branch ",[309,405,336],{"class":322},[309,407,408],{"class":332}," (key ",[309,410,411],{"class":322},">>",[309,413,414],{"class":332}," (keyLengthInBits ",[309,416,417],{"class":322},"-",[309,419,371],{"class":332},[309,421,417],{"class":322},[309,423,391],{"class":339},[309,425,426],{"class":332},")) ",[309,428,429],{"class":322},"&",[309,431,432],{"class":322}," 0x",[309,434,435],{"class":339},"0F",[309,437,343],{"class":332},[309,439,441],{"class":311,"line":440},7,[309,442,443],{"class":315},"    \u002F\u002F Navigate to child at position 'branch'\n",[309,445,447],{"class":311,"line":446},8,[309,448,449],{"class":332},"}\n",[22,451,452],{},"Why radix-16?",[26,454,455,458,461,464],{},[29,456,457],{},"Shallow trees: 256-bit keys → 64 levels (log_16 of ledger size)",[29,459,460],{},"Manageable fanout: 16 children per node (balanced tree complexity)",[29,462,463],{},"Natural alignment: hex notation matches code",[29,465,466],{},"Proven in Bitcoin and Ethereum: both use similar approaches",[17,468,470],{"id":469},"merkle-trees","Merkle Trees",[22,472,473],{},"A Merkle tree combines tree structure with cryptographic hashing:",[22,475,476],{},[59,477,478],{},"Definition:",[26,480,481,487,493],{},[29,482,483,486],{},[59,484,485],{},"Leaf nodes",": Contain data (accounts, transactions)",[29,488,489,492],{},[59,490,491],{},"Inner nodes",": Contain hashes of their children",[29,494,495,498],{},[59,496,497],{},"Root hash",": Represents the entire tree",[22,500,501],{},[59,502,503],{},"Key Property: Hash Propagation",[22,505,506],{},"When a leaf changes, its hash changes. This affects its parent:",[63,508,511],{"className":509,"code":510,"language":68},[66],"Step 1: Account changes\n  Old hash: H(\"Alice: 100 XRP\")\n  New hash: H(\"Alice: 90 XRP\")\n\nStep 2: Parent recomputes its hash\n  Old hash: H(H(Account) || H(Other_Accounts))\n  New hash: H(H(NewAccount) || H(Other_Accounts))\n\nStep 3: Grandparent recomputes\n  ... and so on up the tree\n\nRoot hash changes\n",[52,512,510],{"__ignoreMap":71},[22,514,515],{},[59,516,517],{},"Benefit: O(1) Subtree Comparison",[22,519,520],{},"Compare two trees:",[63,522,525],{"className":523,"code":524,"language":68},[66],"Tree A:                Tree B:\nRoot: 0xABCD          Root: 0xXYZW\n\n0xABCD == 0xXYZW?\n  YES:  Entire trees are identical\n  NO:   At least one leaf differs\n",[52,526,524],{"__ignoreMap":71},[22,528,529],{},"Without Merkle trees:",[63,531,534],{"className":532,"code":533,"language":68},[66],"Compare all N leaves directly: O(N) time\n",[52,535,533],{"__ignoreMap":71},[22,537,538],{},"With Merkle trees:",[63,540,543],{"className":541,"code":542,"language":68},[66],"Compare root hashes: O(1) time\nIf different, compare child hashes to find divergence: O(log N) comparisons\n",[52,544,542],{"__ignoreMap":71},[22,546,547],{},[59,548,549],{},"Benefit: Logarithmic Proofs",[22,551,552],{},"Prove that a specific item is in the tree:",[63,554,557],{"className":555,"code":556,"language":68},[66],"Merkle Proof for \"Alice: 90 XRP\":\n\nShow:  H(\"Alice: 90 XRP\") = 0x1234...\n       H(Sibling1) = 0x5678...\n       H(Sibling2) = 0x9ABC...\n\nVerifier computes:\n  Combine with siblings working up to root\n  Verify final hash matches claimed root\n\nOnly need to show O(log N) nodes, not entire tree\n",[52,558,556],{"__ignoreMap":71},[17,560,562],{"id":561},"xrpls-merkle-patricia-trie","XRPL's Merkle-Patricia Trie",[22,564,565],{},"XRPL's SHAMap combines both approaches:",[22,567,568],{},[59,569,570],{},"Patricia Trie Structure:",[26,572,573,576,579],{},[29,574,575],{},"Navigation determined by account key (256-bit hash)",[29,577,578],{},"Radix-16 branching (hex digit at each level)",[29,580,581],{},"Perfect balance regardless of account insertion order",[22,583,584],{},[59,585,586],{},"Merkle Properties:",[26,588,589,592,595,598],{},[29,590,591],{},"Each node contains hash of its content",[29,593,594],{},"Inner node hash computed from children's hashes",[29,596,597],{},"Root hash represents entire ledger state",[29,599,600],{},"Changes propagate up to root",[22,602,603],{},[59,604,605],{},"The Result:",[63,607,610],{"className":608,"code":609,"language":68},[66],"                      Root Hash (e.g., 0xABCD...)\n                     \u002F               |              \\\n              Hash(0x0...)      Hash(0x1...)    Hash(0x2...)\n              \u002F        |                              \\\n        Hash(0x00)  Hash(0x01)                   Hash(0x20)\n        \u002F     \\       \u002F    |                         \u002F    \\\n      Data  Data    Data  Data                    Data   Data\n     (acct) (acct)\n",[52,611,609],{"__ignoreMap":71},[22,613,614],{},[59,615,616],{},"Properties:",[26,618,619,622,625,628],{},[29,620,621],{},"Leaf depth: exactly log_16(number of accounts) ≈ 5 levels for 1M accounts",[29,623,624],{},"Hash changes: only O(log N) nodes affected by any modification",[29,626,627],{},"Verification: O(1) root hash comparison, O(log N) proof verification",[29,629,630],{},"Synchronization: O(log N) hash comparisons to find differences",[17,632,634],{"id":633},"hashing-algorithms-in-xrpl","Hashing Algorithms in XRPL",[22,636,637],{},"XRPL uses SHA-512Half for all hashing:",[63,639,641],{"className":303,"code":640,"language":305,"meta":71,"style":71},"\u002F\u002F From rippled source\nuint256 hashFunc(Blob const& data) {\n    using hasher = SHA512Half;  \u002F\u002F SHA-512, keep first 256 bits\n    return hasher()(data);\n}\n",[52,642,643,648,672,692,702],{"__ignoreMap":71},[309,644,645],{"class":311,"line":312},[309,646,647],{"class":315},"\u002F\u002F From rippled source\n",[309,649,650,654,658,661,664,667,670],{"class":311,"line":319},[309,651,653],{"class":652},"s_sBn","uint256",[309,655,657],{"class":656},"sj_SG"," hashFunc",[309,659,660],{"class":332},"(",[309,662,663],{"class":652},"Blob",[309,665,666],{"class":322}," const&",[309,668,669],{"class":652}," data",[309,671,394],{"class":332},[309,673,674,677,680,683,686,689],{"class":311,"line":346},[309,675,676],{"class":322},"    using",[309,678,679],{"class":652}," hasher",[309,681,682],{"class":322}," =",[309,684,685],{"class":652}," SHA512Half",[309,687,688],{"class":332},";",[309,690,691],{"class":315},"  \u002F\u002F SHA-512, keep first 256 bits\n",[309,693,694,697,699],{"class":311,"line":353},[309,695,696],{"class":322},"    return",[309,698,679],{"class":656},[309,700,701],{"class":332},"()(data);\n",[309,703,704],{"class":311,"line":359},[309,705,449],{"class":332},[22,707,708],{},[59,709,710],{},"Why SHA-512Half instead of SHA-256?",[26,712,713,716,719,722],{},[29,714,715],{},"SHA-512 has better performance on 64-bit CPUs",[29,717,718],{},"Taking first 256 bits gives same security as SHA-256",[29,720,721],{},"But faster on modern hardware",[29,723,724],{},"256-bit output fits uint256 perfectly",[22,726,727],{},[59,728,729],{},"Hash Computation in SHAMap:",[22,731,732],{},"Inner nodes hash their children's hashes:",[63,734,736],{"className":303,"code":735,"language":305,"meta":71,"style":71},"uint256 computeHash(SHAMapInnerNode& node) {\n    Blob data;\n    for (int i = 0; i \u003C 16; ++i) {\n        if (node.hasChild(i)) {\n            uint256 childHash = node.getChildHash(i);\n            data.append(childHash);  \u002F\u002F Concatenate child hashes\n        }\n    }\n    return SHA512Half(data);\n}\n",[52,737,738,757,765,795,809,828,842,847,852,862],{"__ignoreMap":71},[309,739,740,742,745,747,750,752,755],{"class":311,"line":312},[309,741,653],{"class":652},[309,743,744],{"class":656}," computeHash",[309,746,660],{"class":332},[309,748,749],{"class":652},"SHAMapInnerNode",[309,751,429],{"class":322},[309,753,754],{"class":652}," node",[309,756,394],{"class":332},[309,758,759,762],{"class":311,"line":319},[309,760,761],{"class":652},"    Blob",[309,763,764],{"class":332}," data;\n",[309,766,767,770,772,774,776,778,780,782,784,786,789,792],{"class":311,"line":346},[309,768,769],{"class":322},"    for",[309,771,365],{"class":332},[309,773,368],{"class":322},[309,775,371],{"class":332},[309,777,336],{"class":322},[309,779,376],{"class":339},[309,781,379],{"class":332},[309,783,382],{"class":322},[309,785,340],{"class":339},[309,787,788],{"class":332},"; ",[309,790,791],{"class":322},"++",[309,793,794],{"class":332},"i) {\n",[309,796,797,800,803,806],{"class":311,"line":353},[309,798,799],{"class":322},"        if",[309,801,802],{"class":332}," (node.",[309,804,805],{"class":656},"hasChild",[309,807,808],{"class":332},"(i)) {\n",[309,810,811,814,817,819,822,825],{"class":311,"line":359},[309,812,813],{"class":652},"            uint256",[309,815,816],{"class":332}," childHash ",[309,818,336],{"class":322},[309,820,821],{"class":332}," node.",[309,823,824],{"class":656},"getChildHash",[309,826,827],{"class":332},"(i);\n",[309,829,830,833,836,839],{"class":311,"line":397},[309,831,832],{"class":332},"            data.",[309,834,835],{"class":656},"append",[309,837,838],{"class":332},"(childHash);",[309,840,841],{"class":315},"  \u002F\u002F Concatenate child hashes\n",[309,843,844],{"class":311,"line":440},[309,845,846],{"class":332},"        }\n",[309,848,849],{"class":311,"line":446},[309,850,851],{"class":332},"    }\n",[309,853,855,857,859],{"class":311,"line":854},9,[309,856,696],{"class":322},[309,858,685],{"class":656},[309,860,861],{"class":332},"(data);\n",[309,863,865],{"class":311,"line":864},10,[309,866,449],{"class":332},[22,868,869],{},"Leaf nodes hash their content with a type prefix:",[63,871,873],{"className":303,"code":872,"language":305,"meta":71,"style":71},"uint256 computeHash(SHAMapLeafNode& leaf, Type type) {\n    Blob data;\n    data.push_back(type);  \u002F\u002F Type prefix prevents hash collision\n    data.append(leaf.getKey());\n    data.append(leaf.getData());\n    return SHA512Half(data);\n}\n",[52,874,875,902,908,922,937,950,958],{"__ignoreMap":71},[309,876,877,879,881,883,886,888,891,894,897,900],{"class":311,"line":312},[309,878,653],{"class":652},[309,880,744],{"class":656},[309,882,660],{"class":332},[309,884,885],{"class":652},"SHAMapLeafNode",[309,887,429],{"class":322},[309,889,890],{"class":652}," leaf",[309,892,893],{"class":332},", ",[309,895,896],{"class":652},"Type",[309,898,899],{"class":652}," type",[309,901,394],{"class":332},[309,903,904,906],{"class":311,"line":319},[309,905,761],{"class":652},[309,907,764],{"class":332},[309,909,910,913,916,919],{"class":311,"line":346},[309,911,912],{"class":332},"    data.",[309,914,915],{"class":656},"push_back",[309,917,918],{"class":332},"(type);",[309,920,921],{"class":315},"  \u002F\u002F Type prefix prevents hash collision\n",[309,923,924,926,928,931,934],{"class":311,"line":353},[309,925,912],{"class":332},[309,927,835],{"class":656},[309,929,930],{"class":332},"(leaf.",[309,932,933],{"class":656},"getKey",[309,935,936],{"class":332},"());\n",[309,938,939,941,943,945,948],{"class":311,"line":359},[309,940,912],{"class":332},[309,942,835],{"class":656},[309,944,930],{"class":332},[309,946,947],{"class":656},"getData",[309,949,936],{"class":332},[309,951,952,954,956],{"class":311,"line":397},[309,953,696],{"class":322},[309,955,685],{"class":656},[309,957,861],{"class":332},[309,959,960],{"class":311,"line":440},[309,961,449],{"class":332},[22,963,964],{},[59,965,966],{},"Why Type Prefixes?",[22,968,969],{},"Prevent collisions between different types of data:",[63,971,974],{"className":972,"code":973,"language":68},[66],"Account with data: 0xAA || 0xBBBB\nLeaf type 1, data 0xAA, item 0xBBBB\n\nTransaction with data: 0xAABB || 0xBB\nLeaf type 2, data 0xAABB, item 0xBB\n\nThese have same content but different meaning!\nWith type prefix:\n  H(1 || 0xAA || 0xBBBB) ≠ H(2 || 0xAABB || 0xBB)\n",[52,975,973],{"__ignoreMap":71},[17,977,979],{"id":978},"immutability-and-copy-on-write","Immutability and Copy-on-Write",[22,981,982],{},"Once a Merkle tree root hash is committed to (published in a ledger), that entire tree must be immutable:",[26,984,985,988,991],{},[29,986,987],{},"Changing any leaf would change the root hash",[29,989,990],{},"Root hash commitment would become invalid",[29,992,993],{},"Trust in the ledger is broken",[22,995,996],{},[59,997,998],{},"Solution: Snapshots",[22,1000,1001],{},"For each ledger version, create a snapshot:",[63,1003,1006],{"className":1004,"code":1005,"language":68},[66],"Current ledger state (in-memory, mutable):\n  SHAMap with live nodes, modified as transactions arrive\n\nLedger closes:\n  Create snapshot of current SHAMap\n  This becomes immutable historical ledger\n  All nodes locked (cannot be modified)\n\nNext ledger:\n  Start new mutable SHAMap (sharing unchanged nodes)\n  Apply next block of transactions\n  Close creates new immutable snapshot\n",[52,1007,1005],{"__ignoreMap":71},[22,1009,1010],{},[59,1011,1012],{},"Copy-on-Write:",[22,1014,1015],{},"When a mutable SHAMap modifies a shared node:",[63,1017,1020],{"className":1018,"code":1019,"language":68},[66],"Historical Ledger 1:     Historical Ledger 2:\n  Node A → Hash(old)       Node A → Hash(old)\n\nTransaction modifies Node A:\n  Can't modify Node A in place (Ledger 1 depends on it)\n  Create copy: Node A' → Hash(new)\n  Ledger 2 points to Node A'\n  Ledger 1 still points to Node A\n",[52,1021,1019],{"__ignoreMap":71},[22,1023,1024],{},"Both ledgers are verified by their root hashes, but they share most of the tree (unchanged nodes).",[17,1026,1028],{"id":1027},"summary","Summary",[22,1030,1031],{},[59,1032,1033],{},"Key Concepts:",[1035,1036,1037,1043,1049,1055,1061],"ol",{},[29,1038,1039,1042],{},[59,1040,1041],{},"Cryptographic hashing",": Creates fingerprints of data that are collision-resistant and deterministic",[29,1044,1045,1048],{},[59,1046,1047],{},"Trees",": Enable hierarchical organization with logarithmic depth and operations",[29,1050,1051,1054],{},[59,1052,1053],{},"Patricia tries",": Use key structure to guarantee balance regardless of insertion order",[29,1056,1057,1060],{},[59,1058,1059],{},"Merkle trees",": Combine hashing with tree structure to create verifiable commitments",[29,1062,1063,1066,1067],{},[59,1064,1065],{},"XRPL's design",": Radix-16 Patricia trie with Merkle hashing creates:",[26,1068,1069,1072,1075,1078],{},[29,1070,1071],{},"Perfect balance for any set of accounts",[29,1073,1074],{},"O(log N) operations for updates and proofs",[29,1076,1077],{},"O(1) tree comparison through root hash",[29,1079,1080],{},"Safe snapshots through copy-on-write",[22,1082,1083],{},[59,1084,1085],{},"Why This Matters:",[22,1087,1088],{},"Every algorithm in SHAMap—navigation, hashing, synchronization—follows directly from these properties. Understanding the math explains why the code is structured the way it is.",[22,1090,1091],{},"In the next chapter, we'll see how these principles are implemented in rippled's actual C++ code.",[1093,1094,1095],"style",{},"html pre.shiki code .sQrFR, html code.shiki .sQrFR{--shiki-default:#BDC4CC}html pre.shiki code .sWyjQ, html code.shiki .sWyjQ{--shiki-default:#FF9492}html pre.shiki code .sMAXC, html code.shiki .sMAXC{--shiki-default:#F0F3F6}html pre.shiki code .sCcAr, html code.shiki .sCcAr{--shiki-default:#91CBFF}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);}html pre.shiki code .s_sBn, html code.shiki .s_sBn{--shiki-default:#FFB757}html pre.shiki code .sj_SG, html code.shiki .sj_SG{--shiki-default:#DBB7FF}",{"title":71,"searchDepth":319,"depth":319,"links":1097},[1098,1099,1100,1101,1102,1103,1104,1105,1106],{"id":19,"depth":319,"text":20},{"id":46,"depth":319,"text":47},{"id":145,"depth":319,"text":146},{"id":216,"depth":319,"text":217},{"id":469,"depth":319,"text":470},{"id":561,"depth":319,"text":562},{"id":633,"depth":319,"text":634},{"id":978,"depth":319,"text":979},{"id":1027,"depth":319,"text":1028},"Trees, Hashing, and Cryptographic Commitments for Anatomy of Rippled: SHAMap and NodeStore, in the Core Dev Bootcamp: XRPL Commons docs.","md",{},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Ftree-fundamentals",{"title":5,"description":1107},"xrpl-trainings\u002Fcore-dev-bootcamp\u002Fmodule03\u002Ftree-fundamentals.md","docs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Ftree-fundamentals","nIRinNBoWTN5EHNGY2mHSCVqSn6JVfP-mYX3G4tyhq4",[],[1117,1159,1173,1193,1216,1608],{"title":1118,"path":1119,"children":1120,"description":1157,"pages":1158},"XRPL Basics","\u002Fdocs\u002Fxrpl-basics",[1121,1124,1127,1130,1133,1136,1139,1142,1145,1148,1151,1154],{"title":1122,"path":1123},"Getting Started","\u002Fdocs\u002Fxrpl-basics\u002Fgetting-started",{"title":1125,"path":1126},"Trustline","\u002Fdocs\u002Fxrpl-basics\u002Ftrustline",{"title":1128,"path":1129},"Payments","\u002Fdocs\u002Fxrpl-basics\u002Fpayments",{"title":1131,"path":1132},"Reading and subscribing to Transactions","\u002Fdocs\u002Fxrpl-basics\u002Freading-and-writing-memos",{"title":1134,"path":1135},"Writing and reading memos","\u002Fdocs\u002Fxrpl-basics\u002Fwriting-and-reading-memos",{"title":1137,"path":1138},"Non Fungible Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fnon-fungible-tokens",{"title":1140,"path":1141},"Multi-Purpose Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fmptoken",{"title":1143,"path":1144},"PathFinding","\u002Fdocs\u002Fxrpl-basics\u002Fpath-finding",{"title":1146,"path":1147},"Escrow","\u002Fdocs\u002Fxrpl-basics\u002Fescrow",{"title":1149,"path":1150},"Price Oracles","\u002Fdocs\u002Fxrpl-basics\u002Fprice-oracles",{"title":1152,"path":1153},"Tickets","\u002Fdocs\u002Fxrpl-basics\u002Ftickets",{"title":1155,"path":1156},"Multi-Signature","\u002Fdocs\u002Fxrpl-basics\u002Fmulti-signature","In this section we will cover some of the primary functionality of the XRPL ledger.",13,{"title":1160,"path":1161,"children":1162,"description":1172,"pages":353},"Token Issuance and Liquidity","\u002Fdocs\u002Ftoken-issuance-and-liquidity",[1163,1166,1169],{"title":1164,"path":1165},"Creating Accounts and Setup","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fcreating-accounts",{"title":1167,"path":1168},"Issuing Tokens","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fissuing-tokens",{"title":1170,"path":1171},"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":1174,"path":1175,"children":1176,"description":1192,"pages":397},"Cyphered Chat on XRPL","\u002Fdocs\u002Fcyphered-chat-on-xrpl",[1177,1180,1183,1186,1189],{"title":1178,"path":1179},"Set up","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up",{"title":1181,"path":1182},"Set up Keys","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-keys",{"title":1184,"path":1185},"Cypher the message","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fcypher-the-message",{"title":1187,"path":1188},"Set up the memo & send the tx","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-the-memo-and-send-the-tx",{"title":1190,"path":1191},"Get the message and decypher it","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fget-the-message-and-decypher-it","Send encrypted messages over XRPL",{"title":1194,"path":1195,"children":1196,"description":1215,"pages":440},"EVM Sidechain","\u002Fdocs\u002Fevm-sidechain",[1197,1200,1203,1206,1209,1212],{"title":1198,"path":1199},"Connecting Metamask","\u002Fdocs\u002Fevm-sidechain\u002Fconnecting-metamask",{"title":1201,"path":1202},"Set up a Foundry project","\u002Fdocs\u002Fevm-sidechain\u002Fset-up-an-evm-project",{"title":1204,"path":1205},"Bridging Assets","\u002Fdocs\u002Fevm-sidechain\u002Fbridging-assets",{"title":1207,"path":1208},"Remix","\u002Fdocs\u002Fevm-sidechain\u002Fremix",{"title":1210,"path":1211},"Banking App","\u002Fdocs\u002Fevm-sidechain\u002Fbanking-app",{"title":1213,"path":1214},"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":1217,"path":1218,"children":1219,"description":1606,"pages":1607},"Core Dev Bootcamp","\u002Fdocs\u002Fcore-dev-bootcamp",[1220,1240,1283,1331,1362,1419,1450,1466,1506,1540,1565,1581],{"title":1221,"path":1222,"children":1223},"Rippled I – Compilation, Configuration, and Launch","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01",[1224,1227,1230,1233],{"title":1225,"path":1226},"Environment & Build Toolchain","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fenvironment-build-toolchain",{"title":1228,"path":1229},"Compilation Process & Generating Binary","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fcompilation-process-generating-binary",{"title":1231,"path":1232},"Local Development & Testing","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Flocal-development-testing",{"title":1234,"path":1235,"children":1236},"Homeworks","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks",[1237],{"title":1238,"path":1239},"Homework 1: Rippled Node Setup and Mainnet Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks\u002Fhomework1",{"title":1241,"path":1242,"children":1243},"Rippled II: Deep Dive into the Protocol and Codebase","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02",[1244,1247,1250,1253,1256,1259,1262,1265,1268],{"title":1245,"path":1246},"Protocols: Communication and Interoperability","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fprotocols-communication-and-interoperability",{"title":1248,"path":1249},"Transactors: Transaction Processing Framework","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransactors-transaction-processing-framework",{"title":1251,"path":1252},"Application Layer: Central Orchestration and Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fapplication-layer-central-orchestration-and-coordination",{"title":1254,"path":1255},"Consensus Engine: XRP Ledger Consensus Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fconsensus-engine-xrp-ledger-consensus-protocol",{"title":1257,"path":1258},"Overlay Network: Peer-to-Peer Networking Layer","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Foverlay-network-peer-to-peer-networking-layer",{"title":1260,"path":1261},"Transaction Lifecycle: Complete Transaction Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransaction-lifecycle-complete-transaction-journey",{"title":1263,"path":1264},"Codebase Navigation: Efficiently Navigating the Rippled Source","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fcodebase-navigation-efficiently-navigating-the-rippled-source",{"title":1266,"path":1267},"Debugging Tools: Development and Debugging Techniques","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fdebugging-tools-development-and-debugging-techniques",{"title":1234,"path":1269,"children":1270},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks",[1271,1274,1277,1280],{"title":1272,"path":1273},"Homework 1: Transaction Flow Analysis","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework1",{"title":1275,"path":1276},"Homework 2: Transactor Code Exploration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework2",{"title":1278,"path":1279},"Homework 3: Logging and Debugging","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework3",{"title":1281,"path":1282},"Homework 4: Architecture Diagram","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework4",{"title":1284,"path":1285,"children":1286},"Anatomy of Rippled: SHAMap and NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03",[1287,1290,1291,1294,1297,1300,1303,1306,1309,1312,1315,1318],{"title":1288,"path":1289},"Foundational Concepts","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstate-management-challenges",{"title":5,"path":1110},{"title":1292,"path":1293},"SHAMap Architecture and Node Hierarchy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-architecture",{"title":1295,"path":1296},"Navigation, Hashing, and Merkle Properties","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-navigation-hashing",{"title":1298,"path":1299},"Traversal, Iteration, and Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-synchronization",{"title":1301,"path":1302},"The NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fnodestore-architecture",{"title":1304,"path":1305},"Storage Abstraction and Backend Implementations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstorage-backends",{"title":1307,"path":1308},"Cache Layer and Performance Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fcache-layer",{"title":1310,"path":1311},"Database Operations and Lifecycle Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fdatabase-operations",{"title":1313,"path":1314},"Cryptographic Proofs and State Reconstruction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fproofs-state-reconstruction",{"title":1316,"path":1317},"Resource Management and Performance Characteristics","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fresource-management",{"title":1319,"path":1320,"children":1321},"Appendices","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices",[1322,1325,1328],{"title":1323,"path":1324},"Appendix : Codebase Navigation Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fnavigation",{"title":1326,"path":1327},"Appendix : Configuration Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fconfiguration",{"title":1329,"path":1330},"Appendix : Debugging and Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fdebugging",{"title":1332,"path":1333,"children":1334},"Transactors: Understanding the Lifecycle of a Transaction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis",[1335,1338,1341,1344,1347,1350,1353,1356,1359],{"title":1336,"path":1337},"Transactor Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ftransactor-architecture",{"title":1339,"path":1340},"Processing Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fprocessing-pipeline",{"title":1342,"path":1343},"Fee and Sequence Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ffee-sequence-handling",{"title":1345,"path":1346},"State Modification Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fstate-modification",{"title":1348,"path":1349},"TER Result Codes","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fter-result-codes",{"title":1351,"path":1352},"Case Study: CheckCreate Transactor","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fcase-study-checkcreate",{"title":1354,"path":1355},"Homework 1: Trace a Transaction Through All Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework1",{"title":1357,"path":1358},"Homework 2: Implement a Custom Validation Check","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework2",{"title":1360,"path":1361},"Homework 3: Analyze TER Code Paths","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework3",{"title":1363,"path":1364,"children":1365},"Cryptography I: Blockchain Security and Cryptographic Foundations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04",[1366,1369,1372,1375,1378,1381,1384,1387,1390,1393,1396,1399,1402,1413],{"title":1367,"path":1368},"The Four Pillars of Security","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-four-pillars-of-security",{"title":1370,"path":1371},"The Lifecycle of a Cryptographic Key","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-lifecycle-of-a-cryptographic-key",{"title":1373,"path":1374},"Random Number Generation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation",{"title":1376,"path":1377},"Random Number Generation & Entropy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation-and-entropy",{"title":1379,"path":1380},"Key Generation Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fkey-generation-pipeline",{"title":1382,"path":1383},"Transaction Signing & Verification","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Ftransaction-signing-and-verification",{"title":1385,"path":1386},"Hash Functions in XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhash-functions-in-xrpl",{"title":1388,"path":1389},"Base58Check Encoding","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fbase58check-encoding",{"title":1391,"path":1392},"Peer Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fpeer-handshake-protocol",{"title":1394,"path":1395},"Secure Memory Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fsecure-memory-handling",{"title":1397,"path":1398},"Common Cryptographic Pitfalls","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fcommon-cryptographic-pitfalls",{"title":1400,"path":1401},"Performance & Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fperformance-and-optimization",{"title":1319,"path":1403,"children":1404},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices",[1405,1407,1410],{"title":1323,"path":1406},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fcodebase-navigation-guide",{"title":1408,"path":1409},"Appendix : Debugging & Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fdebugging-and-development-tools",{"title":1411,"path":1412},"Appendix : RFCs and Standards Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Frfcs-and-standards-reference",{"title":1234,"path":1414,"children":1415},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks",[1416],{"title":1417,"path":1418},"Homework 1: Signature Verification Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks\u002Fhomework1",{"title":1420,"path":1421,"children":1422},"Cryptography II: Protocol Extensions and Quantum Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05",[1423,1426,1429,1432,1435,1438,1444],{"title":1424,"path":1425},"Overlay Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Foverlay-architecture",{"title":1427,"path":1428},"Connection Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fconnection-lifecycle",{"title":1430,"path":1431},"Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhandshake-protocol",{"title":1433,"path":1434},"Message Relaying","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fmessage-relaying",{"title":1436,"path":1437},"Peer Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fpeer-discovery",{"title":1319,"path":1439,"children":1440},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices",[1441],{"title":1442,"path":1443},"XLS-??d Quantum-Resistant Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices\u002Fxls-d",{"title":1234,"path":1445,"children":1446},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks",[1447],{"title":1448,"path":1449},"Homework 1: Building Quantum-Resistant Signatures for XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks\u002Fhomework1",{"title":1451,"path":1452,"children":1453},"Communication I: Understanding XRPL(d) RPC Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06",[1454,1457,1460,1463],{"title":1455,"path":1456},"RPC Handler Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frpc-handler-architecture",{"title":1458,"path":1459},"Request and Response Flow","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frequest-response-flow",{"title":1461,"path":1462},"Authentication and Authorization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Fauthentication-authorization",{"title":1464,"path":1465},"Error Handling and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Ferror-handling-validation",{"title":1467,"path":1468,"children":1469},"Communication II: Building and Integrating Custom RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07",[1470,1473,1476,1479,1482,1494],{"title":1471,"path":1472},"Implementing Custom Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fimplementing-custom-handlers",{"title":1474,"path":1475},"Testing RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Ftesting-rpc-handlers",{"title":1477,"path":1478},"Advanced Features","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fadvanced-features",{"title":1480,"path":1481},"Best Practices and Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fbest-practices-patterns",{"title":1319,"path":1483,"children":1484},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices",[1485,1488,1491],{"title":1486,"path":1487},"Appendix: Handler Examples","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhandler-examples",{"title":1489,"path":1490},"Appendix: Helper Functions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhelper-functions",{"title":1492,"path":1493},"Appendix: Debugging Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fdebugging-guide",{"title":1234,"path":1495,"children":1496},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks",[1497,1500,1503],{"title":1498,"path":1499},"Homework 1: Building a Custom RPC Handler","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhomework1",{"title":1501,"path":1502},"Hints","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhints",{"title":1504,"path":1505},"Snippets","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fsnippets",{"title":1507,"path":1508,"children":1509},"Consensus I: Node, Consensus, and Ledger Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08",[1510,1513,1516,1519,1522,1525,1528,1531],{"title":1511,"path":1512},"Consensus Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-fundamentals",{"title":1514,"path":1515},"Consensus Modes and Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-modes-phases",{"title":1517,"path":1518},"Consensus Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-lifecycle",{"title":1520,"path":1521},"Ledger Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-architecture",{"title":1523,"path":1524},"Ledger Data Structures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-data-structures",{"title":1526,"path":1527},"Ledger Acquisition and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-acquisition-validation",{"title":1529,"path":1530},"RPC and Peer Transaction Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Frpc-peer-tx-lifecycle",{"title":1234,"path":1532,"children":1533},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks",[1534,1537],{"title":1535,"path":1536},"Homework 1: Transaction Consensus Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework1",{"title":1538,"path":1539},"Homework 2: Consensus Dispute Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework2",{"title":1541,"path":1542,"children":1543},"Consensus II: UNLs and Ledger Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09",[1544,1547,1550,1553,1556,1559,1562],{"title":1545,"path":1546},"Transaction Ordering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Ftx-ordering",{"title":1548,"path":1549},"Consensus Validations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-validations",{"title":1551,"path":1552},"Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Famendments",{"title":1554,"path":1555},"UNL Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Funl",{"title":1557,"path":1558},"Consensus Peers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-peers",{"title":1560,"path":1561},"Homework 1: Validator Keys Setup and Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework1",{"title":1563,"path":1564},"Homework 2: Negative UNL Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework2",{"title":1566,"path":1567,"children":1568},"AMM: Automated Market Maker","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis",[1569,1572,1575,1578],{"title":1570,"path":1571},"AMM Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-architecture",{"title":1573,"path":1574},"AMM Transactions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-transactions",{"title":1576,"path":1577},"AMM Logic","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-logic",{"title":1579,"path":1580},"Pathfinding Integration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-pathfinding",{"title":1582,"path":1583,"children":1584},"Building Amendments: Lifecycle and Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10",[1585,1588,1591,1594,1597,1600,1603],{"title":1586,"path":1587},"Amendment Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-architecture",{"title":1589,"path":1590},"Amendment Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-lifecycle",{"title":1592,"path":1593},"Voting and Activation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fvoting-and-activation",{"title":1595,"path":1596},"Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fprotocol-impact",{"title":1598,"path":1599},"Network Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fnetwork-coordination",{"title":1601,"path":1602},"Monitoring and Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-monitoring",{"title":1604,"path":1605},"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":1609,"path":1610,"children":1611,"description":1618,"pages":346},"Tools","\u002Fdocs\u002Ftools",[1612,1615],{"title":1613,"path":1614},"Xaman Setup","\u002Fdocs\u002Ftools\u002Fxaman-setup",{"title":1616,"path":1617},"Metamask Setup","\u002Fdocs\u002Ftools\u002Fmetamask-setup","In this section you will find instructions on how to setup wallets and tools",1796220771734]