[{"data":1,"prerenderedAt":1290},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhash-functions-in-xrpl":3,"docs-kids-\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhash-functions-in-xrpl":783,"docs-tracks":784},{"id":4,"title":5,"body":6,"description":21,"extension":775,"meta":776,"navigation":777,"path":778,"seo":779,"source":780,"stem":781,"__hash__":782},"docs\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhash-functions-in-xrpl.md","Hash Functions in XRPL",{"type":7,"value":8,"toc":735},"minimark",[9,13,18,22,25,29,32,43,48,54,60,65,71,76,82,87,93,98,104,108,112,118,123,126,132,139,143,149,153,158,164,169,175,180,186,190,196,201,214,219,225,229,233,239,243,248,254,259,265,270,276,280,286,290,294,300,305,308,319,324,330,334,340,345,348,354,358,364,368,371,377,382,393,398,404,408,412,415,421,427,431,437,440,444,448,454,458,464,469,480,484,564,568,572,619,623,658,662,665,691,696,713,718,732],[10,11,5],"h1",{"id":12},"hash-functions-in-xrpl",[14,15,17],"h2",{"id":16},"introduction","Introduction",[19,20,21],"p",{},"Hash functions are the workhorses of cryptographic systems. While signatures prove authorization and keys establish identity, hash functions ensure integrity and enable efficient data structures. In XRPL, hash functions are everywhere—transaction IDs, ledger object keys, Merkle trees, address generation, and more.",[19,23,24],{},"This chapter explores how XRPL uses hash functions, why specific algorithms were chosen, and how they provide the integrity guarantees the system depends on.",[14,26,28],{"id":27},"what-is-a-cryptographic-hash-function","What is a Cryptographic Hash Function?",[19,30,31],{},"A cryptographic hash function takes arbitrary input and produces a fixed-size output:",[33,34,39],"pre",{"className":35,"code":37,"language":38},[36],"language-text","Input (any size)  →  Hash Function  →  Output (fixed size)\n\n\"Hello\"          →  sha512Half  →  0x7F83B165...\n\"Hello World!\"   →  sha512Half  →  0xA591A6D4...\n[1 MB file]      →  sha512Half  →  0x3C9F2A8B...\n","text",[40,41,37],"code",{"__ignoreMap":42},"",[44,45,47],"h3",{"id":46},"required-properties","Required Properties",[19,49,50],{},[51,52,53],"strong",{},"1. Deterministic",[33,55,58],{"className":56,"code":57,"language":38},[36],"sha512Half(\"Hello\") == sha512Half(\"Hello\")  \u002F\u002F Always true\n\u002F\u002F Same input always produces same output\n",[40,59,57],{"__ignoreMap":42},[19,61,62],{},[51,63,64],{},"2. Fast to Compute",[33,66,69],{"className":67,"code":68,"language":38},[36],"\u002F\u002F Can hash gigabytes per second\nauto hash = sha512Half(largeData);  \u002F\u002F Microseconds to milliseconds\n",[40,70,68],{"__ignoreMap":42},[19,72,73],{},[51,74,75],{},"3. Avalanche Effect",[33,77,80],{"className":78,"code":79,"language":38},[36],"sha512Half(\"Hello\")  → 0x7F83B165...\nsha512Half(\"Hello!\") → 0xC89F3AB2...  \u002F\u002F Completely different!\n\u002F\u002F One bit change → ~50% of output bits flip\n",[40,81,79],{"__ignoreMap":42},[19,83,84],{},[51,85,86],{},"4. Preimage Resistance (One-Way)",[33,88,91],{"className":89,"code":90,"language":38},[36],"\u002F\u002F Given hash, cannot find input\nuint256 hash = 0x7F83B165...;\n\u002F\u002F No way to compute: input = reverse_hash(hash);\n",[40,92,90],{"__ignoreMap":42},[19,94,95],{},[51,96,97],{},"5. Collision Resistance",[33,99,102],{"className":100,"code":101,"language":38},[36],"\u002F\u002F Cannot find two inputs with same hash\n\u002F\u002F sha512Half(x) == sha512Half(y) where x != y\n\u002F\u002F Computationally infeasible\n",[40,103,101],{"__ignoreMap":42},[14,105,107],{"id":106},"sha-512-half-the-primary-workhorse","SHA-512-Half: The Primary Workhorse",[44,109,111],{"id":110},"why-sha-512-half","Why SHA-512-Half?",[33,113,116],{"className":114,"code":115,"language":38},[36],"\u002F\u002F Not SHA-256, but SHA-512 truncated to 256 bits\ntemplate \u003Cclass... Args>\nuint256 sha512Half(Args const&... args)\n{\n    sha512_half_hasher h;\n    hash_append(h, args...);\n    return static_cast\u003Ctypename sha512_half_hasher::result_type>(h);\n}\n",[40,117,115],{"__ignoreMap":42},[19,119,120],{},[51,121,122],{},"Why truncate SHA-512 instead of using SHA-256?",[19,124,125],{},"Performance on 64-bit processors:",[33,127,130],{"className":128,"code":129,"language":38},[36],"SHA-512: Operates on 64-bit words → ~650 MB\u002Fs on modern CPUs\nSHA-256: Operates on 32-bit words → ~450 MB\u002Fs on modern CPUs\n\nSHA-512-Half = SHA-512 speed + SHA-256 output size\n",[40,131,129],{"__ignoreMap":42},[19,133,134,135,138],{},"On 64-bit systems (which all modern servers are), SHA-512 is ",[51,136,137],{},"faster"," than SHA-256 despite producing more output. By truncating to 256 bits, we get the best of both worlds.",[44,140,142],{"id":141},"implementation","Implementation",[33,144,147],{"className":145,"code":146,"language":38},[36],"\u002F\u002F From src\u002Flibxrpl\u002Fprotocol\u002Fdigest.cpp\nclass sha512_half_hasher\n{\nprivate:\n    SHA512_CTX ctx_;\n\npublic:\n    using result_type = uint256;\n\n    sha512_half_hasher()\n    {\n        SHA512_Init(&ctx_);\n    }\n\n    void operator()(void const* data, std::size_t size) noexcept\n    {\n        SHA512_Update(&ctx_, data, size);\n    }\n\n    operator result_type() noexcept\n    {\n        \u002F\u002F Compute full SHA-512 (64 bytes)\n        std::uint8_t digest[64];\n        SHA512_Final(digest, &ctx_);\n\n        \u002F\u002F Return first 32 bytes (256 bits)\n        result_type result;\n        std::memcpy(result.data(), digest, 32);\n        return result;\n    }\n};\n",[40,148,146],{"__ignoreMap":42},[44,150,152],{"id":151},"usage-throughout-xrpl","Usage Throughout XRPL",[19,154,155],{},[51,156,157],{},"Transaction IDs:",[33,159,162],{"className":160,"code":161,"language":38},[36],"uint256 STTx::getTransactionID() const\n{\n    Serializer s;\n    s.add32(HashPrefix::transactionID);\n    addWithoutSigningFields(s);\n    return sha512Half(s.slice());\n}\n",[40,163,161],{"__ignoreMap":42},[19,165,166],{},[51,167,168],{},"Ledger Object Keys:",[33,170,173],{"className":171,"code":172,"language":38},[36],"uint256 keylet::account(AccountID const& id)\n{\n    return sha512Half(\n        HashPrefix::account,\n        id);\n}\n",[40,174,172],{"__ignoreMap":42},[19,176,177],{},[51,178,179],{},"Merkle Tree Nodes:",[33,181,184],{"className":182,"code":183,"language":38},[36],"uint256 SHAMapInnerNode::getHash() const\n{\n    if (hashValid_)\n        return hash_;\n\n    Serializer s;\n    for (auto const& child : children_)\n        s.add256(child.getHash());\n\n    hash_ = sha512Half(s.slice());\n    hashValid_ = true;\n    return hash_;\n}\n",[40,185,183],{"__ignoreMap":42},[14,187,189],{"id":188},"secure-variant-sha512half_s","Secure Variant: sha512Half_s",[33,191,194],{"className":192,"code":193,"language":38},[36],"\u002F\u002F Secure variant that erases internal state\nuint256 sha512Half_s(Slice const& data)\n{\n    sha512_half_hasher h;\n    h(data.data(), data.size());\n    auto result = static_cast\u003Cuint256>(h);\n\n    \u002F\u002F Hasher destructor securely erases internal state\n    \u002F\u002F This prevents sensitive data from lingering in memory\n    return result;\n}\n",[40,195,193],{"__ignoreMap":42},[19,197,198],{},[51,199,200],{},"When to use the secure variant:",[202,203,204,208,211],"ul",{},[205,206,207],"li",{},"Hashing secret keys or seeds",[205,209,210],{},"Deriving keys from passwords",[205,212,213],{},"Any operation involving sensitive data",[19,215,216],{},[51,217,218],{},"Why it matters:",[33,220,223],{"className":221,"code":222,"language":38},[36],"\u002F\u002F Regular variant\nauto hash1 = sha512Half(secretData);\n\u002F\u002F SHA512_CTX still contains secretData fragments in memory\n\n\u002F\u002F Secure variant\nauto hash2 = sha512Half_s(secretData);\n\u002F\u002F SHA512_CTX is securely erased\n",[40,224,222],{"__ignoreMap":42},[14,226,228],{"id":227},"ripesha-address-generation","RIPESHA: Address Generation",[44,230,232],{"id":231},"the-double-hash","The Double Hash",[33,234,237],{"className":235,"code":236,"language":38},[36],"class ripesha_hasher\n{\nprivate:\n    openssl_sha256_hasher sha_;\n\npublic:\n    using result_type = ripemd160_hasher::result_type;  \u002F\u002F 20 bytes\n\n    void operator()(void const* data, std::size_t size) noexcept\n    {\n        \u002F\u002F First: SHA-256\n        sha_(data, size);\n    }\n\n    operator result_type() noexcept\n    {\n        \u002F\u002F Get SHA-256 result (32 bytes)\n        auto const sha256_digest =\n            static_cast\u003Copenssl_sha256_hasher::result_type>(sha_);\n\n        \u002F\u002F Second: RIPEMD-160 of the SHA-256\n        ripemd160_hasher ripe;\n        ripe(sha256_digest.data(), sha256_digest.size());\n        return static_cast\u003Cresult_type>(ripe);  \u002F\u002F 20 bytes\n    }\n};\n",[40,238,236],{"__ignoreMap":42},[44,240,242],{"id":241},"why-two-hash-functions","Why Two Hash Functions?",[19,244,245],{},[51,246,247],{},"1. Defense in Depth",[33,249,252],{"className":250,"code":251,"language":38},[36],"If SHA-256 is broken:\n  RIPEMD-160 provides second layer\nIf RIPEMD-160 is broken:\n  SHA-256 provides protection\nBreaking both: requires defeating two independent algorithms\n",[40,253,251],{"__ignoreMap":42},[19,255,256],{},[51,257,258],{},"2. Compactness",[33,260,263],{"className":261,"code":262,"language":38},[36],"Public Key:    33 bytes\n  ↓ SHA-256\nSHA-256 hash:  32 bytes\n  ↓ RIPEMD-160\nAccount ID:    20 bytes (40% smaller than public key)\n",[40,264,262],{"__ignoreMap":42},[19,266,267],{},[51,268,269],{},"3. Quantum Resistance (Partial)",[33,271,274],{"className":272,"code":273,"language":38},[36],"Quantum computers may break elliptic curves:\n  PublicKey → SecretKey (vulnerable)\n\nBut cannot reverse hashes:\n  AccountID ↛ PublicKey (still secure)\n\nThis provides time to upgrade the system if quantum computers emerge.\n",[40,275,273],{"__ignoreMap":42},[44,277,279],{"id":278},"usage","Usage",[33,281,284],{"className":282,"code":283,"language":38},[36],"\u002F\u002F Calculate account ID from public key\nAccountID calcAccountID(PublicKey const& pk)\n{\n    ripesha_hasher h;\n    h(pk.data(), pk.size());\n    return AccountID{static_cast\u003Cripesha_hasher::result_type>(h)};\n}\n\n\u002F\u002F Calculate node ID from public key\nNodeID calcNodeID(PublicKey const& pk)\n{\n    ripesha_hasher h;\n    h(pk.data(), pk.size());\n    return NodeID{static_cast\u003Cripesha_hasher::result_type>(h)};\n}\n",[40,285,283],{"__ignoreMap":42},[14,287,289],{"id":288},"sha-256-checksum-and-encoding","SHA-256: Checksum and Encoding",[44,291,293],{"id":292},"double-sha-256-for-base58check","Double SHA-256 for Base58Check",[33,295,298],{"className":296,"code":297,"language":38},[36],"\u002F\u002F From src\u002Flibxrpl\u002Fprotocol\u002Ftokens.cpp\nstd::string encodeBase58Token(\n    TokenType type,\n    void const* token,\n    std::size_t size)\n{\n    std::vector\u003Cuint8_t> buffer;\n    buffer.push_back(static_cast\u003Cuint8_t>(type));\n    buffer.insert(buffer.end(), token, token + size);\n\n    \u002F\u002F Compute checksum: first 4 bytes of SHA-256(SHA-256(data))\n    auto const hash1 = sha256(makeSlice(buffer));\n    auto const hash2 = sha256(makeSlice(hash1));\n\n    \u002F\u002F Append checksum\n    buffer.insert(buffer.end(), hash2.begin(), hash2.begin() + 4);\n\n    \u002F\u002F Base58 encode\n    return base58Encode(buffer);\n}\n",[40,299,297],{"__ignoreMap":42},[19,301,302],{},[51,303,304],{},"Why double SHA-256?",[19,306,307],{},"Historical reasons (inherited from early cryptocurrency designs):",[202,309,310,313,316],{},[205,311,312],{},"Provides defense against length-extension attacks",[205,314,315],{},"Standard pattern for checksums",[205,317,318],{},"Well-tested over many years",[19,320,321],{},[51,322,323],{},"Checksum properties:",[33,325,328],{"className":326,"code":327,"language":38},[36],"4 bytes = 32 bits = 2^32 possible values\n\nProbability of random corruption matching checksum: 1 in 4,294,967,296\n\nEffectively catches all typos and errors.\n",[40,329,327],{"__ignoreMap":42},[14,331,333],{"id":332},"hash-prefixes-domain-separation","Hash Prefixes: Domain Separation",[33,335,338],{"className":336,"code":337,"language":38},[36],"\u002F\u002F From include\u002Fxrpl\u002Fprotocol\u002FHashPrefix.h\nenum class HashPrefix : std::uint32_t\n{\n    transactionID       = 0x54584E00,  \u002F\u002F 'TXN\\0'\n    txSign              = 0x53545800,  \u002F\u002F 'STX\\0'\n    txMultiSign         = 0x534D5400,  \u002F\u002F 'SMT\\0'\n    manifest            = 0x4D414E00,  \u002F\u002F 'MAN\\0'\n    ledgerMaster        = 0x4C575200,  \u002F\u002F 'LWR\\0'\n    ledgerInner         = 0x4D494E00,  \u002F\u002F 'MIN\\0'\n    ledgerLeaf          = 0x4D4C4E00,  \u002F\u002F 'MLN\\0'\n    accountRoot         = 0x41525400,  \u002F\u002F 'ART\\0'\n};\n",[40,339,337],{"__ignoreMap":42},[19,341,342],{},[51,343,344],{},"Why use prefixes?",[19,346,347],{},"Prevent cross-protocol attacks where a hash from one context is used in another:",[33,349,352],{"className":350,"code":351,"language":38},[36],"\u002F\u002F Without prefixes (BAD):\nhash_tx  = SHA512Half(tx_data)\nhash_msg = SHA512Half(msg_data)\n\n\u002F\u002F If tx_data == msg_data, then hash_tx == hash_msg\n\u002F\u002F Could cause confusion\u002Fattacks\n\n\u002F\u002F With prefixes (GOOD):\nhash_tx  = SHA512Half(PREFIX_TX,  tx_data)\nhash_msg = SHA512Half(PREFIX_MSG, msg_data)\n\n\u002F\u002F Even if tx_data == msg_data, hash_tx != hash_msg\n",[40,353,351],{"__ignoreMap":42},[44,355,357],{"id":356},"example-usage","Example Usage",[33,359,362],{"className":360,"code":361,"language":38},[36],"\u002F\u002F Transaction ID\nuint256 getTransactionID(STTx const& tx)\n{\n    Serializer s;\n    s.add32(HashPrefix::transactionID);  \u002F\u002F Add prefix first\n    tx.addWithoutSigningFields(s);\n    return sha512Half(s.slice());\n}\n\n\u002F\u002F Signing data (different prefix, different hash)\nuint256 getSigningHash(STTx const& tx)\n{\n    Serializer s;\n    s.add32(HashPrefix::txSign);  \u002F\u002F Different prefix\n    tx.addWithoutSigningFields(s);\n    return sha512Half(s.slice());\n}\n",[40,363,361],{"__ignoreMap":42},[14,365,367],{"id":366},"incremental-hashing","Incremental Hashing",[19,369,370],{},"Hash functions can process data incrementally:",[33,372,375],{"className":373,"code":374,"language":38},[36],"\u002F\u002F Instead of hashing all at once:\nauto hash = sha512Half(bigData);  \u002F\u002F Requires loading all data\n\n\u002F\u002F Can hash incrementally:\nsha512_half_hasher h;\nh(chunk1.data(), chunk1.size());\nh(chunk2.data(), chunk2.size());\nh(chunk3.data(), chunk3.size());\nauto hash = static_cast\u003Cuint256>(h);\n",[40,376,374],{"__ignoreMap":42},[19,378,379],{},[51,380,381],{},"Benefits:",[202,383,384,387,390],{},[205,385,386],{},"Stream large files without loading into memory",[205,388,389],{},"Hash complex data structures field by field",[205,391,392],{},"More efficient for large inputs",[19,394,395],{},[51,396,397],{},"Example: Hashing a transaction",[33,399,402],{"className":400,"code":401,"language":38},[36],"Serializer s;\ns.add32(HashPrefix::transactionID);\ns.addVL(tx.getFieldVL(sfAccount));\ns.addVL(tx.getFieldVL(sfDestination));\ns.add64(tx.getFieldU64(sfAmount));\n\u002F\u002F ... more fields ...\n\nreturn sha512Half(s.slice());\n",[40,403,401],{"__ignoreMap":42},[14,405,407],{"id":406},"hash-collisions-why-we-dont-worry","Hash Collisions: Why We Don't Worry",[44,409,411],{"id":410},"birthday-paradox","Birthday Paradox",[19,413,414],{},"The \"birthday attack\" on a 256-bit hash requires:",[33,416,419],{"className":417,"code":418,"language":38},[36],"Number of hashes to find collision = 2^(256\u002F2) = 2^128\n\n2^128 = 340,282,366,920,938,463,463,374,607,431,768,211,456\n\nIf you could compute 1 trillion hashes per second:\nTime = 2^128 \u002F (10^12) seconds\n     = 10^25 years\n\n(Universe age ≈ 10^10 years)\n",[40,420,418],{"__ignoreMap":42},[19,422,423,426],{},[51,424,425],{},"Conclusion:"," Collision attacks on SHA-512-Half are not feasible with current or foreseeable technology.",[44,428,430],{"id":429},"collision-resistance-in-practice","Collision Resistance in Practice",[33,432,435],{"className":433,"code":434,"language":38},[36],"\u002F\u002F XRPL relies on collision resistance for:\n\n\u002F\u002F 1. Transaction IDs must be unique\nuint256 txID = sha512Half(tx);\n\n\u002F\u002F 2. Ledger object keys must not collide\nuint256 accountKey = sha512Half(HashPrefix::account, accountID);\n\n\u002F\u002F 3. Merkle tree integrity\nuint256 nodeHash = sha512Half(leftChild, rightChild);\n",[40,436,434],{"__ignoreMap":42},[19,438,439],{},"A collision in any of these would be catastrophic, but the probability is negligible.",[14,441,443],{"id":442},"performance-considerations","Performance Considerations",[44,445,447],{"id":446},"hashing-speed","Hashing Speed",[33,449,452],{"className":450,"code":451,"language":38},[36],"\u002F\u002F Benchmark results (approximate, hardware-dependent):\n\nSHA-512-Half: ~650 MB\u002Fs\nSHA-256:      ~450 MB\u002Fs\nRIPEMD-160:   ~200 MB\u002Fs\n\nFor 1 KB transaction:\nSHA-512-Half: ~1.5 microseconds\n",[40,453,451],{"__ignoreMap":42},[44,455,457],{"id":456},"caching-hashes","Caching Hashes",[33,459,462],{"className":460,"code":461,"language":38},[36],"class SHAMapNode\n{\nprivate:\n    uint256 hash_;\n    bool hashValid_;\n\npublic:\n    uint256 getHash() const\n    {\n        if (hashValid_)\n            return hash_;  \u002F\u002F Return cached value\n\n        \u002F\u002F Compute hash (expensive)\n        hash_ = computeHash();\n        hashValid_ = true;\n        return hash_;\n    }\n\n    void invalidateHash()\n    {\n        hashValid_ = false;  \u002F\u002F Force recomputation next time\n    }\n};\n",[40,463,461],{"__ignoreMap":42},[19,465,466],{},[51,467,468],{},"Why cache?",[202,470,471,474,477],{},[205,472,473],{},"Merkle tree nodes are hashed repeatedly",[205,475,476],{},"Caching avoids redundant computation",[205,478,479],{},"Invalidate when node contents change",[14,481,483],{"id":482},"hash-function-summary","Hash Function Summary",[485,486,487,506],"table",{},[488,489,490],"thead",{},[491,492,493,497,500,503],"tr",{},[494,495,496],"th",{},"Function",[494,498,499],{},"Output Size",[494,501,502],{},"Speed",[494,504,505],{},"Primary Use",[507,508,509,524,537,551],"tbody",{},[491,510,511,515,518,521],{},[512,513,514],"td",{},"SHA-512-Half",[512,516,517],{},"256 bits",[512,519,520],{},"~650 MB\u002Fs",[512,522,523],{},"Transaction IDs, object keys, Merkle trees",[491,525,526,529,531,534],{},[512,527,528],{},"SHA-256",[512,530,517],{},[512,532,533],{},"~450 MB\u002Fs",[512,535,536],{},"Base58Check checksums",[491,538,539,542,545,548],{},[512,540,541],{},"RIPEMD-160",[512,543,544],{},"160 bits",[512,546,547],{},"~200 MB\u002Fs",[512,549,550],{},"Part of RIPESHA (address generation)",[491,552,553,556,558,561],{},[512,554,555],{},"RIPESHA",[512,557,544],{},[512,559,560],{},"~300 MB\u002Fs",[512,562,563],{},"Account IDs, node IDs",[14,565,567],{"id":566},"best-practices","Best Practices",[44,569,571],{"id":570},"do","✅ DO:",[573,574,575,586,597,608],"ol",{},[205,576,577,580],{},[51,578,579],{},"Use sha512Half for new protocols",[33,581,584],{"className":582,"code":583,"language":38},[36],"uint256 hash = sha512Half(data);  \u002F\u002F Fast and standard\n",[40,585,583],{"__ignoreMap":42},[205,587,588,591],{},[51,589,590],{},"Use hash prefixes for domain separation",[33,592,595],{"className":593,"code":594,"language":38},[36],"uint256 hash = sha512Half(HashPrefix::custom, data);\n",[40,596,594],{"__ignoreMap":42},[205,598,599,602],{},[51,600,601],{},"Cache computed hashes when appropriate",[33,603,606],{"className":604,"code":605,"language":38},[36],"if (cached)\n    return cachedHash;\ncachedHash = sha512Half(data);\nreturn cachedHash;\n",[40,607,605],{"__ignoreMap":42},[205,609,610,613],{},[51,611,612],{},"Use secure variant for sensitive data",[33,614,617],{"className":615,"code":616,"language":38},[36],"uint256 hash = sha512Half_s(secretData);\n",[40,618,616],{"__ignoreMap":42},[44,620,622],{"id":621},"dont","❌ DON'T:",[573,624,625,636,647],{},[205,626,627,630],{},[51,628,629],{},"Don't use non-cryptographic hashes for security",[33,631,634],{"className":632,"code":633,"language":38},[36],"std::hash\u003Cstd::string>{}(data);  \u002F\u002F ❌ NOT SECURE\n",[40,635,633],{"__ignoreMap":42},[205,637,638,641],{},[51,639,640],{},"Don't implement your own hash function",[33,642,645],{"className":643,"code":644,"language":38},[36],"uint32_t myHash(data) { \u002F* ... *\u002F }  \u002F\u002F ❌ Don't do this\n",[40,646,644],{"__ignoreMap":42},[205,648,649,652],{},[51,650,651],{},"Don't assume hashes are unique without checking",[33,653,656],{"className":654,"code":655,"language":38},[36],"\u002F\u002F Even though collisions are infeasible, handle errors gracefully\nif (hashExists(newHash))\n    handleCollision();  \u002F\u002F Paranoid but correct\n",[40,657,655],{"__ignoreMap":42},[14,659,661],{"id":660},"summary","Summary",[19,663,664],{},"Hash functions in XRPL provide:",[573,666,667,673,679,685],{},[205,668,669,672],{},[51,670,671],{},"Integrity",": Detect any data modification",[205,674,675,678],{},[51,676,677],{},"Identification",": Unique IDs for transactions and objects",[205,680,681,684],{},[51,682,683],{},"Efficiency",": Fast computation on modern CPUs",[205,686,687,690],{},[51,688,689],{},"Security",": Collision and preimage resistance",[19,692,693],{},[51,694,695],{},"Key algorithms:",[202,697,698,703,708],{},[205,699,700,702],{},[51,701,514],{},": Primary hash (fast on 64-bit systems)",[205,704,705,707],{},[51,706,555],{},": Address generation (compact, defense in depth)",[205,709,710,712],{},[51,711,528],{},": Checksums (standard, well-tested)",[19,714,715],{},[51,716,717],{},"Usage patterns:",[202,719,720,723,726,729],{},[205,721,722],{},"Always use hash prefixes for domain separation",[205,724,725],{},"Cache hashes when recomputed frequently",[205,727,728],{},"Use secure variants for sensitive data",[205,730,731],{},"Trust collision resistance but code defensively",[19,733,734],{},"In the next chapter, we'll explore Base58Check encoding and how XRPL makes binary data human-readable.",{"title":42,"searchDepth":736,"depth":736,"links":737},2,[738,739,743,748,749,754,757,760,761,765,769,770,774],{"id":16,"depth":736,"text":17},{"id":27,"depth":736,"text":28,"children":740},[741],{"id":46,"depth":742,"text":47},3,{"id":106,"depth":736,"text":107,"children":744},[745,746,747],{"id":110,"depth":742,"text":111},{"id":141,"depth":742,"text":142},{"id":151,"depth":742,"text":152},{"id":188,"depth":736,"text":189},{"id":227,"depth":736,"text":228,"children":750},[751,752,753],{"id":231,"depth":742,"text":232},{"id":241,"depth":742,"text":242},{"id":278,"depth":742,"text":279},{"id":288,"depth":736,"text":289,"children":755},[756],{"id":292,"depth":742,"text":293},{"id":332,"depth":736,"text":333,"children":758},[759],{"id":356,"depth":742,"text":357},{"id":366,"depth":736,"text":367},{"id":406,"depth":736,"text":407,"children":762},[763,764],{"id":410,"depth":742,"text":411},{"id":429,"depth":742,"text":430},{"id":442,"depth":736,"text":443,"children":766},[767,768],{"id":446,"depth":742,"text":447},{"id":456,"depth":742,"text":457},{"id":482,"depth":736,"text":483},{"id":566,"depth":736,"text":567,"children":771},[772,773],{"id":570,"depth":742,"text":571},{"id":621,"depth":742,"text":622},{"id":660,"depth":736,"text":661},"md",{},true,"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhash-functions-in-xrpl",{"title":5,"description":21},"xrpl-trainings\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhash-functions-in-xrpl.md","docs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhash-functions-in-xrpl","W9wnIfs9rq9f425yw7YiQbGXLvJUi4ZE3ptGLPcUvRQ",[],[785,827,842,863,887,1279],{"title":786,"path":787,"children":788,"description":825,"pages":826},"XRPL Basics","\u002Fdocs\u002Fxrpl-basics",[789,792,795,798,801,804,807,810,813,816,819,822],{"title":790,"path":791},"Getting Started","\u002Fdocs\u002Fxrpl-basics\u002Fgetting-started",{"title":793,"path":794},"Trustline","\u002Fdocs\u002Fxrpl-basics\u002Ftrustline",{"title":796,"path":797},"Payments","\u002Fdocs\u002Fxrpl-basics\u002Fpayments",{"title":799,"path":800},"Reading and subscribing to Transactions","\u002Fdocs\u002Fxrpl-basics\u002Freading-and-writing-memos",{"title":802,"path":803},"Writing and reading memos","\u002Fdocs\u002Fxrpl-basics\u002Fwriting-and-reading-memos",{"title":805,"path":806},"Non Fungible Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fnon-fungible-tokens",{"title":808,"path":809},"Multi-Purpose Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fmptoken",{"title":811,"path":812},"PathFinding","\u002Fdocs\u002Fxrpl-basics\u002Fpath-finding",{"title":814,"path":815},"Escrow","\u002Fdocs\u002Fxrpl-basics\u002Fescrow",{"title":817,"path":818},"Price Oracles","\u002Fdocs\u002Fxrpl-basics\u002Fprice-oracles",{"title":820,"path":821},"Tickets","\u002Fdocs\u002Fxrpl-basics\u002Ftickets",{"title":823,"path":824},"Multi-Signature","\u002Fdocs\u002Fxrpl-basics\u002Fmulti-signature","In this section we will cover some of the primary functionality of the XRPL ledger.",13,{"title":828,"path":829,"children":830,"description":840,"pages":841},"Token Issuance and Liquidity","\u002Fdocs\u002Ftoken-issuance-and-liquidity",[831,834,837],{"title":832,"path":833},"Creating Accounts and Setup","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fcreating-accounts",{"title":835,"path":836},"Issuing Tokens","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fissuing-tokens",{"title":838,"path":839},"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",4,{"title":843,"path":844,"children":845,"description":861,"pages":862},"Cyphered Chat on XRPL","\u002Fdocs\u002Fcyphered-chat-on-xrpl",[846,849,852,855,858],{"title":847,"path":848},"Set up","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up",{"title":850,"path":851},"Set up Keys","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-keys",{"title":853,"path":854},"Cypher the message","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fcypher-the-message",{"title":856,"path":857},"Set up the memo & send the tx","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-the-memo-and-send-the-tx",{"title":859,"path":860},"Get the message and decypher it","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fget-the-message-and-decypher-it","Send encrypted messages over XRPL",6,{"title":864,"path":865,"children":866,"description":885,"pages":886},"EVM Sidechain","\u002Fdocs\u002Fevm-sidechain",[867,870,873,876,879,882],{"title":868,"path":869},"Connecting Metamask","\u002Fdocs\u002Fevm-sidechain\u002Fconnecting-metamask",{"title":871,"path":872},"Set up a Foundry project","\u002Fdocs\u002Fevm-sidechain\u002Fset-up-an-evm-project",{"title":874,"path":875},"Bridging Assets","\u002Fdocs\u002Fevm-sidechain\u002Fbridging-assets",{"title":877,"path":878},"Remix","\u002Fdocs\u002Fevm-sidechain\u002Fremix",{"title":880,"path":881},"Banking App","\u002Fdocs\u002Fevm-sidechain\u002Fbanking-app",{"title":883,"path":884},"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",7,{"title":888,"path":889,"children":890,"description":1277,"pages":1278},"Core Dev Bootcamp","\u002Fdocs\u002Fcore-dev-bootcamp",[891,911,954,1004,1035,1090,1121,1137,1177,1211,1236,1252],{"title":892,"path":893,"children":894},"Rippled I – Compilation, Configuration, and Launch","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01",[895,898,901,904],{"title":896,"path":897},"Environment & Build Toolchain","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fenvironment-build-toolchain",{"title":899,"path":900},"Compilation Process & Generating Binary","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fcompilation-process-generating-binary",{"title":902,"path":903},"Local Development & Testing","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Flocal-development-testing",{"title":905,"path":906,"children":907},"Homeworks","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks",[908],{"title":909,"path":910},"Homework 1: Rippled Node Setup and Mainnet Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks\u002Fhomework1",{"title":912,"path":913,"children":914},"Rippled II: Deep Dive into the Protocol and Codebase","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02",[915,918,921,924,927,930,933,936,939],{"title":916,"path":917},"Protocols: Communication and Interoperability","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fprotocols-communication-and-interoperability",{"title":919,"path":920},"Transactors: Transaction Processing Framework","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransactors-transaction-processing-framework",{"title":922,"path":923},"Application Layer: Central Orchestration and Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fapplication-layer-central-orchestration-and-coordination",{"title":925,"path":926},"Consensus Engine: XRP Ledger Consensus Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fconsensus-engine-xrp-ledger-consensus-protocol",{"title":928,"path":929},"Overlay Network: Peer-to-Peer Networking Layer","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Foverlay-network-peer-to-peer-networking-layer",{"title":931,"path":932},"Transaction Lifecycle: Complete Transaction Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransaction-lifecycle-complete-transaction-journey",{"title":934,"path":935},"Codebase Navigation: Efficiently Navigating the Rippled Source","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fcodebase-navigation-efficiently-navigating-the-rippled-source",{"title":937,"path":938},"Debugging Tools: Development and Debugging Techniques","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fdebugging-tools-development-and-debugging-techniques",{"title":905,"path":940,"children":941},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks",[942,945,948,951],{"title":943,"path":944},"Homework 1: Transaction Flow Analysis","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework1",{"title":946,"path":947},"Homework 2: Transactor Code Exploration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework2",{"title":949,"path":950},"Homework 3: Logging and Debugging","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework3",{"title":952,"path":953},"Homework 4: Architecture Diagram","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework4",{"title":955,"path":956,"children":957},"Anatomy of Rippled: SHAMap and NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03",[958,961,964,967,970,973,976,979,982,985,988,991],{"title":959,"path":960},"Foundational Concepts","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstate-management-challenges",{"title":962,"path":963},"Trees, Hashing, and Cryptographic Commitments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Ftree-fundamentals",{"title":965,"path":966},"SHAMap Architecture and Node Hierarchy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-architecture",{"title":968,"path":969},"Navigation, Hashing, and Merkle Properties","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-navigation-hashing",{"title":971,"path":972},"Traversal, Iteration, and Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-synchronization",{"title":974,"path":975},"The NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fnodestore-architecture",{"title":977,"path":978},"Storage Abstraction and Backend Implementations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstorage-backends",{"title":980,"path":981},"Cache Layer and Performance Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fcache-layer",{"title":983,"path":984},"Database Operations and Lifecycle Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fdatabase-operations",{"title":986,"path":987},"Cryptographic Proofs and State Reconstruction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fproofs-state-reconstruction",{"title":989,"path":990},"Resource Management and Performance Characteristics","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fresource-management",{"title":992,"path":993,"children":994},"Appendices","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices",[995,998,1001],{"title":996,"path":997},"Appendix : Codebase Navigation Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fnavigation",{"title":999,"path":1000},"Appendix : Configuration Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fconfiguration",{"title":1002,"path":1003},"Appendix : Debugging and Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fdebugging",{"title":1005,"path":1006,"children":1007},"Transactors: Understanding the Lifecycle of a Transaction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis",[1008,1011,1014,1017,1020,1023,1026,1029,1032],{"title":1009,"path":1010},"Transactor Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ftransactor-architecture",{"title":1012,"path":1013},"Processing Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fprocessing-pipeline",{"title":1015,"path":1016},"Fee and Sequence Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ffee-sequence-handling",{"title":1018,"path":1019},"State Modification Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fstate-modification",{"title":1021,"path":1022},"TER Result Codes","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fter-result-codes",{"title":1024,"path":1025},"Case Study: CheckCreate Transactor","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fcase-study-checkcreate",{"title":1027,"path":1028},"Homework 1: Trace a Transaction Through All Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework1",{"title":1030,"path":1031},"Homework 2: Implement a Custom Validation Check","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework2",{"title":1033,"path":1034},"Homework 3: Analyze TER Code Paths","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework3",{"title":1036,"path":1037,"children":1038},"Cryptography I: Blockchain Security and Cryptographic Foundations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04",[1039,1042,1045,1048,1051,1054,1057,1058,1061,1064,1067,1070,1073,1084],{"title":1040,"path":1041},"The Four Pillars of Security","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-four-pillars-of-security",{"title":1043,"path":1044},"The Lifecycle of a Cryptographic Key","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-lifecycle-of-a-cryptographic-key",{"title":1046,"path":1047},"Random Number Generation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation",{"title":1049,"path":1050},"Random Number Generation & Entropy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation-and-entropy",{"title":1052,"path":1053},"Key Generation Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fkey-generation-pipeline",{"title":1055,"path":1056},"Transaction Signing & Verification","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Ftransaction-signing-and-verification",{"title":5,"path":778},{"title":1059,"path":1060},"Base58Check Encoding","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fbase58check-encoding",{"title":1062,"path":1063},"Peer Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fpeer-handshake-protocol",{"title":1065,"path":1066},"Secure Memory Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fsecure-memory-handling",{"title":1068,"path":1069},"Common Cryptographic Pitfalls","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fcommon-cryptographic-pitfalls",{"title":1071,"path":1072},"Performance & Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fperformance-and-optimization",{"title":992,"path":1074,"children":1075},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices",[1076,1078,1081],{"title":996,"path":1077},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fcodebase-navigation-guide",{"title":1079,"path":1080},"Appendix : Debugging & Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fdebugging-and-development-tools",{"title":1082,"path":1083},"Appendix : RFCs and Standards Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Frfcs-and-standards-reference",{"title":905,"path":1085,"children":1086},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks",[1087],{"title":1088,"path":1089},"Homework 1: Signature Verification Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks\u002Fhomework1",{"title":1091,"path":1092,"children":1093},"Cryptography II: Protocol Extensions and Quantum Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05",[1094,1097,1100,1103,1106,1109,1115],{"title":1095,"path":1096},"Overlay Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Foverlay-architecture",{"title":1098,"path":1099},"Connection Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fconnection-lifecycle",{"title":1101,"path":1102},"Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhandshake-protocol",{"title":1104,"path":1105},"Message Relaying","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fmessage-relaying",{"title":1107,"path":1108},"Peer Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fpeer-discovery",{"title":992,"path":1110,"children":1111},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices",[1112],{"title":1113,"path":1114},"XLS-??d Quantum-Resistant Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices\u002Fxls-d",{"title":905,"path":1116,"children":1117},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks",[1118],{"title":1119,"path":1120},"Homework 1: Building Quantum-Resistant Signatures for XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks\u002Fhomework1",{"title":1122,"path":1123,"children":1124},"Communication I: Understanding XRPL(d) RPC Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06",[1125,1128,1131,1134],{"title":1126,"path":1127},"RPC Handler Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frpc-handler-architecture",{"title":1129,"path":1130},"Request and Response Flow","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frequest-response-flow",{"title":1132,"path":1133},"Authentication and Authorization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Fauthentication-authorization",{"title":1135,"path":1136},"Error Handling and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Ferror-handling-validation",{"title":1138,"path":1139,"children":1140},"Communication II: Building and Integrating Custom RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07",[1141,1144,1147,1150,1153,1165],{"title":1142,"path":1143},"Implementing Custom Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fimplementing-custom-handlers",{"title":1145,"path":1146},"Testing RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Ftesting-rpc-handlers",{"title":1148,"path":1149},"Advanced Features","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fadvanced-features",{"title":1151,"path":1152},"Best Practices and Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fbest-practices-patterns",{"title":992,"path":1154,"children":1155},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices",[1156,1159,1162],{"title":1157,"path":1158},"Appendix: Handler Examples","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhandler-examples",{"title":1160,"path":1161},"Appendix: Helper Functions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhelper-functions",{"title":1163,"path":1164},"Appendix: Debugging Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fdebugging-guide",{"title":905,"path":1166,"children":1167},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks",[1168,1171,1174],{"title":1169,"path":1170},"Homework 1: Building a Custom RPC Handler","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhomework1",{"title":1172,"path":1173},"Hints","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhints",{"title":1175,"path":1176},"Snippets","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fsnippets",{"title":1178,"path":1179,"children":1180},"Consensus I: Node, Consensus, and Ledger Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08",[1181,1184,1187,1190,1193,1196,1199,1202],{"title":1182,"path":1183},"Consensus Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-fundamentals",{"title":1185,"path":1186},"Consensus Modes and Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-modes-phases",{"title":1188,"path":1189},"Consensus Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-lifecycle",{"title":1191,"path":1192},"Ledger Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-architecture",{"title":1194,"path":1195},"Ledger Data Structures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-data-structures",{"title":1197,"path":1198},"Ledger Acquisition and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-acquisition-validation",{"title":1200,"path":1201},"RPC and Peer Transaction Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Frpc-peer-tx-lifecycle",{"title":905,"path":1203,"children":1204},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks",[1205,1208],{"title":1206,"path":1207},"Homework 1: Transaction Consensus Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework1",{"title":1209,"path":1210},"Homework 2: Consensus Dispute Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework2",{"title":1212,"path":1213,"children":1214},"Consensus II: UNLs and Ledger Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09",[1215,1218,1221,1224,1227,1230,1233],{"title":1216,"path":1217},"Transaction Ordering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Ftx-ordering",{"title":1219,"path":1220},"Consensus Validations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-validations",{"title":1222,"path":1223},"Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Famendments",{"title":1225,"path":1226},"UNL Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Funl",{"title":1228,"path":1229},"Consensus Peers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-peers",{"title":1231,"path":1232},"Homework 1: Validator Keys Setup and Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework1",{"title":1234,"path":1235},"Homework 2: Negative UNL Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework2",{"title":1237,"path":1238,"children":1239},"AMM: Automated Market Maker","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis",[1240,1243,1246,1249],{"title":1241,"path":1242},"AMM Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-architecture",{"title":1244,"path":1245},"AMM Transactions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-transactions",{"title":1247,"path":1248},"AMM Logic","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-logic",{"title":1250,"path":1251},"Pathfinding Integration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-pathfinding",{"title":1253,"path":1254,"children":1255},"Building Amendments: Lifecycle and Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10",[1256,1259,1262,1265,1268,1271,1274],{"title":1257,"path":1258},"Amendment Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-architecture",{"title":1260,"path":1261},"Amendment Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-lifecycle",{"title":1263,"path":1264},"Voting and Activation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fvoting-and-activation",{"title":1266,"path":1267},"Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fprotocol-impact",{"title":1269,"path":1270},"Network Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fnetwork-coordination",{"title":1272,"path":1273},"Monitoring and Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-monitoring",{"title":1275,"path":1276},"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":1280,"path":1281,"children":1282,"description":1289,"pages":742},"Tools","\u002Fdocs\u002Ftools",[1283,1286],{"title":1284,"path":1285},"Xaman Setup","\u002Fdocs\u002Ftools\u002Fxaman-setup",{"title":1287,"path":1288},"Metamask Setup","\u002Fdocs\u002Ftools\u002Fmetamask-setup","In this section you will find instructions on how to setup wallets and tools",1796220772238]