xrpl
    Preparing search index...

    Function loadMptCrypto

    Confidential MPT (XLS-0096) integration layer, re-exported from xrpl's main entry point. High-level builders assemble each confidential transaction (querying ledger state, generating shared-blinding ciphertexts, commitments, and ordered zero-knowledge proofs) so callers never hand-build the cryptographic material.

    The crypto lives in the @xrplf/mpt-crypto dependency, reached only through a dynamic import, so its ~2 MB WASM is loaded lazily — only when a confidential builder actually runs, not on import 'xrpl'.

    • Lazily import the @xrplf/mpt-crypto dependency, caching the resolved module so the WASM binary is only loaded once. The import is dynamic on purpose: the ~2 MB WASM is fetched and instantiated only on this call, so apps that never invoke a confidential builder never load it, even though the builders are exported from xrpl.

      Returns Promise<__module>

      The resolved @xrplf/mpt-crypto module.

      If the module fails to load.