[{"data":1,"prerenderedAt":1976},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fproofs-state-reconstruction":3,"docs-kids-\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fproofs-state-reconstruction":1473,"docs-tracks":1474},{"id":4,"title":5,"body":6,"description":1465,"extension":1466,"meta":1467,"navigation":148,"path":1468,"seo":1469,"source":1470,"stem":1471,"__hash__":1472},"docs\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fproofs-state-reconstruction.md","Cryptographic Proofs and State Reconstruction",{"type":7,"value":8,"toc":1455},"minimark",[9,13,16,21,25,28,44,48,51,57,501,506,509,517,522,528,532,535,540,972,977,983,987,992,998,1003,1009,1014,1020,1025,1031,1035,1042,1047,1053,1058,1061,1120,1125,1131,1136,1142,1146,1149,1154,1160,1165,1171,1176,1182,1186,1191,1233,1238,1282,1287,1349,1354,1385,1389,1394,1426,1431,1437,1442,1448,1451],[10,11,5],"h1",{"id":12},"cryptographic-proofs-and-state-reconstruction",[14,15],"hr",{},[17,18,20],"h2",{"id":19},"introduction","Introduction",[22,23,24],"p",{},"The combination of SHAMap and NodeStore provides more than just efficient storage—they enable cryptographic proofs that transactions were executed correctly and state was computed honestly.",[22,26,27],{},"This chapter explores:",[29,30,31,35,38,41],"ul",{},[32,33,34],"li",{},"Merkle proof generation and verification",[32,36,37],{},"State reconstruction from transaction history",[32,39,40],{},"Cross-chain or light-client verification",[32,42,43],{},"The guarantee of verifiable ledger history",[17,45,47],{"id":46},"merkle-proof-generation","Merkle Proof Generation",[22,49,50],{},"A Merkle proof allows someone to verify that data is in a tree without reconstructing the entire tree.",[22,52,53],{},[54,55,56],"strong",{},"Algorithm: getProofPath",[58,59,64],"pre",{"className":60,"code":61,"language":62,"meta":63,"style":63},"language-cpp shiki shiki-themes github-dark-high-contrast","std::optional\u003Cstd::vector\u003CBlob>>\nSHAMap::getProofPath(uint256 const& key)\n{\n    std::vector\u003CBlob> path;\n\n    auto node = std::dynamic_pointer_cast\u003CSHAMapInnerNode>(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        \u002F\u002F Is this the target leaf?\n        if (auto leaf = std::dynamic_pointer_cast\u003CSHAMapLeafNode>(node)) {\n            if (leaf->getKey() == key) {\n                return path;  \u002F\u002F Success\n            } else {\n                return std::nullopt;  \u002F\u002F Wrong leaf\n            }\n        }\n\n        \u002F\u002F Navigate to next level\n        int branch = key.nthNibble(depth);\n        node = std::dynamic_pointer_cast\u003CSHAMapInnerNode>(\n            node->getChild(branch));\n\n        if (!node) {\n            return std::nullopt;  \u002F\u002F Path doesn't exist\n        }\n    }\n\n    return std::nullopt;  \u002F\u002F Shouldn't reach here\n}\n","cpp","",[65,66,67,97,119,125,143,150,178,183,221,228,248,260,265,271,301,322,334,346,359,365,371,376,382,402,423,435,440,453,466,471,477,482,495],"code",{"__ignoreMap":63},[68,69,72,76,80,84,86,89,91,94],"span",{"class":70,"line":71},"line",1,[68,73,75],{"class":74},"s_sBn","std",[68,77,79],{"class":78},"sMAXC","::optional",[68,81,83],{"class":82},"sWyjQ","\u003C",[68,85,75],{"class":74},[68,87,88],{"class":78},"::vector",[68,90,83],{"class":82},[68,92,93],{"class":78},"Blob",[68,95,96],{"class":82},">>\n",[68,98,100,103,106,110,113,116],{"class":70,"line":99},2,[68,101,102],{"class":74},"SHAMap",[68,104,105],{"class":78},"::",[68,107,109],{"class":108},"sj_SG","getProofPath",[68,111,112],{"class":78},"(uint256 ",[68,114,115],{"class":82},"const&",[68,117,118],{"class":78}," key)\n",[68,120,122],{"class":70,"line":121},3,[68,123,124],{"class":78},"{\n",[68,126,128,131,133,136,138,140],{"class":70,"line":127},4,[68,129,130],{"class":74},"    std",[68,132,105],{"class":78},[68,134,135],{"class":74},"vector",[68,137,83],{"class":78},[68,139,93],{"class":74},[68,141,142],{"class":78},"> path;\n",[68,144,146],{"class":70,"line":145},5,[68,147,149],{"emptyLinePlaceholder":148},true,"\n",[68,151,153,156,159,162,165,167,170,172,175],{"class":70,"line":152},6,[68,154,155],{"class":82},"    auto",[68,157,158],{"class":78}," node ",[68,160,161],{"class":82},"=",[68,163,164],{"class":74}," std",[68,166,105],{"class":78},[68,168,169],{"class":108},"dynamic_pointer_cast",[68,171,83],{"class":78},[68,173,174],{"class":74},"SHAMapInnerNode",[68,176,177],{"class":78},">(mRoot);\n",[68,179,181],{"class":70,"line":180},7,[68,182,149],{"emptyLinePlaceholder":148},[68,184,186,189,192,195,198,200,204,207,209,212,215,218],{"class":70,"line":185},8,[68,187,188],{"class":82},"    for",[68,190,191],{"class":78}," (",[68,193,194],{"class":82},"int",[68,196,197],{"class":78}," depth ",[68,199,161],{"class":82},[68,201,203],{"class":202},"sCcAr"," 0",[68,205,206],{"class":78},"; depth ",[68,208,83],{"class":82},[68,210,211],{"class":202}," 64",[68,213,214],{"class":78},"; ",[68,216,217],{"class":82},"++",[68,219,220],{"class":78},"depth) {\n",[68,222,224],{"class":70,"line":223},9,[68,225,227],{"class":226},"sQrFR","        \u002F\u002F Serialize current node\n",[68,229,231,234,237,239,242,245],{"class":70,"line":230},10,[68,232,233],{"class":74},"        Blob",[68,235,236],{"class":78}," serialized ",[68,238,161],{"class":82},[68,240,241],{"class":78}," node->",[68,243,244],{"class":108},"serialize",[68,246,247],{"class":78},"();\n",[68,249,251,254,257],{"class":70,"line":250},11,[68,252,253],{"class":78},"        path.",[68,255,256],{"class":108},"push_back",[68,258,259],{"class":78},"(serialized);\n",[68,261,263],{"class":70,"line":262},12,[68,264,149],{"emptyLinePlaceholder":148},[68,266,268],{"class":70,"line":267},13,[68,269,270],{"class":226},"        \u002F\u002F Is this the target leaf?\n",[68,272,274,277,279,282,285,287,289,291,293,295,298],{"class":70,"line":273},14,[68,275,276],{"class":82},"        if",[68,278,191],{"class":78},[68,280,281],{"class":82},"auto",[68,283,284],{"class":78}," leaf ",[68,286,161],{"class":82},[68,288,164],{"class":74},[68,290,105],{"class":78},[68,292,169],{"class":108},[68,294,83],{"class":78},[68,296,297],{"class":74},"SHAMapLeafNode",[68,299,300],{"class":78},">(node)) {\n",[68,302,304,307,310,313,316,319],{"class":70,"line":303},15,[68,305,306],{"class":82},"            if",[68,308,309],{"class":78}," (leaf->",[68,311,312],{"class":108},"getKey",[68,314,315],{"class":78},"() ",[68,317,318],{"class":82},"==",[68,320,321],{"class":78}," key) {\n",[68,323,325,328,331],{"class":70,"line":324},16,[68,326,327],{"class":82},"                return",[68,329,330],{"class":78}," path;",[68,332,333],{"class":226},"  \u002F\u002F Success\n",[68,335,337,340,343],{"class":70,"line":336},17,[68,338,339],{"class":78},"            } ",[68,341,342],{"class":82},"else",[68,344,345],{"class":78}," {\n",[68,347,349,351,353,356],{"class":70,"line":348},18,[68,350,327],{"class":82},[68,352,164],{"class":74},[68,354,355],{"class":78},"::nullopt;",[68,357,358],{"class":226},"  \u002F\u002F Wrong leaf\n",[68,360,362],{"class":70,"line":361},19,[68,363,364],{"class":78},"            }\n",[68,366,368],{"class":70,"line":367},20,[68,369,370],{"class":78},"        }\n",[68,372,374],{"class":70,"line":373},21,[68,375,149],{"emptyLinePlaceholder":148},[68,377,379],{"class":70,"line":378},22,[68,380,381],{"class":226},"        \u002F\u002F Navigate to next level\n",[68,383,385,388,391,393,396,399],{"class":70,"line":384},23,[68,386,387],{"class":82},"        int",[68,389,390],{"class":78}," branch ",[68,392,161],{"class":82},[68,394,395],{"class":78}," key.",[68,397,398],{"class":108},"nthNibble",[68,400,401],{"class":78},"(depth);\n",[68,403,405,408,410,412,414,416,418,420],{"class":70,"line":404},24,[68,406,407],{"class":78},"        node ",[68,409,161],{"class":82},[68,411,164],{"class":74},[68,413,105],{"class":78},[68,415,169],{"class":108},[68,417,83],{"class":78},[68,419,174],{"class":74},[68,421,422],{"class":78},">(\n",[68,424,426,429,432],{"class":70,"line":425},25,[68,427,428],{"class":78},"            node->",[68,430,431],{"class":108},"getChild",[68,433,434],{"class":78},"(branch));\n",[68,436,438],{"class":70,"line":437},26,[68,439,149],{"emptyLinePlaceholder":148},[68,441,443,445,447,450],{"class":70,"line":442},27,[68,444,276],{"class":82},[68,446,191],{"class":78},[68,448,449],{"class":82},"!",[68,451,452],{"class":78},"node) {\n",[68,454,456,459,461,463],{"class":70,"line":455},28,[68,457,458],{"class":82},"            return",[68,460,164],{"class":74},[68,462,355],{"class":78},[68,464,465],{"class":226},"  \u002F\u002F Path doesn't exist\n",[68,467,469],{"class":70,"line":468},29,[68,470,370],{"class":78},[68,472,474],{"class":70,"line":473},30,[68,475,476],{"class":78},"    }\n",[68,478,480],{"class":70,"line":479},31,[68,481,149],{"emptyLinePlaceholder":148},[68,483,485,488,490,492],{"class":70,"line":484},32,[68,486,487],{"class":82},"    return",[68,489,164],{"class":74},[68,491,355],{"class":78},[68,493,494],{"class":226},"  \u002F\u002F Shouldn't reach here\n",[68,496,498],{"class":70,"line":497},33,[68,499,500],{"class":78},"}\n",[22,502,503],{},[54,504,505],{},"Example Proof:",[22,507,508],{},"For an account with key 0x3A7F2E1B...:",[58,510,515],{"className":511,"code":513,"language":514},[512],"language-text","Proof path (from root to leaf):\n\n[0]: Inner node (root)\n     Hash: 0x1234... (all state)\n     Children: [3 -> 0xABCD..., 5 -> 0x5678..., ...]\n\n[1]: Inner node (depth 1, branch 3)\n     Hash: 0xABCD... (state with branch 3)\n     Children: [A -> 0xEF12..., B -> 0x3456..., ...]\n\n[2]: Inner node (depth 2, branch A)\n     Hash: 0xEF12... (state with branch 3, then A)\n     Children: [7 -> 0x7890..., ...]\n\n[3]: Inner node (depth 3, branch 7)\n     Hash: 0x7890... (state with branch 3, A, 7)\n     Children: [F -> 0x8765..., ...]\n\n[4]: Leaf node\n     Content: {Account, Data}\n     Hash: 0x8765... (account data)\n\nTotal: 5 nodes (including leaf)\nSize: ~500 bytes for 5 serialized nodes\n","text",[65,516,513],{"__ignoreMap":63},[22,518,519],{},[54,520,521],{},"Proof Size Properties:",[58,523,526],{"className":524,"code":525,"language":514},[512],"Tree size: 1 million accounts\nTree depth: log_16(1M) ≈ 5 levels\n\nProof includes:\n  5 inner nodes + 1 leaf: ~100 bytes per node\n  Total: ~600 bytes\n\nWithout proof:\n  Send all 1M accounts: gigabytes\n\nProof is logarithmic in tree size\nVerification requires one hash per level: O(log N)\n",[65,527,525],{"__ignoreMap":63},[17,529,531],{"id":530},"proof-verification","Proof Verification",[22,533,534],{},"Verifying a proof requires only the root hash and the proof:",[22,536,537],{},[54,538,539],{},"Algorithm: verifyProofPath",[58,541,543],{"className":60,"code":542,"language":62,"meta":63,"style":63},"bool verifyProofPath(\n    uint256 const& key,\n    uint256 const& expectedRootHash,\n    std::vector\u003CBlob> const& proof)\n{\n    if (proof.empty()) {\n        return false;\n    }\n\n    \u002F\u002F Start from leaf (last in proof)\n    auto leafNode = deserializeNode(proof.back(), \u002F* leaf *\u002F);\n    if (!leafNode || leafNode->getKey() != key) {\n        return false;\n    }\n\n    \u002F\u002F Compute leaf hash\n    uint256 computedHash = leafNode->computeHash();\n\n    \u002F\u002F Walk from leaf toward root\n    for (int i = (int)proof.size() - 2; i >= 0; --i) {\n        auto innerNode = deserializeNode(proof[i], \u002F* inner *\u002F);\n        if (!innerNode) {\n            return false;\n        }\n\n        \u002F\u002F Determine which branch we came from\n        int depth = i;\n        int branch = key.nthNibble(depth);\n\n        \u002F\u002F Verify the child hash matches\n        if (innerNode->getChildHash(branch) != computedHash) {\n            return false;  \u002F\u002F Proof is invalid\n        }\n\n        \u002F\u002F Compute this node's hash for next iteration\n        computedHash = innerNode->computeHash();\n    }\n\n    \u002F\u002F Verify final hash matches expected root\n    return (computedHash == expectedRootHash);\n}\n",[65,544,545,556,570,581,604,608,622,633,637,641,646,673,699,707,711,715,720,736,740,745,792,812,823,831,835,839,844,855,869,873,878,896,908,912,917,923,938,943,948,954,967],{"__ignoreMap":63},[68,546,547,550,553],{"class":70,"line":71},[68,548,549],{"class":82},"bool",[68,551,552],{"class":108}," verifyProofPath",[68,554,555],{"class":78},"(\n",[68,557,558,561,564,567],{"class":70,"line":99},[68,559,560],{"class":74},"    uint256",[68,562,563],{"class":82}," const&",[68,565,566],{"class":74}," key",[68,568,569],{"class":78},",\n",[68,571,572,574,576,579],{"class":70,"line":121},[68,573,560],{"class":74},[68,575,563],{"class":82},[68,577,578],{"class":74}," expectedRootHash",[68,580,569],{"class":78},[68,582,583,585,587,589,591,593,596,598,601],{"class":70,"line":127},[68,584,130],{"class":74},[68,586,105],{"class":78},[68,588,135],{"class":74},[68,590,83],{"class":78},[68,592,93],{"class":74},[68,594,595],{"class":78},"> ",[68,597,115],{"class":82},[68,599,600],{"class":74}," proof",[68,602,603],{"class":78},")\n",[68,605,606],{"class":70,"line":145},[68,607,124],{"class":78},[68,609,610,613,616,619],{"class":70,"line":152},[68,611,612],{"class":82},"    if",[68,614,615],{"class":78}," (proof.",[68,617,618],{"class":108},"empty",[68,620,621],{"class":78},"()) {\n",[68,623,624,627,630],{"class":70,"line":180},[68,625,626],{"class":82},"        return",[68,628,629],{"class":202}," false",[68,631,632],{"class":78},";\n",[68,634,635],{"class":70,"line":185},[68,636,476],{"class":78},[68,638,639],{"class":70,"line":223},[68,640,149],{"emptyLinePlaceholder":148},[68,642,643],{"class":70,"line":230},[68,644,645],{"class":226},"    \u002F\u002F Start from leaf (last in proof)\n",[68,647,648,650,653,655,658,661,664,667,670],{"class":70,"line":250},[68,649,155],{"class":82},[68,651,652],{"class":78}," leafNode ",[68,654,161],{"class":82},[68,656,657],{"class":108}," deserializeNode",[68,659,660],{"class":78},"(proof.",[68,662,663],{"class":108},"back",[68,665,666],{"class":78},"(),",[68,668,669],{"class":226}," \u002F* leaf *\u002F",[68,671,672],{"class":78},");\n",[68,674,675,677,679,681,684,687,690,692,694,697],{"class":70,"line":262},[68,676,612],{"class":82},[68,678,191],{"class":78},[68,680,449],{"class":82},[68,682,683],{"class":78},"leafNode ",[68,685,686],{"class":82},"||",[68,688,689],{"class":78}," leafNode->",[68,691,312],{"class":108},[68,693,315],{"class":78},[68,695,696],{"class":82},"!=",[68,698,321],{"class":78},[68,700,701,703,705],{"class":70,"line":267},[68,702,626],{"class":82},[68,704,629],{"class":202},[68,706,632],{"class":78},[68,708,709],{"class":70,"line":273},[68,710,476],{"class":78},[68,712,713],{"class":70,"line":303},[68,714,149],{"emptyLinePlaceholder":148},[68,716,717],{"class":70,"line":324},[68,718,719],{"class":226},"    \u002F\u002F Compute leaf hash\n",[68,721,722,724,727,729,731,734],{"class":70,"line":336},[68,723,560],{"class":74},[68,725,726],{"class":78}," computedHash ",[68,728,161],{"class":82},[68,730,689],{"class":78},[68,732,733],{"class":108},"computeHash",[68,735,247],{"class":78},[68,737,738],{"class":70,"line":348},[68,739,149],{"emptyLinePlaceholder":148},[68,741,742],{"class":70,"line":361},[68,743,744],{"class":226},"    \u002F\u002F Walk from leaf toward root\n",[68,746,747,749,751,753,756,758,760,762,765,768,770,773,776,779,782,784,786,789],{"class":70,"line":367},[68,748,188],{"class":82},[68,750,191],{"class":78},[68,752,194],{"class":82},[68,754,755],{"class":78}," i ",[68,757,161],{"class":82},[68,759,191],{"class":78},[68,761,194],{"class":82},[68,763,764],{"class":78},")proof.",[68,766,767],{"class":108},"size",[68,769,315],{"class":78},[68,771,772],{"class":82},"-",[68,774,775],{"class":202}," 2",[68,777,778],{"class":78},"; i ",[68,780,781],{"class":82},">=",[68,783,203],{"class":202},[68,785,214],{"class":78},[68,787,788],{"class":82},"--",[68,790,791],{"class":78},"i) {\n",[68,793,794,797,800,802,804,807,810],{"class":70,"line":373},[68,795,796],{"class":82},"        auto",[68,798,799],{"class":78}," innerNode ",[68,801,161],{"class":82},[68,803,657],{"class":108},[68,805,806],{"class":78},"(proof[i],",[68,808,809],{"class":226}," \u002F* inner *\u002F",[68,811,672],{"class":78},[68,813,814,816,818,820],{"class":70,"line":378},[68,815,276],{"class":82},[68,817,191],{"class":78},[68,819,449],{"class":82},[68,821,822],{"class":78},"innerNode) {\n",[68,824,825,827,829],{"class":70,"line":384},[68,826,458],{"class":82},[68,828,629],{"class":202},[68,830,632],{"class":78},[68,832,833],{"class":70,"line":404},[68,834,370],{"class":78},[68,836,837],{"class":70,"line":425},[68,838,149],{"emptyLinePlaceholder":148},[68,840,841],{"class":70,"line":437},[68,842,843],{"class":226},"        \u002F\u002F Determine which branch we came from\n",[68,845,846,848,850,852],{"class":70,"line":442},[68,847,387],{"class":82},[68,849,197],{"class":78},[68,851,161],{"class":82},[68,853,854],{"class":78}," i;\n",[68,856,857,859,861,863,865,867],{"class":70,"line":455},[68,858,387],{"class":82},[68,860,390],{"class":78},[68,862,161],{"class":82},[68,864,395],{"class":78},[68,866,398],{"class":108},[68,868,401],{"class":78},[68,870,871],{"class":70,"line":468},[68,872,149],{"emptyLinePlaceholder":148},[68,874,875],{"class":70,"line":473},[68,876,877],{"class":226},"        \u002F\u002F Verify the child hash matches\n",[68,879,880,882,885,888,891,893],{"class":70,"line":479},[68,881,276],{"class":82},[68,883,884],{"class":78}," (innerNode->",[68,886,887],{"class":108},"getChildHash",[68,889,890],{"class":78},"(branch) ",[68,892,696],{"class":82},[68,894,895],{"class":78}," computedHash) {\n",[68,897,898,900,902,905],{"class":70,"line":484},[68,899,458],{"class":82},[68,901,629],{"class":202},[68,903,904],{"class":78},";",[68,906,907],{"class":226},"  \u002F\u002F Proof is invalid\n",[68,909,910],{"class":70,"line":497},[68,911,370],{"class":78},[68,913,915],{"class":70,"line":914},34,[68,916,149],{"emptyLinePlaceholder":148},[68,918,920],{"class":70,"line":919},35,[68,921,922],{"class":226},"        \u002F\u002F Compute this node's hash for next iteration\n",[68,924,926,929,931,934,936],{"class":70,"line":925},36,[68,927,928],{"class":78},"        computedHash ",[68,930,161],{"class":82},[68,932,933],{"class":78}," innerNode->",[68,935,733],{"class":108},[68,937,247],{"class":78},[68,939,941],{"class":70,"line":940},37,[68,942,476],{"class":78},[68,944,946],{"class":70,"line":945},38,[68,947,149],{"emptyLinePlaceholder":148},[68,949,951],{"class":70,"line":950},39,[68,952,953],{"class":226},"    \u002F\u002F Verify final hash matches expected root\n",[68,955,957,959,962,964],{"class":70,"line":956},40,[68,958,487],{"class":82},[68,960,961],{"class":78}," (computedHash ",[68,963,318],{"class":82},[68,965,966],{"class":78}," expectedRootHash);\n",[68,968,970],{"class":70,"line":969},41,[68,971,500],{"class":78},[22,973,974],{},[54,975,976],{},"Verification Process:",[58,978,981],{"className":979,"code":980,"language":514},[512],"Given:\n  - Key: 0x3A7F2E1B...\n  - Expected root: 0x1234...\n  - Proof: [inner_0, inner_1, inner_2, inner_3, leaf]\n\nStep 1: Deserialize leaf, verify it contains key\n        Compute leaf hash: 0x8765...\n\nStep 2: Deserialize inner_3\n        Check: child[F] hash == 0x8765... ✓\n        Compute inner_3 hash: 0x7890...\n\nStep 3: Deserialize inner_2\n        Check: child[7] hash == 0x7890... ✓\n        Compute inner_2 hash: 0xEF12...\n\nStep 4: Deserialize inner_1\n        Check: child[A] hash == 0xEF12... ✓\n        Compute inner_1 hash: 0xABCD...\n\nStep 5: Deserialize inner_0 (root)\n        Check: child[3] hash == 0xABCD... ✓\n        Compute root hash: 0x1234...\n\nFinal check: Computed hash == expected? 0x1234 == 0x1234 ✓\nResult: Proof is valid! Account is in ledger.\n",[65,982,980],{"__ignoreMap":63},[17,984,986],{"id":985},"proof-use-cases","Proof Use Cases",[22,988,989],{},[54,990,991],{},"1. Light Clients",[58,993,996],{"className":994,"code":995,"language":514},[512],"Scenario: Mobile wallet wanting to verify account balance\n\nTraditional: Download entire ledger (~gigabytes)\nWith proofs: Download only account proof (~600 bytes)\n\nClient verifies:\n  1. Receives account balance and proof\n  2. Verifies root hash matches known ledger\n  3. Uses proof verification algorithm\n  4. Trusts balance without downloading full ledger\n",[65,997,995],{"__ignoreMap":63},[22,999,1000],{},[54,1001,1002],{},"2. Cross-Chain Bridges",[58,1004,1007],{"className":1005,"code":1006,"language":514},[512],"Scenario: Ethereum bridge wants to verify XRPL state\n\nBridge requires: Proof that account exists in XRPL\nVerification:\n  1. Receives XRPL ledger header (small)\n  2. Receives Merkle proof (small)\n  3. Verifies proof against root hash\n  4. Acts on verified state\n",[65,1008,1006],{"__ignoreMap":63},[22,1010,1011],{},[54,1012,1013],{},"3. Auditing and Compliance",[58,1015,1018],{"className":1016,"code":1017,"language":514},[512],"Scenario: Auditor wants to prove a transaction executed\n\nProof includes:\n  - Transaction existence proof (proof in tx tree)\n  - Resulting state proof (proof in state tree)\n  - Chain of ledgers connecting them\n\nVerifier can:\n  - Confirm transaction was processed\n  - Confirm state effects were applied\n  - Build complete chain of evidence\n",[65,1019,1017],{"__ignoreMap":63},[22,1021,1022],{},[54,1023,1024],{},"4. Rollups and Scaling",[58,1026,1029],{"className":1027,"code":1028,"language":514},[512],"Scenario: Layer-2 rollup batches XRPL transactions\n\nInstead of: All transactions + full ledger\nRollup uses: Transaction proofs + state root\n\nVerification:\n  - Verify each transaction in batch\n  - Verify resulting state\n  - All with minimal data\n",[65,1030,1028],{"__ignoreMap":63},[17,1032,1034],{"id":1033},"state-reconstruction-guarantee","State Reconstruction Guarantee",[22,1036,1037,1038,1041],{},"The transaction tree provides a critical guarantee: ",[54,1039,1040],{},"verifiable unique history",".",[22,1043,1044],{},[54,1045,1046],{},"The Problem Without Transaction Tree:",[58,1048,1051],{"className":1049,"code":1050,"language":514},[512],"State progression:\n\nInitial state: S₀ (all accounts have 0 balance)\n\nCould have arrived via many paths:\n  Path 1: S₀ --tx1--> S₁ --tx2--> S₂ --tx3--> S₃\n  Path 2: S₀ --tx4--> S₁' --tx5--> S₂' --tx3--> S₃\n  Path 3: S₀ --tx6--> S₁'' --tx1--> S₂'' --tx2--> S₃\n\nSame final state S₃, but completely different history!\nWhich is correct? Without history, no way to know.\n",[65,1052,1050],{"__ignoreMap":63},[22,1054,1055],{},[54,1056,1057],{},"The Solution: Transaction Tree",[22,1059,1060],{},"The XRP Ledger maintains both trees in every ledger:",[58,1062,1064],{"className":60,"code":1063,"language":62,"meta":63,"style":63},"struct LedgerHeader {\n    uint256 accountTreeHash;      \u002F\u002F Root of account state\n    uint256 transactionTreeHash;  \u002F\u002F Root of transaction history\n\n    \u002F\u002F Both are cryptographically committed\n    \u002F\u002F Both are signed by validators\n    \u002F\u002F Both must match\n};\n",[65,1065,1066,1076,1086,1096,1100,1105,1110,1115],{"__ignoreMap":63},[68,1067,1068,1071,1074],{"class":70,"line":71},[68,1069,1070],{"class":82},"struct",[68,1072,1073],{"class":74}," LedgerHeader",[68,1075,345],{"class":78},[68,1077,1078,1080,1083],{"class":70,"line":99},[68,1079,560],{"class":74},[68,1081,1082],{"class":78}," accountTreeHash;",[68,1084,1085],{"class":226},"      \u002F\u002F Root of account state\n",[68,1087,1088,1090,1093],{"class":70,"line":121},[68,1089,560],{"class":74},[68,1091,1092],{"class":78}," transactionTreeHash;",[68,1094,1095],{"class":226},"  \u002F\u002F Root of transaction history\n",[68,1097,1098],{"class":70,"line":127},[68,1099,149],{"emptyLinePlaceholder":148},[68,1101,1102],{"class":70,"line":145},[68,1103,1104],{"class":226},"    \u002F\u002F Both are cryptographically committed\n",[68,1106,1107],{"class":70,"line":152},[68,1108,1109],{"class":226},"    \u002F\u002F Both are signed by validators\n",[68,1111,1112],{"class":70,"line":180},[68,1113,1114],{"class":226},"    \u002F\u002F Both must match\n",[68,1116,1117],{"class":70,"line":185},[68,1118,1119],{"class":78},"};\n",[22,1121,1122],{},[54,1123,1124],{},"State Reconstruction:",[58,1126,1129],{"className":1127,"code":1128,"language":514},[512],"Given: LedgerHeader with both tree hashes\n\nVerifiable state reconstruction:\n  1. Fetch account tree → current state\n  2. Fetch transaction tree → history\n  3. Replay transactions: S₀ + all_tx → S_computed\n  4. Verify: S_computed matches account tree root\n  5. Verify: transaction tree contains all_tx\n\nResult: Proven that state is correct result of transactions\n",[65,1130,1128],{"__ignoreMap":63},[22,1132,1133],{},[54,1134,1135],{},"Why This Matters:",[58,1137,1140],{"className":1138,"code":1139,"language":514},[512],"Without verification: Anyone could claim different history\nWith verification: Only one possible history is correct\n\nExample:\n  Alice claims she sent 100 XRP to Bob\n  Bob claims he received only 50 XRP\n\n  Ledger history is immutable and verified\n  Proof shows exactly what happened\n  No ambiguity\n",[65,1141,1139],{"__ignoreMap":63},[17,1143,1145],{"id":1144},"ledger-verifiability","Ledger Verifiability",[22,1147,1148],{},"Every aspect of XRPL state is cryptographically verifiable:",[22,1150,1151],{},[54,1152,1153],{},"Account Proof",[58,1155,1158],{"className":1156,"code":1157,"language":514},[512],"Prove: Account has balance 1000 XRP\n\nComponents:\n  1. Ledger header with account state root\n  2. Merkle proof from root to account leaf\n  3. Account data (balance, etc.)\n\nVerification:\n  Verify proof leads from root to account\n  Account balance is in proof\n  Root hash signed by supermajority of validators\n",[65,1159,1157],{"__ignoreMap":63},[22,1161,1162],{},[54,1163,1164],{},"Transaction Proof",[58,1166,1169],{"className":1167,"code":1168,"language":514},[512],"Prove: Transaction T was executed in ledger L\n\nComponents:\n  1. Ledger L header with transaction tree root\n  2. Merkle proof from root to transaction leaf\n  3. Transaction data and execution results\n\nVerification:\n  Verify proof leads from root to transaction\n  Matches all known transaction identifiers\n  Root hash signed by validators\n",[65,1170,1168],{"__ignoreMap":63},[22,1172,1173],{},[54,1174,1175],{},"Full Ledger Proof",[58,1177,1180],{"className":1178,"code":1179,"language":514},[512],"Prove: Ledger state transitions from L1 to L2\n\nComponents:\n  1. L1 ledger header (initial state)\n  2. All transactions between L1 and L2\n  3. L2 ledger header (final state)\n\nVerification:\n  1. Verify all transaction proofs against L2\n  2. Verify all account proofs against L2\n  3. Verify L2 header is valid\n\nResult: Complete proof that L2 is correct result of applying\n        all transactions to L1\n",[65,1181,1179],{"__ignoreMap":63},[17,1183,1185],{"id":1184},"practical-verification-workflow","Practical Verification Workflow",[22,1187,1188],{},[54,1189,1190],{},"Step 1: Trust the Ledger Header",[58,1192,1194],{"className":60,"code":1193,"language":62,"meta":63,"style":63},"\u002F\u002F Ledger headers are small (~100 bytes)\n\u002F\u002F Signed by supermajority (>80%) of validators\n\u002F\u002F Distributed via gossip protocol\n\nLedgerHeader verified_header = getLedgerHeader(ledgerSeq);\n\u002F\u002F Root hashes are in verified_header\n",[65,1195,1196,1201,1206,1211,1215,1228],{"__ignoreMap":63},[68,1197,1198],{"class":70,"line":71},[68,1199,1200],{"class":226},"\u002F\u002F Ledger headers are small (~100 bytes)\n",[68,1202,1203],{"class":70,"line":99},[68,1204,1205],{"class":226},"\u002F\u002F Signed by supermajority (>80%) of validators\n",[68,1207,1208],{"class":70,"line":121},[68,1209,1210],{"class":226},"\u002F\u002F Distributed via gossip protocol\n",[68,1212,1213],{"class":70,"line":127},[68,1214,149],{"emptyLinePlaceholder":148},[68,1216,1217,1220,1222,1225],{"class":70,"line":145},[68,1218,1219],{"class":78},"LedgerHeader verified_header ",[68,1221,161],{"class":82},[68,1223,1224],{"class":108}," getLedgerHeader",[68,1226,1227],{"class":78},"(ledgerSeq);\n",[68,1229,1230],{"class":70,"line":152},[68,1231,1232],{"class":226},"\u002F\u002F Root hashes are in verified_header\n",[22,1234,1235],{},[54,1236,1237],{},"Step 2: Request Proof",[58,1239,1241],{"className":60,"code":1240,"language":62,"meta":63,"style":63},"\u002F\u002F Client requests proof of account existence\nMerkleProof proof = peer.requestProof(\n    accountID,\n    verified_header.accountStateRoot);\n\n\u002F\u002F Proof is small (~500 bytes)\n",[65,1242,1243,1248,1263,1268,1273,1277],{"__ignoreMap":63},[68,1244,1245],{"class":70,"line":71},[68,1246,1247],{"class":226},"\u002F\u002F Client requests proof of account existence\n",[68,1249,1250,1253,1255,1258,1261],{"class":70,"line":99},[68,1251,1252],{"class":78},"MerkleProof proof ",[68,1254,161],{"class":82},[68,1256,1257],{"class":78}," peer.",[68,1259,1260],{"class":108},"requestProof",[68,1262,555],{"class":78},[68,1264,1265],{"class":70,"line":121},[68,1266,1267],{"class":78},"    accountID,\n",[68,1269,1270],{"class":70,"line":127},[68,1271,1272],{"class":78},"    verified_header.accountStateRoot);\n",[68,1274,1275],{"class":70,"line":145},[68,1276,149],{"emptyLinePlaceholder":148},[68,1278,1279],{"class":70,"line":152},[68,1280,1281],{"class":226},"\u002F\u002F Proof is small (~500 bytes)\n",[22,1283,1284],{},[54,1285,1286],{},"Step 3: Verify Proof",[58,1288,1290],{"className":60,"code":1289,"language":62,"meta":63,"style":63},"\u002F\u002F Client verifies locally (no network needed)\nif (verifyProofPath(accountID,\n                    verified_header.accountStateRoot,\n                    proof)) {\n    \u002F\u002F Account exists and is proven\n    \u002F\u002F Can trust all data in proof\n    auto account = parseAccountFromProof(proof);\n}\n",[65,1291,1292,1297,1310,1315,1320,1325,1330,1345],{"__ignoreMap":63},[68,1293,1294],{"class":70,"line":71},[68,1295,1296],{"class":226},"\u002F\u002F Client verifies locally (no network needed)\n",[68,1298,1299,1302,1304,1307],{"class":70,"line":99},[68,1300,1301],{"class":82},"if",[68,1303,191],{"class":78},[68,1305,1306],{"class":108},"verifyProofPath",[68,1308,1309],{"class":78},"(accountID,\n",[68,1311,1312],{"class":70,"line":121},[68,1313,1314],{"class":78},"                    verified_header.accountStateRoot,\n",[68,1316,1317],{"class":70,"line":127},[68,1318,1319],{"class":78},"                    proof)) {\n",[68,1321,1322],{"class":70,"line":145},[68,1323,1324],{"class":226},"    \u002F\u002F Account exists and is proven\n",[68,1326,1327],{"class":70,"line":152},[68,1328,1329],{"class":226},"    \u002F\u002F Can trust all data in proof\n",[68,1331,1332,1334,1337,1339,1342],{"class":70,"line":180},[68,1333,155],{"class":82},[68,1335,1336],{"class":78}," account ",[68,1338,161],{"class":82},[68,1340,1341],{"class":108}," parseAccountFromProof",[68,1343,1344],{"class":78},"(proof);\n",[68,1346,1347],{"class":70,"line":185},[68,1348,500],{"class":78},[22,1350,1351],{},[54,1352,1353],{},"Step 4: Use Verified Data",[58,1355,1357],{"className":60,"code":1356,"language":62,"meta":63,"style":63},"\u002F\u002F Application can now use the verified account data\n\u002F\u002F with absolute confidence it's correct\ndouble balance = account.balance;  \u002F\u002F Proven correct\n",[65,1358,1359,1364,1369],{"__ignoreMap":63},[68,1360,1361],{"class":70,"line":71},[68,1362,1363],{"class":226},"\u002F\u002F Application can now use the verified account data\n",[68,1365,1366],{"class":70,"line":99},[68,1367,1368],{"class":226},"\u002F\u002F with absolute confidence it's correct\n",[68,1370,1371,1374,1377,1379,1382],{"class":70,"line":121},[68,1372,1373],{"class":82},"double",[68,1375,1376],{"class":78}," balance ",[68,1378,161],{"class":82},[68,1380,1381],{"class":78}," account.balance;",[68,1383,1384],{"class":226},"  \u002F\u002F Proven correct\n",[17,1386,1388],{"id":1387},"summary","Summary",[22,1390,1391],{},[54,1392,1393],{},"Key Concepts:",[1395,1396,1397,1403,1408,1414,1420],"ol",{},[32,1398,1399,1402],{},[54,1400,1401],{},"Merkle Proofs",": Logarithmic-sized proofs of inclusion",[32,1404,1405,1407],{},[54,1406,531],{},": O(log N) hash checks to verify",[32,1409,1410,1413],{},[54,1411,1412],{},"Light Clients",": Verify without downloading full ledger",[32,1415,1416,1419],{},[54,1417,1418],{},"Unique History",": Transaction tree guarantees verifiable history",[32,1421,1422,1425],{},[54,1423,1424],{},"Ledger Integrity",": All state cryptographically provable",[22,1427,1428],{},[54,1429,1430],{},"Security Properties:",[58,1432,1435],{"className":1433,"code":1434,"language":514},[512],"Proof tampering:         Detected by hash mismatch\nMissing nodes:           Detected by proof verification failure\nFork detection:          Different ledger headers = detected forgery\nState divergence:        Account proof path breaks\n\nAll attacks: Detectable by cryptographic verification\n",[65,1436,1434],{"__ignoreMap":63},[22,1438,1439],{},[54,1440,1441],{},"Performance:",[58,1443,1446],{"className":1444,"code":1445,"language":514},[512],"Traditional verification:  All data (gigabytes) + full hashing\nProof-based verification:  600 bytes + 5 hash operations\nSpeedup:                   10,000x less data, 100,000x less compute\n",[65,1447,1445],{"__ignoreMap":63},[22,1449,1450],{},"This is the power of Merkle trees applied to blockchain: trustless verification at scale.",[1452,1453,1454],"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 .sWyjQ, html code.shiki .sWyjQ{--shiki-default:#FF9492}html pre.shiki code .sj_SG, html code.shiki .sj_SG{--shiki-default:#DBB7FF}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":63,"searchDepth":99,"depth":99,"links":1456},[1457,1458,1459,1460,1461,1462,1463,1464],{"id":19,"depth":99,"text":20},{"id":46,"depth":99,"text":47},{"id":530,"depth":99,"text":531},{"id":985,"depth":99,"text":986},{"id":1033,"depth":99,"text":1034},{"id":1144,"depth":99,"text":1145},{"id":1184,"depth":99,"text":1185},{"id":1387,"depth":99,"text":1388},"Cryptographic Proofs and State Reconstruction for Anatomy of Rippled: SHAMap and NodeStore, in the Core Dev Bootcamp: XRPL Commons docs.","md",{},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fproofs-state-reconstruction",{"title":5,"description":1465},"xrpl-trainings\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fproofs-state-reconstruction.md","docs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fproofs-state-reconstruction","nCZ4zy6E35_TcYFhbPTuLo2NtMYnKQ87NJDOrCAMGDI",[],[1475,1516,1530,1550,1573,1965],{"title":1476,"path":1477,"children":1478,"description":1515,"pages":267},"XRPL Basics","\u002Fdocs\u002Fxrpl-basics",[1479,1482,1485,1488,1491,1494,1497,1500,1503,1506,1509,1512],{"title":1480,"path":1481},"Getting Started","\u002Fdocs\u002Fxrpl-basics\u002Fgetting-started",{"title":1483,"path":1484},"Trustline","\u002Fdocs\u002Fxrpl-basics\u002Ftrustline",{"title":1486,"path":1487},"Payments","\u002Fdocs\u002Fxrpl-basics\u002Fpayments",{"title":1489,"path":1490},"Reading and subscribing to Transactions","\u002Fdocs\u002Fxrpl-basics\u002Freading-and-writing-memos",{"title":1492,"path":1493},"Writing and reading memos","\u002Fdocs\u002Fxrpl-basics\u002Fwriting-and-reading-memos",{"title":1495,"path":1496},"Non Fungible Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fnon-fungible-tokens",{"title":1498,"path":1499},"Multi-Purpose Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fmptoken",{"title":1501,"path":1502},"PathFinding","\u002Fdocs\u002Fxrpl-basics\u002Fpath-finding",{"title":1504,"path":1505},"Escrow","\u002Fdocs\u002Fxrpl-basics\u002Fescrow",{"title":1507,"path":1508},"Price Oracles","\u002Fdocs\u002Fxrpl-basics\u002Fprice-oracles",{"title":1510,"path":1511},"Tickets","\u002Fdocs\u002Fxrpl-basics\u002Ftickets",{"title":1513,"path":1514},"Multi-Signature","\u002Fdocs\u002Fxrpl-basics\u002Fmulti-signature","In this section we will cover some of the primary functionality of the XRPL ledger.",{"title":1517,"path":1518,"children":1519,"description":1529,"pages":127},"Token Issuance and Liquidity","\u002Fdocs\u002Ftoken-issuance-and-liquidity",[1520,1523,1526],{"title":1521,"path":1522},"Creating Accounts and Setup","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fcreating-accounts",{"title":1524,"path":1525},"Issuing Tokens","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fissuing-tokens",{"title":1527,"path":1528},"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":1531,"path":1532,"children":1533,"description":1549,"pages":152},"Cyphered Chat on XRPL","\u002Fdocs\u002Fcyphered-chat-on-xrpl",[1534,1537,1540,1543,1546],{"title":1535,"path":1536},"Set up","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up",{"title":1538,"path":1539},"Set up Keys","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-keys",{"title":1541,"path":1542},"Cypher the message","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fcypher-the-message",{"title":1544,"path":1545},"Set up the memo & send the tx","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-the-memo-and-send-the-tx",{"title":1547,"path":1548},"Get the message and decypher it","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fget-the-message-and-decypher-it","Send encrypted messages over XRPL",{"title":1551,"path":1552,"children":1553,"description":1572,"pages":180},"EVM Sidechain","\u002Fdocs\u002Fevm-sidechain",[1554,1557,1560,1563,1566,1569],{"title":1555,"path":1556},"Connecting Metamask","\u002Fdocs\u002Fevm-sidechain\u002Fconnecting-metamask",{"title":1558,"path":1559},"Set up a Foundry project","\u002Fdocs\u002Fevm-sidechain\u002Fset-up-an-evm-project",{"title":1561,"path":1562},"Bridging Assets","\u002Fdocs\u002Fevm-sidechain\u002Fbridging-assets",{"title":1564,"path":1565},"Remix","\u002Fdocs\u002Fevm-sidechain\u002Fremix",{"title":1567,"path":1568},"Banking App","\u002Fdocs\u002Fevm-sidechain\u002Fbanking-app",{"title":1570,"path":1571},"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":1574,"path":1575,"children":1576,"description":1963,"pages":1964},"Core Dev Bootcamp","\u002Fdocs\u002Fcore-dev-bootcamp",[1577,1597,1640,1688,1719,1776,1807,1823,1863,1897,1922,1938],{"title":1578,"path":1579,"children":1580},"Rippled I – Compilation, Configuration, and Launch","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01",[1581,1584,1587,1590],{"title":1582,"path":1583},"Environment & Build Toolchain","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fenvironment-build-toolchain",{"title":1585,"path":1586},"Compilation Process & Generating Binary","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fcompilation-process-generating-binary",{"title":1588,"path":1589},"Local Development & Testing","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Flocal-development-testing",{"title":1591,"path":1592,"children":1593},"Homeworks","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks",[1594],{"title":1595,"path":1596},"Homework 1: Rippled Node Setup and Mainnet Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks\u002Fhomework1",{"title":1598,"path":1599,"children":1600},"Rippled II: Deep Dive into the Protocol and Codebase","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02",[1601,1604,1607,1610,1613,1616,1619,1622,1625],{"title":1602,"path":1603},"Protocols: Communication and Interoperability","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fprotocols-communication-and-interoperability",{"title":1605,"path":1606},"Transactors: Transaction Processing Framework","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransactors-transaction-processing-framework",{"title":1608,"path":1609},"Application Layer: Central Orchestration and Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fapplication-layer-central-orchestration-and-coordination",{"title":1611,"path":1612},"Consensus Engine: XRP Ledger Consensus Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fconsensus-engine-xrp-ledger-consensus-protocol",{"title":1614,"path":1615},"Overlay Network: Peer-to-Peer Networking Layer","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Foverlay-network-peer-to-peer-networking-layer",{"title":1617,"path":1618},"Transaction Lifecycle: Complete Transaction Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransaction-lifecycle-complete-transaction-journey",{"title":1620,"path":1621},"Codebase Navigation: Efficiently Navigating the Rippled Source","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fcodebase-navigation-efficiently-navigating-the-rippled-source",{"title":1623,"path":1624},"Debugging Tools: Development and Debugging Techniques","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fdebugging-tools-development-and-debugging-techniques",{"title":1591,"path":1626,"children":1627},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks",[1628,1631,1634,1637],{"title":1629,"path":1630},"Homework 1: Transaction Flow Analysis","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework1",{"title":1632,"path":1633},"Homework 2: Transactor Code Exploration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework2",{"title":1635,"path":1636},"Homework 3: Logging and Debugging","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework3",{"title":1638,"path":1639},"Homework 4: Architecture Diagram","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework4",{"title":1641,"path":1642,"children":1643},"Anatomy of Rippled: SHAMap and NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03",[1644,1647,1650,1653,1656,1659,1662,1665,1668,1671,1672,1675],{"title":1645,"path":1646},"Foundational Concepts","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstate-management-challenges",{"title":1648,"path":1649},"Trees, Hashing, and Cryptographic Commitments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Ftree-fundamentals",{"title":1651,"path":1652},"SHAMap Architecture and Node Hierarchy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-architecture",{"title":1654,"path":1655},"Navigation, Hashing, and Merkle Properties","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-navigation-hashing",{"title":1657,"path":1658},"Traversal, Iteration, and Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-synchronization",{"title":1660,"path":1661},"The NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fnodestore-architecture",{"title":1663,"path":1664},"Storage Abstraction and Backend Implementations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstorage-backends",{"title":1666,"path":1667},"Cache Layer and Performance Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fcache-layer",{"title":1669,"path":1670},"Database Operations and Lifecycle Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fdatabase-operations",{"title":5,"path":1468},{"title":1673,"path":1674},"Resource Management and Performance Characteristics","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fresource-management",{"title":1676,"path":1677,"children":1678},"Appendices","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices",[1679,1682,1685],{"title":1680,"path":1681},"Appendix : Codebase Navigation Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fnavigation",{"title":1683,"path":1684},"Appendix : Configuration Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fconfiguration",{"title":1686,"path":1687},"Appendix : Debugging and Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fdebugging",{"title":1689,"path":1690,"children":1691},"Transactors: Understanding the Lifecycle of a Transaction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis",[1692,1695,1698,1701,1704,1707,1710,1713,1716],{"title":1693,"path":1694},"Transactor Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ftransactor-architecture",{"title":1696,"path":1697},"Processing Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fprocessing-pipeline",{"title":1699,"path":1700},"Fee and Sequence Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ffee-sequence-handling",{"title":1702,"path":1703},"State Modification Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fstate-modification",{"title":1705,"path":1706},"TER Result Codes","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fter-result-codes",{"title":1708,"path":1709},"Case Study: CheckCreate Transactor","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fcase-study-checkcreate",{"title":1711,"path":1712},"Homework 1: Trace a Transaction Through All Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework1",{"title":1714,"path":1715},"Homework 2: Implement a Custom Validation Check","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework2",{"title":1717,"path":1718},"Homework 3: Analyze TER Code Paths","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework3",{"title":1720,"path":1721,"children":1722},"Cryptography I: Blockchain Security and Cryptographic Foundations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04",[1723,1726,1729,1732,1735,1738,1741,1744,1747,1750,1753,1756,1759,1770],{"title":1724,"path":1725},"The Four Pillars of Security","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-four-pillars-of-security",{"title":1727,"path":1728},"The Lifecycle of a Cryptographic Key","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-lifecycle-of-a-cryptographic-key",{"title":1730,"path":1731},"Random Number Generation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation",{"title":1733,"path":1734},"Random Number Generation & Entropy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation-and-entropy",{"title":1736,"path":1737},"Key Generation Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fkey-generation-pipeline",{"title":1739,"path":1740},"Transaction Signing & Verification","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Ftransaction-signing-and-verification",{"title":1742,"path":1743},"Hash Functions in XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhash-functions-in-xrpl",{"title":1745,"path":1746},"Base58Check Encoding","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fbase58check-encoding",{"title":1748,"path":1749},"Peer Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fpeer-handshake-protocol",{"title":1751,"path":1752},"Secure Memory Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fsecure-memory-handling",{"title":1754,"path":1755},"Common Cryptographic Pitfalls","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fcommon-cryptographic-pitfalls",{"title":1757,"path":1758},"Performance & Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fperformance-and-optimization",{"title":1676,"path":1760,"children":1761},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices",[1762,1764,1767],{"title":1680,"path":1763},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fcodebase-navigation-guide",{"title":1765,"path":1766},"Appendix : Debugging & Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fdebugging-and-development-tools",{"title":1768,"path":1769},"Appendix : RFCs and Standards Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Frfcs-and-standards-reference",{"title":1591,"path":1771,"children":1772},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks",[1773],{"title":1774,"path":1775},"Homework 1: Signature Verification Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks\u002Fhomework1",{"title":1777,"path":1778,"children":1779},"Cryptography II: Protocol Extensions and Quantum Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05",[1780,1783,1786,1789,1792,1795,1801],{"title":1781,"path":1782},"Overlay Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Foverlay-architecture",{"title":1784,"path":1785},"Connection Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fconnection-lifecycle",{"title":1787,"path":1788},"Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhandshake-protocol",{"title":1790,"path":1791},"Message Relaying","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fmessage-relaying",{"title":1793,"path":1794},"Peer Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fpeer-discovery",{"title":1676,"path":1796,"children":1797},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices",[1798],{"title":1799,"path":1800},"XLS-??d Quantum-Resistant Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices\u002Fxls-d",{"title":1591,"path":1802,"children":1803},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks",[1804],{"title":1805,"path":1806},"Homework 1: Building Quantum-Resistant Signatures for XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks\u002Fhomework1",{"title":1808,"path":1809,"children":1810},"Communication I: Understanding XRPL(d) RPC Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06",[1811,1814,1817,1820],{"title":1812,"path":1813},"RPC Handler Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frpc-handler-architecture",{"title":1815,"path":1816},"Request and Response Flow","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frequest-response-flow",{"title":1818,"path":1819},"Authentication and Authorization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Fauthentication-authorization",{"title":1821,"path":1822},"Error Handling and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Ferror-handling-validation",{"title":1824,"path":1825,"children":1826},"Communication II: Building and Integrating Custom RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07",[1827,1830,1833,1836,1839,1851],{"title":1828,"path":1829},"Implementing Custom Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fimplementing-custom-handlers",{"title":1831,"path":1832},"Testing RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Ftesting-rpc-handlers",{"title":1834,"path":1835},"Advanced Features","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fadvanced-features",{"title":1837,"path":1838},"Best Practices and Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fbest-practices-patterns",{"title":1676,"path":1840,"children":1841},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices",[1842,1845,1848],{"title":1843,"path":1844},"Appendix: Handler Examples","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhandler-examples",{"title":1846,"path":1847},"Appendix: Helper Functions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhelper-functions",{"title":1849,"path":1850},"Appendix: Debugging Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fdebugging-guide",{"title":1591,"path":1852,"children":1853},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks",[1854,1857,1860],{"title":1855,"path":1856},"Homework 1: Building a Custom RPC Handler","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhomework1",{"title":1858,"path":1859},"Hints","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhints",{"title":1861,"path":1862},"Snippets","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fsnippets",{"title":1864,"path":1865,"children":1866},"Consensus I: Node, Consensus, and Ledger Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08",[1867,1870,1873,1876,1879,1882,1885,1888],{"title":1868,"path":1869},"Consensus Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-fundamentals",{"title":1871,"path":1872},"Consensus Modes and Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-modes-phases",{"title":1874,"path":1875},"Consensus Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-lifecycle",{"title":1877,"path":1878},"Ledger Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-architecture",{"title":1880,"path":1881},"Ledger Data Structures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-data-structures",{"title":1883,"path":1884},"Ledger Acquisition and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-acquisition-validation",{"title":1886,"path":1887},"RPC and Peer Transaction Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Frpc-peer-tx-lifecycle",{"title":1591,"path":1889,"children":1890},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks",[1891,1894],{"title":1892,"path":1893},"Homework 1: Transaction Consensus Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework1",{"title":1895,"path":1896},"Homework 2: Consensus Dispute Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework2",{"title":1898,"path":1899,"children":1900},"Consensus II: UNLs and Ledger Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09",[1901,1904,1907,1910,1913,1916,1919],{"title":1902,"path":1903},"Transaction Ordering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Ftx-ordering",{"title":1905,"path":1906},"Consensus Validations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-validations",{"title":1908,"path":1909},"Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Famendments",{"title":1911,"path":1912},"UNL Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Funl",{"title":1914,"path":1915},"Consensus Peers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-peers",{"title":1917,"path":1918},"Homework 1: Validator Keys Setup and Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework1",{"title":1920,"path":1921},"Homework 2: Negative UNL Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework2",{"title":1923,"path":1924,"children":1925},"AMM: Automated Market Maker","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis",[1926,1929,1932,1935],{"title":1927,"path":1928},"AMM Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-architecture",{"title":1930,"path":1931},"AMM Transactions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-transactions",{"title":1933,"path":1934},"AMM Logic","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-logic",{"title":1936,"path":1937},"Pathfinding Integration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-pathfinding",{"title":1939,"path":1940,"children":1941},"Building Amendments: Lifecycle and Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10",[1942,1945,1948,1951,1954,1957,1960],{"title":1943,"path":1944},"Amendment Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-architecture",{"title":1946,"path":1947},"Amendment Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-lifecycle",{"title":1949,"path":1950},"Voting and Activation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fvoting-and-activation",{"title":1952,"path":1953},"Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fprotocol-impact",{"title":1955,"path":1956},"Network Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fnetwork-coordination",{"title":1958,"path":1959},"Monitoring and Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-monitoring",{"title":1961,"path":1962},"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":1966,"path":1967,"children":1968,"description":1975,"pages":121},"Tools","\u002Fdocs\u002Ftools",[1969,1972],{"title":1970,"path":1971},"Xaman Setup","\u002Fdocs\u002Ftools\u002Fxaman-setup",{"title":1973,"path":1974},"Metamask Setup","\u002Fdocs\u002Ftools\u002Fmetamask-setup","In this section you will find instructions on how to setup wallets and tools",1796220771039]