NTL treats cryptography as a swappable module rather than a baked-in choice, so a node can adopt a new algorithm without a protocol change.
NTL’s most important security design decision: cryptography is a module, not a foundation.
The Problem with Hardcoded Crypto
Every major protocol today has cryptographic assumptions baked into its core:
TLS uses RSA or ECDSA for key exchange
Bitcoin uses secp256k1 for signatures
Ethereum uses ECDSA with keccak256
HTTPS certificates depend on RSA/ECC
When quantum computing breaks these schemes (not if — when), every protocol that hardcoded them faces an existential rewrite.
NTL’s Approach
NTL defines a CryptoModule interface that all cryptographic operations go through:
trait CryptoModule: Send + Sync { /// Generate a new keypair fn generate_keypair(&self) -> Result<(PublicKey, PrivateKey)>; /// Sign a signal fn sign(&self, data: &[u8], private_key: &PrivateKey) -> Result<Signature>; /// Verify a signature fn verify(&self, data: &[u8], signature: &Signature, public_key: &PublicKey) -> Result<bool>; /// Encrypt data for a recipient fn encrypt(&self, data: &[u8], recipient_public_key: &PublicKey) -> Result<Vec<u8>>; /// Decrypt data fn decrypt(&self, data: &[u8], private_key: &PrivateKey) -> Result<Vec<u8>>; /// Key exchange for synapse establishment fn key_exchange( &self, local_private: &PrivateKey, remote_public: &PublicKey, ) -> Result<SharedSecret>; /// Hash function fn hash(&self, data: &[u8]) -> Result<Hash>; /// Module identifier fn module_id(&self) -> &str;}
Default Implementation
NTL ships with a default PostQuantumModule that uses:
Operation
Algorithm
Standard
Signatures
ML-DSA-65 (FIPS 204) + Ed25519
NIST PQC
Key Exchange
ML-KEM-768 (FIPS 203) + X25519
NIST PQC
Encryption
AES-256-GCM (symmetric)
NIST
Hashing
BLAKE3
—
These are the current NIST Post-Quantum Cryptography standards. When they’re superseded, a new module is published — the protocol doesn’t change.
hybrid-v1 (Ed25519 + ML-DSA-65 signatures, X25519 + ML-KEM-768 key agreement,
BLAKE3) is available behind the pq-crypto feature. classical-v1 — Ed25519,
X25519, BLAKE3 — remains the default. pq-v1, the earlier pre-standard
Kyber/Dilithium module, is withdrawn. See
spec/crypto-interface for the full status table.A node configured for a module this build cannot provide fails to start,
naming the modules it does support. It does not silently fall back: an
operator who asked for post-quantum signing and got Ed25519 has been told the
opposite of the truth about their deployment’s confidentiality horizon.
Swapping Modules
crypto_module is a top-level field, not a [crypto] table:
crypto_module = "classical-v1" # the default# crypto_module = "hybrid-v1" # post-quantum hybrid; needs the pq-crypto feature
Nodes negotiate crypto modules during the synapse handshake. If two nodes
support different modules they fall back to the highest common module, or
refuse the synapse.
Hybrid Mode
Design, not shipped. hybrid-v1 is specified; no implementation provides it
yet.
The intent is that during the transition period a hybrid mode signs and encrypts with both classical and post-quantum algorithms. This provides backward compatibility with systems that don’t yet support PQ crypto while maintaining quantum resistance.
// Hybrid signature: valid if EITHER scheme verifies// (protects against implementation bugs in new PQ schemes)HybridSignature { classical: Ed25519Signature, post_quantum: DilithiumSignature,}
Last modified on December 4, 2026
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Neural Transfer Layer","description":"NTL is an open source data transfer layer that replaces the request-response paradigm of traditional APIs with neural signal propagation. Built for the age of AI, Web3, and quantum computing.","colors":{"primary":"#8B4513","light":"#D4A574","dark":"#8B4513"},"logo":{"light":"https://mintcdn.com/nyuchiinstitute/3cEnyQmapw_aVprz/images/ntl-icon-light.png?fit=max\u0026auto=format\u0026n=3cEnyQmapw_aVprz\u0026q=85\u0026s=06b563d52807156423adddca61c507be","dark":"https://mintcdn.com/nyuchiinstitute/3cEnyQmapw_aVprz/images/ntl-icon-dark.png?fit=max\u0026auto=format\u0026n=3cEnyQmapw_aVprz\u0026q=85\u0026s=feb8717a4473fd413d1f7e21e399d361","href":"https://openntl.org"},"favicon":{"light":"https://mintcdn.com/nyuchiinstitute/L5Oo9PfB0A7RepWv/images/ntl-favicon-light.png?fit=max\u0026auto=format\u0026n=L5Oo9PfB0A7RepWv\u0026q=85\u0026s=2e6b3282a34139905ed56fa2390a0c6c","dark":"https://mintcdn.com/nyuchiinstitute/L5Oo9PfB0A7RepWv/images/ntl-favicon-dark.png?fit=max\u0026auto=format\u0026n=L5Oo9PfB0A7RepWv\u0026q=85\u0026s=e75938513a7e7e8022fbf15a95d21653"},"api":{"playground":{"display":"interactive"}},"appearance":{"default":"system"},"background":{"decoration":"grid","color":{"light":"#F3F2EE","dark":"#1B1A17"}},"navbar":{"links":[{"href":"https://github.com/openNTL/ntl","label":"GitHub"},{"href":"https://discord.gg/6R3wSv7HSY","label":"Discord","type":"discord"}],"primary":{"type":"button","label":"Get Started","href":"/guides/quickstart"}},"footer":{"socials":{"x":"https://x.com/nyuchiafrica","github":"https://github.com/openNTL","linkedin":"https://linkedin.com/company/nyuchi-africa"}},"seo":{"indexing":"all"},"fonts":{"heading":{"family":"Source Sans Pro","weight":500},"body":{"family":"Plus Jakarta Sans","weight":500}},"icons":{"library":"lucide"},"styling":{"eyebrows":"section","latex":true},"integrations":{"ga4":{"measurementId":"G-E4XLZ17VZS"}},"banner":{"content":"Maintained by The Bundu Foundation"},"thumbnails":{"appearance":"light"},"interaction":{"drilldown":true},"metadata":{"timestamp":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nyuchiinstitute","hasAudioNarration":false,"actualSubdomain":"nyuchiinstitute","customDomains":["openntl.org"],"gitSource":{"type":"github","owner":"openntl","repo":"ntl","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":"","_id":"6b10e4429ffae5051c412a8c"},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b1297cd92228a1efb5bf6b7","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"Documentation","count":24},{"language":"default","tag":"Specification","count":22},{"language":"default","tag":"Research","count":16},{"language":"default","tag":"API Reference","count":10},{"language":"default","tag":"Core Concepts","count":5},{"language":"default","tag":"Guides","count":5},{"language":"default","tag":"Adapters","count":4},{"language":"default","tag":"Security","count":4},{"language":"default","tag":"Introduction","count":3},{"language":"default","tag":"Governance","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"security/pluggable-crypto","slug":"/security/pluggable-crypto","pageMetadata":{"title":"Pluggable Cryptography","description":"NTL treats cryptography as a swappable module rather than a baked-in choice, so a node can adopt a new algorithm without a protocol change.","og:title":"Pluggable Cryptography — NTL Security","og:description":"NTL's approach to cryptographic agility — cryptography as a swappable module, not a hardcoded foundation.","twitter:title":"NTL Pluggable Cryptography","href":"/security/pluggable-crypto"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"NTL treats cryptography as a swappable module rather than a baked-in choice, so a node can adopt a new algorithm without a protocol change.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`NTL’s most important security design decision: `,_jsx(_components.strong,{children:`cryptography is a module, not a foundation.`})]}),`\n`,_jsx(Heading,{level:`2`,id:`the-problem-with-hardcoded-crypto`,children:`The Problem with Hardcoded Crypto`}),`\n`,_jsx(_components.p,{children:`Every major protocol today has cryptographic assumptions baked into its core:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`TLS uses RSA or ECDSA for key exchange`}),`\n`,_jsx(_components.li,{children:`Bitcoin uses secp256k1 for signatures`}),`\n`,_jsx(_components.li,{children:`Ethereum uses ECDSA with keccak256`}),`\n`,_jsx(_components.li,{children:`HTTPS certificates depend on RSA/ECC`}),`\n`]}),`\n`,_jsx(_components.p,{children:`When quantum computing breaks these schemes (not if — when), every protocol that hardcoded them faces an existential rewrite.`}),`\n`,_jsx(Heading,{level:`2`,id:`ntl’s-approach`,children:`NTL’s Approach`}),`\n`,_jsxs(_components.p,{children:[`NTL defines a `,_jsx(_components.strong,{children:`CryptoModule`}),` interface that all cryptographic operations go through:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`29`,language:`rust`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`rust`,children:_jsxs(_components.code,{language:`rust`,numberOfLines:`29`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`trait`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` CryptoModule`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Send`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Sync`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /// Generate a new keypair`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` fn`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` generate_keypair`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`PublicKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`PrivateKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)>;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /// Sign a signal`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` fn`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` sign`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`u8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`private_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`PrivateKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Signature`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /// Verify a signature`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` fn`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` verify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`u8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`signature`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Signature`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`public_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`PublicKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`bool`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /// Encrypt data for a recipient`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` fn`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` encrypt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`u8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`recipient_public_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`PublicKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Vec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`u8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>>;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /// Decrypt data`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` fn`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` decrypt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`u8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`private_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`PrivateKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Vec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`u8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>>;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /// Key exchange for synapse establishment`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` fn`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` key_exchange`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` local_private`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`PrivateKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` remote_public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`PublicKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`SharedSecret`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /// Hash function`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` fn`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` hash`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`u8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Hash`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` /// Module identifier`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` fn`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` module_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`default-implementation`,children:`Default Implementation`}),`\n`,_jsxs(_components.p,{children:[`NTL ships with a default `,_jsx(_components.code,{children:`PostQuantumModule`}),` that uses:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Operation`}),_jsx(_components.th,{children:`Algorithm`}),_jsx(_components.th,{children:`Standard`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Signatures`}),_jsx(_components.td,{children:`ML-DSA-65 (FIPS 204) + Ed25519`}),_jsx(_components.td,{children:`NIST PQC`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Key Exchange`}),_jsx(_components.td,{children:`ML-KEM-768 (FIPS 203) + X25519`}),_jsx(_components.td,{children:`NIST PQC`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Encryption`}),_jsx(_components.td,{children:`AES-256-GCM (symmetric)`}),_jsx(_components.td,{children:`NIST`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Hashing`}),_jsx(_components.td,{children:`BLAKE3`}),_jsx(_components.td,{children:`—`})]})]})]}),`\n`,_jsx(_components.p,{children:`These are the current NIST Post-Quantum Cryptography standards. When they’re superseded, a new module is published — the protocol doesn’t change.`}),`\n`,_jsxs(Warning,{children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`hybrid-v1`}),` (Ed25519 + ML-DSA-65 signatures, X25519 + ML-KEM-768 key agreement,\nBLAKE3) is available behind the `,_jsx(_components.code,{children:`pq-crypto`}),` feature. `,_jsx(_components.code,{children:`classical-v1`}),` — Ed25519,\nX25519, BLAKE3 — remains the default. `,_jsx(_components.code,{children:`pq-v1`}),`, the earlier pre-standard\nKyber/Dilithium module, is withdrawn. See\n`,_jsx(_components.a,{href:`/spec/crypto-interface`,children:`spec/crypto-interface`}),` for the full status table.`]}),_jsxs(_components.p,{children:[`A node configured for a module this build cannot provide `,_jsx(_components.strong,{children:`fails to start`}),`,\nnaming the modules it does support. It does not silently fall back: an\noperator who asked for post-quantum signing and got Ed25519 has been told the\nopposite of the truth about their deployment’s confidentiality horizon.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`swapping-modules`,children:`Swapping Modules`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`crypto_module`}),` is a top-level field, not a `,_jsx(_components.code,{children:`[crypto]`}),` table:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`toml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`toml`,children:_jsxs(_components.code,{language:`toml`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`crypto_module`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"classical-v1\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # the default`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# crypto_module = \"hybrid-v1\" # post-quantum hybrid; needs the pq-crypto feature`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Nodes negotiate crypto modules during the synapse handshake. If two nodes\nsupport different modules they fall back to the highest common module, or\nrefuse the synapse.`}),`\n`,_jsx(Heading,{level:`2`,id:`hybrid-mode`,children:`Hybrid Mode`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Design, not shipped. `,_jsx(_components.code,{children:`hybrid-v1`}),` is specified; no implementation provides it\nyet.`]})}),`\n`,_jsxs(_components.p,{children:[`The intent is that during the transition period a `,_jsx(_components.strong,{children:`hybrid mode`}),` signs and encrypts with both classical and post-quantum algorithms. This provides backward compatibility with systems that don’t yet support PQ crypto while maintaining quantum resistance.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`rust`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`rust`,children:_jsxs(_components.code,{language:`rust`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Hybrid signature: valid if EITHER scheme verifies`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// (protects against implementation bugs in new PQ schemes)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`HybridSignature`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` classical`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Ed25519Signature`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` post_quantum`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` DilithiumSignature`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Pluggable Cryptography","description":"NTL treats cryptography as a swappable module rather than a baked-in choice, so a node can adopt a new algorithm without a protocol change.","og:title":"Pluggable Cryptography — NTL Security","og:description":"NTL's approach to cryptographic agility — cryptography as a swappable module, not a hardcoded foundation.","twitter:title":"NTL Pluggable Cryptography","href":"/security/pluggable-crypto"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"The Problem with Hardcoded Crypto","slug":"the-problem-with-hardcoded-crypto","depth":2,"children":[]},{"title":"NTL’s Approach","slug":"ntl’s-approach","depth":2,"children":[]},{"title":"Default Implementation","slug":"default-implementation","depth":2,"children":[]},{"title":"Swapping Modules","slug":"swapping-modules","depth":2,"children":[]},{"title":"Hybrid Mode","slug":"hybrid-mode","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"nyuchiinstitute","siteName":"Neural Transfer Layer","title":"Pluggable Cryptography — NTL Security","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-04T10:37:03.713Z","gitLastModified":"2026-12-04T10:35:33.000Z","originalFileLocation":"security/pluggable-crypto.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"NTL treats cryptography as a swappable module rather than a baked-in choice, so a node can adopt a new algorithm without a protocol change.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Neural Transfer Layer\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nyuchiinstitute/rwY6TC31KCwl2Pxe/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/nyuchiinstitute/rwY6TC31KCwl2Pxe/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nyuchiinstitute/rwY6TC31KCwl2Pxe/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/nyuchiinstitute/rwY6TC31KCwl2Pxe/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/nyuchiinstitute/rwY6TC31KCwl2Pxe/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nyuchiinstitute/rwY6TC31KCwl2Pxe/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nyuchiinstitute/rwY6TC31KCwl2Pxe/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/nyuchiinstitute/rwY6TC31KCwl2Pxe/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/nyuchiinstitute/rwY6TC31KCwl2Pxe/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Pluggable Cryptography — NTL Security\">\u003cmeta data-mint-head property=\"og:description\" content=\"NTL\u0026#x27;s approach to cryptographic agility — cryptography as a swappable module, not a hardcoded foundation.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Neural Transfer Layer\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://openntl.org/security/pluggable-crypto\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nyuchiinstitute.mintlify.site/_mintlify/api/og/v2?division=Security\u0026amp;title=Pluggable+Cryptography\u0026amp;description=NTL+treats+cryptography+as+a+swappable+module+rather+than+a+baked-in+choice%2C+so+a+node+can+adopt+a+new+algorithm+without+a+protocol+change.\u0026amp;theme=a543be1cf90de1b740b10d36\u0026amp;signature=08264c6502a7fde35a85f04d549aa3f75dc0bc7e5e9522aa9e18b408716e763c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"NTL Pluggable Cryptography\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"NTL\u0026#x27;s approach to cryptographic agility — cryptography as a swappable module, not a hardcoded foundation.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nyuchiinstitute.mintlify.site/_mintlify/api/og/v2?division=Security\u0026amp;title=Pluggable+Cryptography\u0026amp;description=NTL+treats+cryptography+as+a+swappable+module+rather+than+a+baked-in+choice%2C+so+a+node+can+adopt+a+new+algorithm+without+a+protocol+change.\u0026amp;theme=a543be1cf90de1b740b10d36\u0026amp;signature=08264c6502a7fde35a85f04d549aa3f75dc0bc7e5e9522aa9e18b408716e763c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/nyuchiinstitute/rwY6TC31KCwl2Pxe/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Neural Transfer Layer\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8B4513\">\u003clink data-mint-head rel=\"canonical\" href=\"https://openntl.org/security/pluggable-crypto\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/security/pluggable-crypto.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://openntl.org/#organization\",\"name\":\"Neural Transfer Layer\",\"url\":\"https://openntl.org\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nyuchiinstitute/3cEnyQmapw_aVprz/images/ntl-icon-light.png?fit=max\u0026auto=format\u0026n=3cEnyQmapw_aVprz\u0026q=85\u0026s=06b563d52807156423adddca61c507be\"}},{\"@type\":\"WebSite\",\"@id\":\"https://openntl.org#website\",\"name\":\"Neural Transfer Layer\",\"url\":\"https://openntl.org\",\"publisher\":{\"@id\":\"https://openntl.org/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://openntl.org/security/pluggable-crypto#webpage\",\"url\":\"https://openntl.org/security/pluggable-crypto\",\"name\":\"Pluggable Cryptography\",\"description\":\"NTL treats cryptography as a swappable module rather than a baked-in choice, so a node can adopt a new algorithm without a protocol change.\",\"dateModified\":\"2026-12-04T10:35:33.000Z\",\"isPartOf\":{\"@id\":\"https://openntl.org#website\"},\"breadcrumb\":{\"@id\":\"https://openntl.org/security/pluggable-crypto#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://openntl.org/security/pluggable-crypto#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Security\",\"item\":\"https://openntl.org/security/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Pluggable Cryptography\",\"item\":\"https://openntl.org/security/pluggable-crypto\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://openntl.org/security/pluggable-crypto#article\",\"headline\":\"Pluggable Cryptography\",\"name\":\"Pluggable Cryptography\",\"description\":\"NTL treats cryptography as a swappable module rather than a baked-in choice, so a node can adopt a new algorithm without a protocol change.\",\"url\":\"https://openntl.org/security/pluggable-crypto\",\"mainEntityOfPage\":{\"@id\":\"https://openntl.org/security/pluggable-crypto#webpage\"},\"dateModified\":\"2026-12-04T10:35:33.000Z\",\"publisher\":{\"@id\":\"https://openntl.org/#organization\"},\"isPartOf\":{\"@id\":\"https://openntl.org#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Neural Transfer Layer\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Neural Transfer Layer\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/security/pluggable-crypto.md","siteName":"Neural Transfer Layer","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Introduction","pages":[{"title":"Neural Transfer Layer","mode":"wide","href":"/introduction"},{"title":"Why NTL","mode":"wide","href":"/why-ntl"},{"title":"Architecture","mode":"wide","href":"/architecture"}]},{"group":"Core Concepts","pages":[{"title":"Signals","href":"/concepts/signals"},{"title":"Synapses","href":"/concepts/synapses"},{"title":"Activation","href":"/concepts/activation"},{"title":"Propagation","href":"/concepts/propagation"},{"title":"Topology","href":"/concepts/topology"}]},{"group":"Guides","pages":[{"title":"Quickstart","href":"/guides/quickstart"},{"title":"Your First Signal Handler","href":"/guides/first-signal"},{"title":"Building Adapters","href":"/guides/building-adapters"},{"title":"Storage Backends","href":"/guides/storage-backends"},{"title":"Postgres MCP Server","href":"/guides/postgres-mcp"}]},{"group":"Adapters","pages":[{"title":"Adapters Overview","mode":"wide","href":"/adapters/overview"},{"title":"Web2 Adapter","href":"/adapters/web2"},{"title":"Web3 Adapter","href":"/adapters/web3"},{"title":"Legacy API Adapter","href":"/adapters/legacy-api"}]},{"group":"Security","pages":[{"title":"Security Overview","description":"openNTL's security model — pluggable cryptography, identity binding, signature verification, and the threat model for learned routing.","mode":"wide","href":"/security/overview"},{"title":"Pluggable Cryptography","href":"/security/pluggable-crypto"},{"title":"Post-Quantum Readiness","description":"How openNTL prepares for post-quantum cryptography: what the pluggable interface guarantees today, and what has not yet been implemented.","href":"/security/post-quantum"},{"title":"Identity","href":"/security/identity"}]},{"group":"Governance","pages":[{"title":"Contributing","href":"/governance/contributing"},{"title":"Roadmap","mode":"wide","href":"/governance/roadmap"},{"title":"RFC Process","href":"/governance/rfc-process"}]}]},{"tab":"Specification","pages":[{"title":"Specification","href":"/spec/overview"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/overview"}]},{"tab":"Research","pages":[{"title":"Research","href":"/research/overview"}]}]},"basePath":"","title":"Pluggable Cryptography — NTL Security","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":[],"chunks":[]}