space-data-module-sdk 0.13.1 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/space-data-module.js +2 -1
- package/docs/_shell/consumer-assets.html +1 -1
- package/docs/assets/sdn-chrome/sdn-chrome.js +7 -3
- package/docs/assets/vendor/sdn-stack-nav/{1.2.0/sdn-stack-nav.ba268c55a1551bcacc390ac01347c319335a1660787b55b4b239df00fc3c1a4c.js → 1.3.0/sdn-stack-nav.2e5d4efc654388c85b79e53b1b148268e4083d9252f2a367ea257ccb50d270cd.js} +5 -0
- package/docs/browser-wasmedge-isomorphic.html +1 -1
- package/docs/byo-wasm-quickstart.html +1 -1
- package/docs/conformance.html +1 -1
- package/docs/events-abi.html +1 -1
- package/docs/families/analytics.html +1 -1
- package/docs/families/attitude.html +1 -1
- package/docs/families/behavior.html +1 -1
- package/docs/families/breakup.html +1 -1
- package/docs/families/conjunction.html +1 -1
- package/docs/families/data-source.html +2 -2
- package/docs/families/effects.html +1 -1
- package/docs/families/environment.html +1 -1
- package/docs/families/estimation.html +1 -1
- package/docs/families/gnc.html +1 -1
- package/docs/families/maneuver.html +1 -1
- package/docs/families/obstruction.html +1 -1
- package/docs/families/propagator.html +1 -1
- package/docs/families/propulsion.html +1 -1
- package/docs/families/reentry.html +1 -1
- package/docs/families/rf.html +1 -1
- package/docs/families/scheduler.html +1 -1
- package/docs/families/sensor.html +1 -1
- package/docs/families/signature.html +1 -1
- package/docs/flatsql-host-contract.html +1 -1
- package/docs/flatsql-streaming-standard.html +1 -1
- package/docs/gpu-module-abi.html +1 -1
- package/docs/index.html +1 -1
- package/docs/isomorphic-pthreads.html +1 -1
- package/docs/isomorphic-sdn-runtime-plan.html +1 -1
- package/docs/language-runtime-matrix.html +1 -1
- package/docs/module-bundle-runtime-plan.html +1 -1
- package/docs/module-publication-standard.html +10 -7
- package/docs/module-publication-standard.md +25 -11
- package/docs/node-red-default-node-parity.html +1 -1
- package/docs/protect-and-sign.html +9 -7
- package/docs/protect-and-sign.md +39 -9
- package/docs/protocol-installation.html +1 -1
- package/docs/provider-access-abi.md +7 -1
- package/docs/publication-submission.html +1 -1
- package/docs/secrets-capability.html +1 -1
- package/docs/testing-harness.html +1 -1
- package/docs/tri-runtime-parity-gate.html +1 -1
- package/docs/tri-runtime-parity.html +1 -1
- package/package.json +4 -4
- package/src/bundle/sdkTestSigner.js +41 -0
- package/src/bundle/sigdomain.js +2 -2
- package/src/bundle/signing.js +214 -36
- package/src/compiler/compileModule.js +4 -2
- package/src/flow/flowCompiler.js +7 -4
- package/src/generated/spacedatastandards/plg/PLG.d.ts +15 -3
- package/src/generated/spacedatastandards/plg/PLG.d.ts.map +1 -1
- package/src/generated/spacedatastandards/plg/PLG.js +18 -6
- package/src/generated/spacedatastandards/plg/PLG.ts +31 -6
- package/src/host/browserHost.js +56 -6
- package/src/host/hostWorkerBundleSources.js +3 -3
- package/src/host/nodeHost.js +60 -3
- package/src/host/providerAccessAbi.js +17 -3
- package/src/host/providerAccessFixtureAdapter.js +14 -4
- package/src/host/providerAccessTileStoreAdapter.js +5 -1
- package/src/index.d.ts +61 -12
- package/src/licensing/records.js +18 -0
- package/src/manifest/plgCodec.js +22 -0
- package/src/transport/index.js +7 -0
- package/src/transport/pki.js +331 -172
- package/src/transport/records.js +98 -24
- package/src/utils/encoding.js +57 -2
- package/src/utils/wasmCrypto.js +187 -0
- /package/docs/assets/vendor/sdn-stack-nav/{1.2.0 → 1.3.0}/sdn-stack-nav.36a36359ce18322185e9ff179f88175bab67d5ad84a14d9c08a54f2ff27267e7.css +0 -0
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<!-- SDN_CONSUMER_ASSETS_START -->
|
|
15
15
|
<link rel="stylesheet" href="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" crossorigin="anonymous">
|
|
16
16
|
<script defer src="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" crossorigin="anonymous" data-sdn-wallet-public-client="v1"></script>
|
|
17
|
-
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.
|
|
17
|
+
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.2e5d4efc654388c85b79e53b1b148268e4083d9252f2a367ea257ccb50d270cd.js" integrity="sha384-XohIVyQyKflz7lf3TTrmIrihUTLtUhJaj/tTBlloTUjOItTmdQGLLFOmXWQwuwFg" crossorigin="anonymous" data-nav-style-url="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.36a36359ce18322185e9ff179f88175bab67d5ad84a14d9c08a54f2ff27267e7.css" data-nav-style-integrity="sha384-c4M8Fg+kYaeOYYtJVr7jJsde24IhSWkWaRyAOHEZU9jozhRck089aw+mnHwxymds" data-wallet-client-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" data-wallet-client-integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" data-wallet-style-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" data-wallet-style-integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" data-wallet-client-id="sdn-module-sdk-pages-v1" data-wallet-callback-uri="https://digitalarsenal.github.io/space-data-module-sdk/wallet-callback.html" data-wallet-registry-sha256="63784143e2ad8e2542d22148ff4a0a4da7a10f4b3f9909ae91a20dc0f60db06b"></script>
|
|
18
18
|
<!-- SDN_CONSUMER_ASSETS_END -->
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<!-- SDN_CONSUMER_ASSETS_START -->
|
|
15
15
|
<link rel="stylesheet" href="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" crossorigin="anonymous">
|
|
16
16
|
<script defer src="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" crossorigin="anonymous" data-sdn-wallet-public-client="v1"></script>
|
|
17
|
-
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.
|
|
17
|
+
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.2e5d4efc654388c85b79e53b1b148268e4083d9252f2a367ea257ccb50d270cd.js" integrity="sha384-XohIVyQyKflz7lf3TTrmIrihUTLtUhJaj/tTBlloTUjOItTmdQGLLFOmXWQwuwFg" crossorigin="anonymous" data-nav-style-url="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.36a36359ce18322185e9ff179f88175bab67d5ad84a14d9c08a54f2ff27267e7.css" data-nav-style-integrity="sha384-c4M8Fg+kYaeOYYtJVr7jJsde24IhSWkWaRyAOHEZU9jozhRck089aw+mnHwxymds" data-wallet-client-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" data-wallet-client-integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" data-wallet-style-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" data-wallet-style-integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" data-wallet-client-id="sdn-module-sdk-pages-v1" data-wallet-callback-uri="https://digitalarsenal.github.io/space-data-module-sdk/wallet-callback.html" data-wallet-registry-sha256="63784143e2ad8e2542d22148ff4a0a4da7a10f4b3f9909ae91a20dc0f60db06b"></script>
|
|
18
18
|
<!-- SDN_CONSUMER_ASSETS_END -->
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<!-- SDN_CONSUMER_ASSETS_START -->
|
|
15
15
|
<link rel="stylesheet" href="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" crossorigin="anonymous">
|
|
16
16
|
<script defer src="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" crossorigin="anonymous" data-sdn-wallet-public-client="v1"></script>
|
|
17
|
-
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.
|
|
17
|
+
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.2e5d4efc654388c85b79e53b1b148268e4083d9252f2a367ea257ccb50d270cd.js" integrity="sha384-XohIVyQyKflz7lf3TTrmIrihUTLtUhJaj/tTBlloTUjOItTmdQGLLFOmXWQwuwFg" crossorigin="anonymous" data-nav-style-url="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.36a36359ce18322185e9ff179f88175bab67d5ad84a14d9c08a54f2ff27267e7.css" data-nav-style-integrity="sha384-c4M8Fg+kYaeOYYtJVr7jJsde24IhSWkWaRyAOHEZU9jozhRck089aw+mnHwxymds" data-wallet-client-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" data-wallet-client-integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" data-wallet-style-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" data-wallet-style-integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" data-wallet-client-id="sdn-module-sdk-pages-v1" data-wallet-callback-uri="https://digitalarsenal.github.io/space-data-module-sdk/wallet-callback.html" data-wallet-registry-sha256="63784143e2ad8e2542d22148ff4a0a4da7a10f4b3f9909ae91a20dc0f60db06b"></script>
|
|
18
18
|
<!-- SDN_CONSUMER_ASSETS_END -->
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<!-- SDN_CONSUMER_ASSETS_START -->
|
|
15
15
|
<link rel="stylesheet" href="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" crossorigin="anonymous">
|
|
16
16
|
<script defer src="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" crossorigin="anonymous" data-sdn-wallet-public-client="v1"></script>
|
|
17
|
-
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.
|
|
17
|
+
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.2e5d4efc654388c85b79e53b1b148268e4083d9252f2a367ea257ccb50d270cd.js" integrity="sha384-XohIVyQyKflz7lf3TTrmIrihUTLtUhJaj/tTBlloTUjOItTmdQGLLFOmXWQwuwFg" crossorigin="anonymous" data-nav-style-url="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.36a36359ce18322185e9ff179f88175bab67d5ad84a14d9c08a54f2ff27267e7.css" data-nav-style-integrity="sha384-c4M8Fg+kYaeOYYtJVr7jJsde24IhSWkWaRyAOHEZU9jozhRck089aw+mnHwxymds" data-wallet-client-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" data-wallet-client-integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" data-wallet-style-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" data-wallet-style-integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" data-wallet-client-id="sdn-module-sdk-pages-v1" data-wallet-callback-uri="https://digitalarsenal.github.io/space-data-module-sdk/wallet-callback.html" data-wallet-registry-sha256="63784143e2ad8e2542d22148ff4a0a4da7a10f4b3f9909ae91a20dc0f60db06b"></script>
|
|
18
18
|
<!-- SDN_CONSUMER_ASSETS_END -->
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<!-- SDN_CONSUMER_ASSETS_START -->
|
|
15
15
|
<link rel="stylesheet" href="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" crossorigin="anonymous">
|
|
16
16
|
<script defer src="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" crossorigin="anonymous" data-sdn-wallet-public-client="v1"></script>
|
|
17
|
-
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.
|
|
17
|
+
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.2e5d4efc654388c85b79e53b1b148268e4083d9252f2a367ea257ccb50d270cd.js" integrity="sha384-XohIVyQyKflz7lf3TTrmIrihUTLtUhJaj/tTBlloTUjOItTmdQGLLFOmXWQwuwFg" crossorigin="anonymous" data-nav-style-url="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.36a36359ce18322185e9ff179f88175bab67d5ad84a14d9c08a54f2ff27267e7.css" data-nav-style-integrity="sha384-c4M8Fg+kYaeOYYtJVr7jJsde24IhSWkWaRyAOHEZU9jozhRck089aw+mnHwxymds" data-wallet-client-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" data-wallet-client-integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" data-wallet-style-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" data-wallet-style-integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" data-wallet-client-id="sdn-module-sdk-pages-v1" data-wallet-callback-uri="https://digitalarsenal.github.io/space-data-module-sdk/wallet-callback.html" data-wallet-registry-sha256="63784143e2ad8e2542d22148ff4a0a4da7a10f4b3f9909ae91a20dc0f60db06b"></script>
|
|
18
18
|
<!-- SDN_CONSUMER_ASSETS_END -->
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
</ul>
|
|
171
171
|
<p>In practice this is the record a host inspects to determine what artifact was published and which signer attested to it.</p>
|
|
172
172
|
<h3 id="mbl-signature-entry-domain-separation-statementdomain"><a class="anchor" href="#mbl-signature-entry-domain-separation-statementdomain" aria-hidden="true">#</a>MBL <code>signature</code> entry — domain separation (<code>statementDomain</code>)</h3>
|
|
173
|
-
<p>The detached
|
|
173
|
+
<p>The detached signature carried as the MBL bundle's <code>signature</code>-role entry is pure ML-DSA-65 (FIPS 204, empty context; <code>algorithm</code> <code>ml-dsa-65</code>, 1952-byte public key, 3309-byte signature). The verifier also admits <code>ml-dsa-87</code> and <code>slh-dsa-sha2-256s</code> entries; an <code>ed25519</code> entry is refused with <code>classical_signature_refused</code> before anything else about it is read. The entry has ONE form:</p>
|
|
174
174
|
<div class="table-wrap"><table><thead><tr><th><code>statementDomain</code></th><th>signature covers</th></tr></thead><tbody><tr><td><code>SDN-MODULE-PUBLICATION-V1</code></td><td>`"SDN-MODULE-PUBLICATION-V1" \</td><td>\</td><td>0x00 \</td><td>\</td><td>sha256(portable)`</td></tr></tbody></table></div>
|
|
175
175
|
<p><code>portable</code> is the trailer-stripped payload: the exact bytes the runtime instantiates and the node's capability policy identifies by content hash. The signature covers every byte of it (the code, every data segment, every custom section left in it) and none of the trailer: the MBL entries beside the signature, the manifest copy among them, are not signed. A host takes the manifest from the signed code, never from the trailer, and refuses an artifact whose trailer copy differs from the code's copy.</p>
|
|
176
176
|
<p><code>signModuleArtifact</code> writes it (<code>signatureScope: "publication"</code>, the default and the only value), the same entry, field for field, as the node's signing endpoint; so does the CLI's <code>sign</code>. The entry's <code>signedHashHex</code> is REQUIRED and equal to sha256(portable) (<code>missing_signed_hash</code>, <code>hash_mismatch</code>), and its <code>signedHashAlgorithm</code> is REQUIRED and is the fixed label <code>sha256-canonical-module-hash</code>, the string the node writes; it is a label, not a description of the hash (<code>unsupported_hash_algorithm</code>).</p>
|
|
@@ -182,17 +182,20 @@
|
|
|
182
182
|
<h3 id="enc-encrypted-delivery-extension"><a class="anchor" href="#enc-encrypted-delivery-extension" aria-hidden="true">#</a><code>ENC</code> encrypted-delivery extension</h3>
|
|
183
183
|
<p><code>ENC</code> carries the decryption parameters for a transport-protected module:</p>
|
|
184
184
|
<ul>
|
|
185
|
-
<li>key exchange algorithm (<code>
|
|
186
|
-
<li>symmetric algorithm (<code>AES_256_GCM</code
|
|
185
|
+
<li>key exchange algorithm (<code>X25519_MLKEM768</code>, SDS <code>$ENC</code> 1.0.3 wire value <code>3</code>)</li>
|
|
186
|
+
<li>symmetric algorithm (<code>AES_256_GCM</code>, wire value <code>1</code>)</li>
|
|
187
187
|
<li>key-derivation function (<code>HKDF_SHA256</code>)</li>
|
|
188
|
-
<li>ephemeral public key</li>
|
|
188
|
+
<li><code>EPHEMERAL_PUBLIC_KEY</code>: the 32-byte X25519 ephemeral public key</li>
|
|
189
|
+
<li><code>KEM_CIPHERTEXT</code>: the 1088-byte ML-KEM-768 ciphertext</li>
|
|
190
|
+
<li><code>AUTH_TAG</code>: the 16-byte AES-GCM tag</li>
|
|
189
191
|
<li>nonce start (the 12-byte AES-GCM IV)</li>
|
|
190
192
|
<li>optional context, schema hash, recipient key id, and root type</li>
|
|
191
193
|
</ul>
|
|
194
|
+
<p>The scheme is <code>x25519-mlkem768-hkdf-aes-256-gcm-rec</code>: the X-Wing shared secret (X25519 + ML-KEM-768, byte-for-byte Go 1.26 <code>crypto/hpke.MLKEM768X25519()</code>) through HKDF-SHA256 (empty salt, the context as info) keys AES-256-GCM. The recipient key is 1216 bytes, X25519 first (<code>$KMF</code> <code>HybridX25519MlKem768Public</code>, encoding <code>HybridPublic</code>). A classical <code>X25519</code> record is refused with <code>classical_delivery_refused</code>.</p>
|
|
192
195
|
<p>Encrypted delivery is authenticated:</p>
|
|
193
196
|
<ul>
|
|
194
|
-
<li>The protected payload bytes are
|
|
195
|
-
<li>The encoded <code>ENC</code> FlatBuffer record
|
|
197
|
+
<li>The protected payload bytes are the GCM ciphertext alone; the tag travels in <code>AUTH_TAG</code>.</li>
|
|
198
|
+
<li>The encoded <code>ENC</code> FlatBuffer record without its <code>AUTH_TAG</code> is the GCM additional authenticated data (AAD), so the context, schema hash, root type, recipient key id, nonce, X25519 ephemeral key and ML-KEM ciphertext are all bound to the ciphertext. Tampering with either the payload or the <code>ENC</code> record MUST cause decryption to fail.</li>
|
|
196
199
|
<li>Records labelled <code>AES_256_CTR</code> are rejected; the SDK neither produces nor decrypts unauthenticated CTR payloads.</li>
|
|
197
200
|
</ul>
|
|
198
201
|
<p>It describes how to decrypt the protected delivery payload. It does not imply a different module file format after decryption.</p>
|
|
@@ -114,8 +114,12 @@ published and which signer attested to it.
|
|
|
114
114
|
|
|
115
115
|
### MBL `signature` entry — domain separation (`statementDomain`)
|
|
116
116
|
|
|
117
|
-
The detached
|
|
118
|
-
|
|
117
|
+
The detached signature carried as the MBL bundle's `signature`-role entry is
|
|
118
|
+
pure ML-DSA-65 (FIPS 204, empty context; `algorithm` `ml-dsa-65`, 1952-byte
|
|
119
|
+
public key, 3309-byte signature). The verifier also admits `ml-dsa-87` and
|
|
120
|
+
`slh-dsa-sha2-256s` entries; an `ed25519` entry is refused with
|
|
121
|
+
`classical_signature_refused` before anything else about it is read. The entry
|
|
122
|
+
has ONE form:
|
|
119
123
|
|
|
120
124
|
| `statementDomain` | signature covers |
|
|
121
125
|
| ---------------------------- | --------------------------------------------------- |
|
|
@@ -184,21 +188,31 @@ verdict; the JS suite states those differences by name.
|
|
|
184
188
|
|
|
185
189
|
`ENC` carries the decryption parameters for a transport-protected module:
|
|
186
190
|
|
|
187
|
-
- key exchange algorithm (`
|
|
188
|
-
- symmetric algorithm (`AES_256_GCM
|
|
191
|
+
- key exchange algorithm (`X25519_MLKEM768`, SDS `$ENC` 1.0.3 wire value `3`)
|
|
192
|
+
- symmetric algorithm (`AES_256_GCM`, wire value `1`)
|
|
189
193
|
- key-derivation function (`HKDF_SHA256`)
|
|
190
|
-
- ephemeral public key
|
|
194
|
+
- `EPHEMERAL_PUBLIC_KEY`: the 32-byte X25519 ephemeral public key
|
|
195
|
+
- `KEM_CIPHERTEXT`: the 1088-byte ML-KEM-768 ciphertext
|
|
196
|
+
- `AUTH_TAG`: the 16-byte AES-GCM tag
|
|
191
197
|
- nonce start (the 12-byte AES-GCM IV)
|
|
192
198
|
- optional context, schema hash, recipient key id, and root type
|
|
193
199
|
|
|
200
|
+
The scheme is `x25519-mlkem768-hkdf-aes-256-gcm-rec`: the X-Wing shared secret
|
|
201
|
+
(X25519 + ML-KEM-768, byte-for-byte Go 1.26 `crypto/hpke.MLKEM768X25519()`)
|
|
202
|
+
through HKDF-SHA256 (empty salt, the context as info) keys AES-256-GCM. The
|
|
203
|
+
recipient key is 1216 bytes, X25519 first (`$KMF` `HybridX25519MlKem768Public`,
|
|
204
|
+
encoding `HybridPublic`). A classical `X25519` record is refused with
|
|
205
|
+
`classical_delivery_refused`.
|
|
206
|
+
|
|
194
207
|
Encrypted delivery is authenticated:
|
|
195
208
|
|
|
196
|
-
- The protected payload bytes are
|
|
197
|
-
|
|
198
|
-
- The encoded `ENC` FlatBuffer record
|
|
199
|
-
authenticated data (AAD), so the context, schema hash, root type,
|
|
200
|
-
key id, nonce,
|
|
201
|
-
with either the payload or the `ENC`
|
|
209
|
+
- The protected payload bytes are the GCM ciphertext alone; the tag travels in
|
|
210
|
+
`AUTH_TAG`.
|
|
211
|
+
- The encoded `ENC` FlatBuffer record without its `AUTH_TAG` is the GCM
|
|
212
|
+
additional authenticated data (AAD), so the context, schema hash, root type,
|
|
213
|
+
recipient key id, nonce, X25519 ephemeral key and ML-KEM ciphertext are all
|
|
214
|
+
bound to the ciphertext. Tampering with either the payload or the `ENC`
|
|
215
|
+
record MUST cause decryption to fail.
|
|
202
216
|
- Records labelled `AES_256_CTR` are rejected; the SDK neither produces nor
|
|
203
217
|
decrypts unauthenticated CTR payloads.
|
|
204
218
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<!-- SDN_CONSUMER_ASSETS_START -->
|
|
15
15
|
<link rel="stylesheet" href="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" crossorigin="anonymous">
|
|
16
16
|
<script defer src="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" crossorigin="anonymous" data-sdn-wallet-public-client="v1"></script>
|
|
17
|
-
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.
|
|
17
|
+
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.2e5d4efc654388c85b79e53b1b148268e4083d9252f2a367ea257ccb50d270cd.js" integrity="sha384-XohIVyQyKflz7lf3TTrmIrihUTLtUhJaj/tTBlloTUjOItTmdQGLLFOmXWQwuwFg" crossorigin="anonymous" data-nav-style-url="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.36a36359ce18322185e9ff179f88175bab67d5ad84a14d9c08a54f2ff27267e7.css" data-nav-style-integrity="sha384-c4M8Fg+kYaeOYYtJVr7jJsde24IhSWkWaRyAOHEZU9jozhRck089aw+mnHwxymds" data-wallet-client-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" data-wallet-client-integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" data-wallet-style-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" data-wallet-style-integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" data-wallet-client-id="sdn-module-sdk-pages-v1" data-wallet-callback-uri="https://digitalarsenal.github.io/space-data-module-sdk/wallet-callback.html" data-wallet-registry-sha256="63784143e2ad8e2542d22148ff4a0a4da7a10f4b3f9909ae91a20dc0f60db06b"></script>
|
|
18
18
|
<!-- SDN_CONSUMER_ASSETS_END -->
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<!-- SDN_CONSUMER_ASSETS_START -->
|
|
15
15
|
<link rel="stylesheet" href="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" crossorigin="anonymous">
|
|
16
16
|
<script defer src="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" crossorigin="anonymous" data-sdn-wallet-public-client="v1"></script>
|
|
17
|
-
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.
|
|
17
|
+
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.2e5d4efc654388c85b79e53b1b148268e4083d9252f2a367ea257ccb50d270cd.js" integrity="sha384-XohIVyQyKflz7lf3TTrmIrihUTLtUhJaj/tTBlloTUjOItTmdQGLLFOmXWQwuwFg" crossorigin="anonymous" data-nav-style-url="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.36a36359ce18322185e9ff179f88175bab67d5ad84a14d9c08a54f2ff27267e7.css" data-nav-style-integrity="sha384-c4M8Fg+kYaeOYYtJVr7jJsde24IhSWkWaRyAOHEZU9jozhRck089aw+mnHwxymds" data-wallet-client-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" data-wallet-client-integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" data-wallet-style-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" data-wallet-style-integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" data-wallet-client-id="sdn-module-sdk-pages-v1" data-wallet-callback-uri="https://digitalarsenal.github.io/space-data-module-sdk/wallet-callback.html" data-wallet-registry-sha256="63784143e2ad8e2542d22148ff4a0a4da7a10f4b3f9909ae91a20dc0f60db06b"></script>
|
|
18
18
|
<!-- SDN_CONSUMER_ASSETS_END -->
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
<p>The trailer is appended after the payload, so a consumer reads the last four bytes for the <code>$REC</code> magic, then the preceding little-endian <code>uint32</code> length, then the record. The record types themselves (<code>REC</code>, <code>MBL</code>, <code>PNM</code>, <code>ENC</code>) are Space Data Standards messages; this SDK consumes the generated classes, it does not define them. See the <a href="./module-publication-standard.html">module publication standard</a>.</p>
|
|
103
103
|
<h2 id="protect"><a class="anchor" href="#protect" aria-hidden="true">#</a>Protect</h2>
|
|
104
104
|
<p><code>protect</code> attaches the manifest to the artifact and, when a recipient key is supplied, encrypts the payload for that recipient.</p>
|
|
105
|
+
<p>Encryption is post-quantum hybrid only, scheme <code>x25519-mlkem768-hkdf-aes-256-gcm-rec</code>: X25519 + ML-KEM-768 (FIPS 203) combined as X-Wing, byte-for-byte what Go 1.26 <code>crypto/hpke.MLKEM768X25519()</code> computes, then HKDF-SHA256 and AES-256-GCM. The recipient public key is 1216 bytes (32-byte X25519 key followed by the 1184-byte ML-KEM-768 key); its private half is a 96-byte seed. The <code>ENC</code> record (SDS <code>$ENC</code> 1.0.3) carries <code>KEY_EXCHANGE</code> <code>X25519_MLKEM768</code>, the 32-byte X25519 ephemeral key in <code>EPHEMERAL_PUBLIC_KEY</code>, the 1088-byte ML-KEM ciphertext in <code>KEM_CIPHERTEXT</code> and the 16-byte GCM tag in <code>AUTH_TAG</code>; the encoded record without its tag is the GCM associated data. A classical X25519-only recipient key, <code>ENC</code> record or <code>x25519-hkdf-aes-256-gcm-rec</code> envelope is refused with <code>classical_delivery_refused</code>.</p>
|
|
105
106
|
<div class="codeblock"><div class="codeblock-head">sh</div><pre><code>space-data-module protect \
|
|
106
107
|
--manifest ./manifest.json \
|
|
107
108
|
--wasm ./dist/module.wasm \
|
|
@@ -110,7 +111,7 @@
|
|
|
110
111
|
space-data-module protect \
|
|
111
112
|
--manifest ./manifest.json \
|
|
112
113
|
--wasm ./dist/module.wasm \
|
|
113
|
-
--recipient-public-key <hex> \
|
|
114
|
+
--recipient-public-key <1216-byte hybrid public key, hex> \
|
|
114
115
|
--out ./dist/module.wasm.enc</code></pre></div>
|
|
115
116
|
<div class="codeblock"><div class="codeblock-head">sh</div><pre><code># single-file bundle
|
|
116
117
|
space-data-module protect \
|
|
@@ -118,15 +119,15 @@ space-data-module protect \
|
|
|
118
119
|
--wasm ./dist/module.wasm \
|
|
119
120
|
--single-file-bundle \
|
|
120
121
|
--out ./dist/module.bundle.wasm</code></pre></div>
|
|
121
|
-
<div class="table-wrap"><table><thead><tr><th>Flag</th><th>Required</th><th>Meaning</th></tr></thead><tbody><tr><td><code>--manifest <path></code></td><td>yes</td><td>Module manifest JSON</td></tr><tr><td><code>--wasm <path></code></td><td>yes</td><td>The compiled artifact</td></tr><tr><td><code>--recipient-public-key <hex></code></td><td>no</td><td>Encrypt the payload for this recipient</td></tr><tr><td><code>--mnemonic <words></code></td><td>no</td><td>Key material for the protecting identity</td></tr><tr><td><code>--single-file-bundle</code></td><td>no</td><td>Emit one self-contained bundle artifact</td></tr><tr><td><code>--out <path></code></td><td>no</td><td>Output path; otherwise reported on stdout</td></tr><tr><td><code>--json</code></td><td>no</td><td>Machine-readable result</td></tr></tbody></table></div>
|
|
122
|
+
<div class="table-wrap"><table><thead><tr><th>Flag</th><th>Required</th><th>Meaning</th></tr></thead><tbody><tr><td><code>--manifest <path></code></td><td>yes</td><td>Module manifest JSON</td></tr><tr><td><code>--wasm <path></code></td><td>yes</td><td>The compiled artifact</td></tr><tr><td><code>--recipient-public-key <hex></code></td><td>no</td><td>Encrypt the payload for this recipient: a 1216-byte X25519+ML-KEM-768 public key</td></tr><tr><td><code>--mnemonic <words></code></td><td>no</td><td>Key material for the protecting identity</td></tr><tr><td><code>--single-file-bundle</code></td><td>no</td><td>Emit one self-contained bundle artifact</td></tr><tr><td><code>--out <path></code></td><td>no</td><td>Output path; otherwise reported on stdout</td></tr><tr><td><code>--json</code></td><td>no</td><td>Machine-readable result</td></tr></tbody></table></div>
|
|
122
123
|
<p>Non-JSON output reports <code>artifactId</code>, <code>signingPublicKeyHex</code>, <code>encrypted</code>, <code>wasmBase64Length</code>, and <code>protectedArtifactBytes</code>.</p>
|
|
123
124
|
<h2 id="sign"><a class="anchor" href="#sign" aria-hidden="true">#</a>Sign</h2>
|
|
124
125
|
<div class="codeblock"><div class="codeblock-head">sh</div><pre><code>space-data-module sign \
|
|
125
126
|
--wasm ./dist/module.wasm \
|
|
126
127
|
--key ./keys/module-signing-keypair.json \
|
|
127
128
|
--out ./dist/module.signed.wasm</code></pre></div>
|
|
128
|
-
<div class="table-wrap"><table><thead><tr><th>Flag</th><th>Required</th><th>Meaning</th></tr></thead><tbody><tr><td><code>--wasm <path></code></td><td>yes</td><td>Artifact to sign</td></tr><tr><td><code>--key <path></code></td><td>yes</td><td>Keypair JSON; must contain <code>privateKeySeedHex</code
|
|
129
|
-
<p>The key file must carry <code>privateKeySeedHex</code> or the command refuses
|
|
129
|
+
<div class="table-wrap"><table><thead><tr><th>Flag</th><th>Required</th><th>Meaning</th></tr></thead><tbody><tr><td><code>--wasm <path></code></td><td>yes</td><td>Artifact to sign</td></tr><tr><td><code>--key <path></code></td><td>yes</td><td>Keypair JSON; must contain <code>privateKeySeedHex</code>, the 32-byte ML-DSA-65 seed</td></tr><tr><td><code>--scope <form></code></td><td>no</td><td><code>publication</code>, the one form (the <code>SDN-MODULE-PUBLICATION-V1</code> statement over the bytes before the trailer) and the default. <code>module</code> and <code>bundle</code> are refused: those forms were removed in 0.11.0</td></tr><tr><td><code>--out <path></code></td><td>no</td><td>Output path; otherwise the input is signed in place</td></tr></tbody></table></div>
|
|
130
|
+
<p>Module signatures are pure ML-DSA-65 (FIPS 204, empty context, deterministic): a 1952-byte public key and a 3309-byte signature, entry <code>algorithm</code> <code>ml-dsa-65</code>. A manifest signature names its algorithm in <code>PLG.SIGNATURE_ALGORITHM</code> (<code>ml-dsa-65</code>). The key file must carry <code>privateKeySeedHex</code> or the command refuses; a key file whose <code>algorithm</code> is <code>ed25519</code> is refused with <code>classical_signature_refused</code>. Output reports <code>signed</code>, <code>keyId</code>, <code>publicKeyHex</code>, <code>signatureScope</code>, <code>statementDomain</code>, <code>signedHashHex</code> and <code>canonicalModuleHashHex</code>. Any previous signature entry is replaced, whatever its form. The form is defined in <a href="./module-publication-standard.html">the publication standard</a>.</p>
|
|
130
131
|
<h2 id="verify"><a class="anchor" href="#verify" aria-hidden="true">#</a>Verify</h2>
|
|
131
132
|
<div class="codeblock"><div class="codeblock-head">sh</div><pre><code>space-data-module verify \
|
|
132
133
|
--wasm ./dist/module.wasm \
|
|
@@ -135,9 +136,10 @@ space-data-module protect \
|
|
|
135
136
|
<div class="codeblock"><div class="codeblock-head">sh</div><pre><code>space-data-module verify \
|
|
136
137
|
--wasm ./dist/module.wasm \
|
|
137
138
|
--key ./keys/module-signing-keypair.json</code></pre></div>
|
|
138
|
-
<p><code>--trusted</code> takes a comma-separated list of trusted public keys; <code>--key</code> reads <code>publicKeyHex</code> out of a keypair JSON instead. Signature requirement defaults to true. Output reports <code>verified</code>, <code>signed</code>, <code>signer</code> (<code>test</code> or <code>other</code>, from the verified key), <code>publicKeyHex</code>, <code>unsignedKeyId</code> (a label the file carries about itself) and <code>statementDomain</code>, the form verified; check <code>statementDomain</code>, not a scope. The process exits non-zero unless verification succeeded. An artifact signed in the bare module digest form is refused with <code>legacy_module_signature</code>, one in the whole-bundle form with <code>legacy_bundle_signature</code>; sign it again
|
|
139
|
+
<p><code>--trusted</code> takes a comma-separated list of trusted post-quantum public keys (ML-DSA-65: 3904 hex characters; ML-DSA-87 and SLH-DSA-SHA2-256s are verified too when an entry declares them); <code>--key</code> reads <code>publicKeyHex</code> out of a keypair JSON instead. Signature requirement defaults to true. Output reports <code>verified</code>, <code>signed</code>, <code>signer</code> (<code>test</code> or <code>other</code>, from the verified key), <code>publicKeyHex</code>, <code>unsignedKeyId</code> (a label the file carries about itself) and <code>statementDomain</code>, the form verified; check <code>statementDomain</code>, not a scope. The process exits non-zero unless verification succeeded. An artifact signed in the bare module digest form is refused with <code>legacy_module_signature</code>, one in the whole-bundle form with <code>legacy_bundle_signature</code>; sign it again. An Ed25519 module signature, or a 64-character (Ed25519) trusted key, is refused with <code>classical_signature_refused</code>.</p>
|
|
140
|
+
<p>Update manifests (<code>SDN-UPDATE-MANIFEST-V1</code>) and update signals (<code>SDN-UPDATE-SIGNAL-V1</code>) are signed with the same ML-DSA-65 key through <code>signUpdateStatement</code> and checked with <code>verifyUpdateStatement</code>; the statement domain keeps each kind out of the others' message space.</p>
|
|
139
141
|
<h2 id="key-custody"><a class="anchor" href="#key-custody" aria-hidden="true">#</a>Key custody</h2>
|
|
140
|
-
<p>Signing keys are HD-derived from a node's root identity by default; supplying an external key is an explicit opt-in. Never commit a private key or a mnemonic to a repository, and never paste one into a build log. The dev
|
|
142
|
+
<p>Signing keys are HD-derived from a node's root identity by default; supplying an external key is an explicit opt-in. Never commit a private key or a mnemonic to a repository, and never paste one into a build log. The dev keypair that appears in the SDK's own test fixtures, <code>test/support/dev-module-signing-keypair.json</code> (keyId <code>sdm-dev-test-pqc-2026</code>, ML-DSA-65, seed <code>sha256("sdm-dev-test-pqc-2026")</code>), is public test material: <code>verify</code> reports it as <code>signer: test</code>, and it is not valid for a published module.</p>
|
|
141
143
|
<h2 id="honest-gaps"><a class="anchor" href="#honest-gaps" aria-hidden="true">#</a>Honest gaps</h2>
|
|
142
144
|
<ul>
|
|
143
145
|
<li>There is no <code>license</code> CLI verb. A <code>src/licensing/</code> module exists in the tree and is used programmatically, but it is not wired to a <code>space-data-module</code> subcommand.</li>
|
package/docs/protect-and-sign.md
CHANGED
|
@@ -24,6 +24,19 @@ not define them. See the
|
|
|
24
24
|
`protect` attaches the manifest to the artifact and, when a recipient key is
|
|
25
25
|
supplied, encrypts the payload for that recipient.
|
|
26
26
|
|
|
27
|
+
Encryption is post-quantum hybrid only, scheme
|
|
28
|
+
`x25519-mlkem768-hkdf-aes-256-gcm-rec`: X25519 + ML-KEM-768 (FIPS 203)
|
|
29
|
+
combined as X-Wing, byte-for-byte what Go 1.26
|
|
30
|
+
`crypto/hpke.MLKEM768X25519()` computes, then HKDF-SHA256 and AES-256-GCM. The
|
|
31
|
+
recipient public key is 1216 bytes (32-byte X25519 key followed by the
|
|
32
|
+
1184-byte ML-KEM-768 key); its private half is a 96-byte seed. The `ENC`
|
|
33
|
+
record (SDS `$ENC` 1.0.3) carries `KEY_EXCHANGE` `X25519_MLKEM768`, the 32-byte
|
|
34
|
+
X25519 ephemeral key in `EPHEMERAL_PUBLIC_KEY`, the 1088-byte ML-KEM ciphertext
|
|
35
|
+
in `KEM_CIPHERTEXT` and the 16-byte GCM tag in `AUTH_TAG`; the encoded record
|
|
36
|
+
without its tag is the GCM associated data. A classical X25519-only recipient
|
|
37
|
+
key, `ENC` record or `x25519-hkdf-aes-256-gcm-rec` envelope is refused with
|
|
38
|
+
`classical_delivery_refused`.
|
|
39
|
+
|
|
27
40
|
```sh
|
|
28
41
|
space-data-module protect \
|
|
29
42
|
--manifest ./manifest.json \
|
|
@@ -36,7 +49,7 @@ space-data-module protect \
|
|
|
36
49
|
space-data-module protect \
|
|
37
50
|
--manifest ./manifest.json \
|
|
38
51
|
--wasm ./dist/module.wasm \
|
|
39
|
-
--recipient-public-key <hex> \
|
|
52
|
+
--recipient-public-key <1216-byte hybrid public key, hex> \
|
|
40
53
|
--out ./dist/module.wasm.enc
|
|
41
54
|
```
|
|
42
55
|
|
|
@@ -53,7 +66,7 @@ space-data-module protect \
|
|
|
53
66
|
| --- | --- | --- |
|
|
54
67
|
| `--manifest <path>` | yes | Module manifest JSON |
|
|
55
68
|
| `--wasm <path>` | yes | The compiled artifact |
|
|
56
|
-
| `--recipient-public-key <hex>` | no | Encrypt the payload for this recipient |
|
|
69
|
+
| `--recipient-public-key <hex>` | no | Encrypt the payload for this recipient: a 1216-byte X25519+ML-KEM-768 public key |
|
|
57
70
|
| `--mnemonic <words>` | no | Key material for the protecting identity |
|
|
58
71
|
| `--single-file-bundle` | no | Emit one self-contained bundle artifact |
|
|
59
72
|
| `--out <path>` | no | Output path; otherwise reported on stdout |
|
|
@@ -74,11 +87,16 @@ space-data-module sign \
|
|
|
74
87
|
| Flag | Required | Meaning |
|
|
75
88
|
| --- | --- | --- |
|
|
76
89
|
| `--wasm <path>` | yes | Artifact to sign |
|
|
77
|
-
| `--key <path>` | yes | Keypair JSON; must contain `privateKeySeedHex
|
|
90
|
+
| `--key <path>` | yes | Keypair JSON; must contain `privateKeySeedHex`, the 32-byte ML-DSA-65 seed |
|
|
78
91
|
| `--scope <form>` | no | `publication`, the one form (the `SDN-MODULE-PUBLICATION-V1` statement over the bytes before the trailer) and the default. `module` and `bundle` are refused: those forms were removed in 0.11.0 |
|
|
79
92
|
| `--out <path>` | no | Output path; otherwise the input is signed in place |
|
|
80
93
|
|
|
81
|
-
|
|
94
|
+
Module signatures are pure ML-DSA-65 (FIPS 204, empty context, deterministic):
|
|
95
|
+
a 1952-byte public key and a 3309-byte signature, entry `algorithm`
|
|
96
|
+
`ml-dsa-65`. A manifest signature names its algorithm in
|
|
97
|
+
`PLG.SIGNATURE_ALGORITHM` (`ml-dsa-65`). The key file must carry
|
|
98
|
+
`privateKeySeedHex` or the command refuses; a key file whose `algorithm` is
|
|
99
|
+
`ed25519` is refused with `classical_signature_refused`. Output
|
|
82
100
|
reports `signed`, `keyId`, `publicKeyHex`, `signatureScope`, `statementDomain`,
|
|
83
101
|
`signedHashHex` and `canonicalModuleHashHex`. Any previous
|
|
84
102
|
signature entry is replaced, whatever its form. The form is defined in
|
|
@@ -99,7 +117,9 @@ space-data-module verify \
|
|
|
99
117
|
--key ./keys/module-signing-keypair.json
|
|
100
118
|
```
|
|
101
119
|
|
|
102
|
-
`--trusted` takes a comma-separated list of trusted public keys
|
|
120
|
+
`--trusted` takes a comma-separated list of trusted post-quantum public keys
|
|
121
|
+
(ML-DSA-65: 3904 hex characters; ML-DSA-87 and SLH-DSA-SHA2-256s are verified
|
|
122
|
+
too when an entry declares them); `--key` reads
|
|
103
123
|
`publicKeyHex` out of a keypair JSON instead. Signature requirement defaults to
|
|
104
124
|
true. Output reports `verified`, `signed`, `signer` (`test` or `other`, from the
|
|
105
125
|
verified key), `publicKeyHex`, `unsignedKeyId` (a label the file carries about
|
|
@@ -107,15 +127,25 @@ itself) and `statementDomain`, the form verified; check `statementDomain`, not a
|
|
|
107
127
|
scope. The process exits non-zero unless
|
|
108
128
|
verification succeeded. An artifact signed in the bare module digest form is
|
|
109
129
|
refused with `legacy_module_signature`, one in the whole-bundle form with
|
|
110
|
-
`legacy_bundle_signature`; sign it again.
|
|
130
|
+
`legacy_bundle_signature`; sign it again. An Ed25519 module signature, or a
|
|
131
|
+
64-character (Ed25519) trusted key, is refused with
|
|
132
|
+
`classical_signature_refused`.
|
|
133
|
+
|
|
134
|
+
Update manifests (`SDN-UPDATE-MANIFEST-V1`) and update signals
|
|
135
|
+
(`SDN-UPDATE-SIGNAL-V1`) are signed with the same ML-DSA-65 key through
|
|
136
|
+
`signUpdateStatement` and checked with `verifyUpdateStatement`; the statement
|
|
137
|
+
domain keeps each kind out of the others' message space.
|
|
111
138
|
|
|
112
139
|
## Key custody
|
|
113
140
|
|
|
114
141
|
Signing keys are HD-derived from a node's root identity by default; supplying an
|
|
115
142
|
external key is an explicit opt-in. Never commit a private key or a mnemonic to
|
|
116
|
-
a repository, and never paste one into a build log. The dev
|
|
117
|
-
in the SDK's own test fixtures
|
|
118
|
-
|
|
143
|
+
a repository, and never paste one into a build log. The dev keypair that
|
|
144
|
+
appears in the SDK's own test fixtures,
|
|
145
|
+
`test/support/dev-module-signing-keypair.json` (keyId `sdm-dev-test-pqc-2026`,
|
|
146
|
+
ML-DSA-65, seed `sha256("sdm-dev-test-pqc-2026")`), is public test material:
|
|
147
|
+
`verify` reports it as `signer: test`, and it is not valid for a published
|
|
148
|
+
module.
|
|
119
149
|
|
|
120
150
|
## Honest gaps
|
|
121
151
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<!-- SDN_CONSUMER_ASSETS_START -->
|
|
15
15
|
<link rel="stylesheet" href="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" crossorigin="anonymous">
|
|
16
16
|
<script defer src="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" crossorigin="anonymous" data-sdn-wallet-public-client="v1"></script>
|
|
17
|
-
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.
|
|
17
|
+
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.2e5d4efc654388c85b79e53b1b148268e4083d9252f2a367ea257ccb50d270cd.js" integrity="sha384-XohIVyQyKflz7lf3TTrmIrihUTLtUhJaj/tTBlloTUjOItTmdQGLLFOmXWQwuwFg" crossorigin="anonymous" data-nav-style-url="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.36a36359ce18322185e9ff179f88175bab67d5ad84a14d9c08a54f2ff27267e7.css" data-nav-style-integrity="sha384-c4M8Fg+kYaeOYYtJVr7jJsde24IhSWkWaRyAOHEZU9jozhRck089aw+mnHwxymds" data-wallet-client-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" data-wallet-client-integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" data-wallet-style-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" data-wallet-style-integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" data-wallet-client-id="sdn-module-sdk-pages-v1" data-wallet-callback-uri="https://digitalarsenal.github.io/space-data-module-sdk/wallet-callback.html" data-wallet-registry-sha256="63784143e2ad8e2542d22148ff4a0a4da7a10f4b3f9909ae91a20dc0f60db06b"></script>
|
|
18
18
|
<!-- SDN_CONSUMER_ASSETS_END -->
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
|
@@ -325,7 +325,13 @@ coarser than the march stride is what makes it wrong. Level selection lives in
|
|
|
325
325
|
one shared helper (`providerLevelForSpacing`) used by every adapter, so the
|
|
326
326
|
browser and a host tile store resolve the same spacing to the same level — two
|
|
327
327
|
adapters doing their own arithmetic would sample different ground and lose byte
|
|
328
|
-
parity for a reason no diff would show.
|
|
328
|
+
parity for a reason no diff would show. The rule is the same on every body, at
|
|
329
|
+
the body's own size: an adapter states `circumference`, the equatorial
|
|
330
|
+
circumference in metres of the body its tiles are on
|
|
331
|
+
(`providerCircumference(equatorialRadiusMeters)`), and a spacing request on an
|
|
332
|
+
adapter that states none is refused with `INVALID_REQUEST`. Level L has
|
|
333
|
+
2^(L+1) tiles around the equator, each of `tileWidth - 1` sample intervals, so
|
|
334
|
+
20 m is level 14 on Earth and level 13 on the Moon.
|
|
329
335
|
|
|
330
336
|
The level actually used comes back in `descriptor.level`, always. A consumer
|
|
331
337
|
that cannot see which level answered cannot tell a solve that resolved the
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<!-- SDN_CONSUMER_ASSETS_START -->
|
|
15
15
|
<link rel="stylesheet" href="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" crossorigin="anonymous">
|
|
16
16
|
<script defer src="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" crossorigin="anonymous" data-sdn-wallet-public-client="v1"></script>
|
|
17
|
-
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.
|
|
17
|
+
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.2e5d4efc654388c85b79e53b1b148268e4083d9252f2a367ea257ccb50d270cd.js" integrity="sha384-XohIVyQyKflz7lf3TTrmIrihUTLtUhJaj/tTBlloTUjOItTmdQGLLFOmXWQwuwFg" crossorigin="anonymous" data-nav-style-url="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.36a36359ce18322185e9ff179f88175bab67d5ad84a14d9c08a54f2ff27267e7.css" data-nav-style-integrity="sha384-c4M8Fg+kYaeOYYtJVr7jJsde24IhSWkWaRyAOHEZU9jozhRck089aw+mnHwxymds" data-wallet-client-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" data-wallet-client-integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" data-wallet-style-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" data-wallet-style-integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" data-wallet-client-id="sdn-module-sdk-pages-v1" data-wallet-callback-uri="https://digitalarsenal.github.io/space-data-module-sdk/wallet-callback.html" data-wallet-registry-sha256="63784143e2ad8e2542d22148ff4a0a4da7a10f4b3f9909ae91a20dc0f60db06b"></script>
|
|
18
18
|
<!-- SDN_CONSUMER_ASSETS_END -->
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<!-- SDN_CONSUMER_ASSETS_START -->
|
|
15
15
|
<link rel="stylesheet" href="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" crossorigin="anonymous">
|
|
16
16
|
<script defer src="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" crossorigin="anonymous" data-sdn-wallet-public-client="v1"></script>
|
|
17
|
-
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.
|
|
17
|
+
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.2e5d4efc654388c85b79e53b1b148268e4083d9252f2a367ea257ccb50d270cd.js" integrity="sha384-XohIVyQyKflz7lf3TTrmIrihUTLtUhJaj/tTBlloTUjOItTmdQGLLFOmXWQwuwFg" crossorigin="anonymous" data-nav-style-url="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.36a36359ce18322185e9ff179f88175bab67d5ad84a14d9c08a54f2ff27267e7.css" data-nav-style-integrity="sha384-c4M8Fg+kYaeOYYtJVr7jJsde24IhSWkWaRyAOHEZU9jozhRck089aw+mnHwxymds" data-wallet-client-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" data-wallet-client-integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" data-wallet-style-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" data-wallet-style-integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" data-wallet-client-id="sdn-module-sdk-pages-v1" data-wallet-callback-uri="https://digitalarsenal.github.io/space-data-module-sdk/wallet-callback.html" data-wallet-registry-sha256="63784143e2ad8e2542d22148ff4a0a4da7a10f4b3f9909ae91a20dc0f60db06b"></script>
|
|
18
18
|
<!-- SDN_CONSUMER_ASSETS_END -->
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<!-- SDN_CONSUMER_ASSETS_START -->
|
|
15
15
|
<link rel="stylesheet" href="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" crossorigin="anonymous">
|
|
16
16
|
<script defer src="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" crossorigin="anonymous" data-sdn-wallet-public-client="v1"></script>
|
|
17
|
-
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.
|
|
17
|
+
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.2e5d4efc654388c85b79e53b1b148268e4083d9252f2a367ea257ccb50d270cd.js" integrity="sha384-XohIVyQyKflz7lf3TTrmIrihUTLtUhJaj/tTBlloTUjOItTmdQGLLFOmXWQwuwFg" crossorigin="anonymous" data-nav-style-url="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.36a36359ce18322185e9ff179f88175bab67d5ad84a14d9c08a54f2ff27267e7.css" data-nav-style-integrity="sha384-c4M8Fg+kYaeOYYtJVr7jJsde24IhSWkWaRyAOHEZU9jozhRck089aw+mnHwxymds" data-wallet-client-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" data-wallet-client-integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" data-wallet-style-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" data-wallet-style-integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" data-wallet-client-id="sdn-module-sdk-pages-v1" data-wallet-callback-uri="https://digitalarsenal.github.io/space-data-module-sdk/wallet-callback.html" data-wallet-registry-sha256="63784143e2ad8e2542d22148ff4a0a4da7a10f4b3f9909ae91a20dc0f60db06b"></script>
|
|
18
18
|
<!-- SDN_CONSUMER_ASSETS_END -->
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<!-- SDN_CONSUMER_ASSETS_START -->
|
|
15
15
|
<link rel="stylesheet" href="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" crossorigin="anonymous">
|
|
16
16
|
<script defer src="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" crossorigin="anonymous" data-sdn-wallet-public-client="v1"></script>
|
|
17
|
-
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.
|
|
17
|
+
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.2e5d4efc654388c85b79e53b1b148268e4083d9252f2a367ea257ccb50d270cd.js" integrity="sha384-XohIVyQyKflz7lf3TTrmIrihUTLtUhJaj/tTBlloTUjOItTmdQGLLFOmXWQwuwFg" crossorigin="anonymous" data-nav-style-url="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.36a36359ce18322185e9ff179f88175bab67d5ad84a14d9c08a54f2ff27267e7.css" data-nav-style-integrity="sha384-c4M8Fg+kYaeOYYtJVr7jJsde24IhSWkWaRyAOHEZU9jozhRck089aw+mnHwxymds" data-wallet-client-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" data-wallet-client-integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" data-wallet-style-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" data-wallet-style-integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" data-wallet-client-id="sdn-module-sdk-pages-v1" data-wallet-callback-uri="https://digitalarsenal.github.io/space-data-module-sdk/wallet-callback.html" data-wallet-registry-sha256="63784143e2ad8e2542d22148ff4a0a4da7a10f4b3f9909ae91a20dc0f60db06b"></script>
|
|
18
18
|
<!-- SDN_CONSUMER_ASSETS_END -->
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<!-- SDN_CONSUMER_ASSETS_START -->
|
|
15
15
|
<link rel="stylesheet" href="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" crossorigin="anonymous">
|
|
16
16
|
<script defer src="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" crossorigin="anonymous" data-sdn-wallet-public-client="v1"></script>
|
|
17
|
-
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.
|
|
17
|
+
<script defer src="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.2e5d4efc654388c85b79e53b1b148268e4083d9252f2a367ea257ccb50d270cd.js" integrity="sha384-XohIVyQyKflz7lf3TTrmIrihUTLtUhJaj/tTBlloTUjOItTmdQGLLFOmXWQwuwFg" crossorigin="anonymous" data-nav-style-url="/space-data-module-sdk/assets/vendor/sdn-stack-nav/1.3.0/sdn-stack-nav.36a36359ce18322185e9ff179f88175bab67d5ad84a14d9c08a54f2ff27267e7.css" data-nav-style-integrity="sha384-c4M8Fg+kYaeOYYtJVr7jJsde24IhSWkWaRyAOHEZU9jozhRck089aw+mnHwxymds" data-wallet-client-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.9ab041131df957fcb6ef7e3d87bf9d19fe313bc5d7f1e53337752faf0ba354da.js" data-wallet-client-integrity="sha384-FNcHq8FI7eBz2YUhfO3jNfmdObbCXmfg4ugmBEHzXW/KBpbUdJXqIzpn30OWJBuB" data-wallet-style-url="/space-data-module-sdk/assets/vendor/hd-wallet-ui/2.2.1/sdn-wallet-public-client.c3f68d1cfd88478f10d836a5e829d1dfc6a10157972cf0f7d4d319d0636f2cc4.css" data-wallet-style-integrity="sha384-fICuhN4I9xqOK1F5vGGzl26opuO+xQIvTZXMSV76lWTBiQ6AfzztMGLLDw8yRT8i" data-wallet-client-id="sdn-module-sdk-pages-v1" data-wallet-callback-uri="https://digitalarsenal.github.io/space-data-module-sdk/wallet-callback.html" data-wallet-registry-sha256="63784143e2ad8e2542d22148ff4a0a4da7a10f4b3f9909ae91a20dc0f60db06b"></script>
|
|
18
18
|
<!-- SDN_CONSUMER_ASSETS_END -->
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "space-data-module-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Module SDK for building, validating, signing, and deploying WebAssembly modules on the Space Data Network.",
|
|
6
6
|
"type": "module",
|
|
@@ -130,11 +130,11 @@
|
|
|
130
130
|
},
|
|
131
131
|
"dependencies": {
|
|
132
132
|
"flatbuffers": "^25.9.23",
|
|
133
|
-
"flatc-wasm": "^26.
|
|
133
|
+
"flatc-wasm": "^26.2.0",
|
|
134
134
|
"flatsql": "3.12.1",
|
|
135
|
-
"hd-wallet-wasm": "2.
|
|
135
|
+
"hd-wallet-wasm": "2.3.0",
|
|
136
136
|
"sdn-emception": "1.0.0",
|
|
137
|
-
"spacedatastandards.org": "1.
|
|
137
|
+
"spacedatastandards.org": "1.318.0"
|
|
138
138
|
},
|
|
139
139
|
"devDependencies": {
|
|
140
140
|
"esbuild": "^0.28.0",
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// The SDK's public TEST module signer (keyId sdm-dev-test-pqc-2026): pure ML-DSA-65
|
|
2
|
+
// (FIPS 204), seed sha256(utf8("sdm-dev-test-pqc-2026")), committed with its public
|
|
3
|
+
// key in test/support/dev-module-signing-keypair.json. The seed is public, so
|
|
4
|
+
// a signature by this key shows only that the file was not damaged by
|
|
5
|
+
// accident: anyone can sign anything with it.
|
|
6
|
+
export const SDK_TEST_SIGNER_KEY_ID = "sdm-dev-test-pqc-2026";
|
|
7
|
+
export const SDK_TEST_SIGNER_ALGORITHM = "ml-dsa-65";
|
|
8
|
+
// 1952-byte ML-DSA-65 verification key, lowercase hex (3904 characters).
|
|
9
|
+
export const SDK_TEST_SIGNER_PUBLIC_KEY_HEX = [
|
|
10
|
+
"b311c301a6ced83560075b0a2dfaff0f5c608786360925ca383bba67512b15ebf973b03aa947a4d4031a740aa6aaadcba0ee3de3a202f195bae575a069f72911",
|
|
11
|
+
"0cae91779d0d02bc5270fc9d8bcf4bacfb25b0e8df56bf4a826d0af77561138f049af1184e3ddc5ad07f7f706969b9d4ced86480ff6c58120337aa4d30cf81b9",
|
|
12
|
+
"b58dc8595ef11d823ac3184d9091ff4f186491069a8da4336ad004308d9c8995fb53548b89fa051ddd98b4a3d71e2785afe282ef3d32c8a04cd40277ae6db3ab",
|
|
13
|
+
"31194b230642752d4b6f2bf29aa01311614d38676d7b43b2213e048f7cb2e5adcfa65998e4e3d92eb82a87ea8930c7f3d5fd85f0237f0f79c43efabad7471dc4",
|
|
14
|
+
"314cdb5646ecbab4810b7df5e486a1bf61a0800be619286bb5c108c9ad918bc2bf501d5c9335e5ed269f6d17c62bef59b2e0ab5d0ab4827c4a2ffce4b772996c",
|
|
15
|
+
"e76caffd5311a23d8daf92e58dff651295bbd0c27d6c017d93323a954b23237a454434ae64304e9b1c89da0113e1889b01c3cc80c046d80add66908f57c96c3b",
|
|
16
|
+
"026031ac221c7344d470862a881c6bd159d80f0ddfff722fe31ddb0cbba29b378884885e35f8d9c938121eba0c20b6904ba887674fc4b0a45f9379a714643174",
|
|
17
|
+
"cb02dda8e1bbebb2b64bf28ad9193e2078af942502ed856862c47d7de380d0999327c454314ca53381ae2fe49c8fbed013aa948543bcc112b123322d2c1da810",
|
|
18
|
+
"5c3d8bc8d652bdf3677ab8773fa5853611a511ab53b6bb891be2191693a18ac098c88dd6aa678378c5bfdcb6a0cd50eb939d336891120871a4b1619064c0eac2",
|
|
19
|
+
"dcd3b39d2600425d87491035d31224440b3bb49503a063df560a8d207fd4bf0776090ae9417cb5a2ddd8a97b49f455298e59d640f847e5dfdc33505070ea4ff6",
|
|
20
|
+
"9aa53ed0932d65f4a718de6b1d7ea92f8511c52671b60168f4efa7a4685f4c4b7b46a9a044e9b4939805d2fa5ab27014677239583c3e6ef42c114995426d4e12",
|
|
21
|
+
"ad549791ae78e73023066623e1f143410240c1861229acc94b6b8b1dfa05fd22d0daa5e21dfa09d5b2041ec5367e48ce2616acd4678087a8a1cf61e23c3fade5",
|
|
22
|
+
"53bceca0f478a14f63d7a26ee221a2fc67f013da35365571bf7b338f8eac11cef36fbf699a4c2d7543bd4dba3f405a12ae1995641a4f80c3839df69939f11364",
|
|
23
|
+
"292629a74b271ef3af61e99a7a1ab08ac0f9beae4317fa09e8f0b03c5409482ff3b31d45f28662d828de67c382c0440f9c899ce5bc39616bda7fd4090f47a940",
|
|
24
|
+
"1c1eb090493961c0c6cc7cdf77c989ad132918c1d7361f8fa0113602086cd47f233a2854ba2a3a6b4cb459b3d7c58d986e12d1069b6abe2bd3e48547d10f1d74",
|
|
25
|
+
"e7d54e50fe8c7800c9c0dbf07a073717b55660ae4d17f106219b1b9ec4b29fad66145f4666bcf34cf834be482189ddc087237a5456e2829ff95eefc871788685",
|
|
26
|
+
"c8ad01e15b9959139af789337430438d034eecb8594e62fd6416a7ad9e27ccb74959cb3c8a916f14a6992ddf3369e7e9ee8a357db3a92728499015558556abe0",
|
|
27
|
+
"4cf1113c7f3bb7bf8bc59dd9756c5643354acd13e648407a3ccf113eda10ff731dbebb9eca818cc0507479522ada92e9c08d61c873416d85d1fd7f02a5c54d85",
|
|
28
|
+
"c4ee6d7a8a6e9f43ee0efaf00bf98a2820abba716a43e0147cff2476691f7f85a9298cefb13aa86e19c0dbea05299b154d7909daec085af917fe33f7c23a0b3c",
|
|
29
|
+
"64d50efe72fc0702916bd6335ba8c168ee1cd30d20d61e0629c17c24bed8f5cbdb04b28a00272ee342421b54ab7b11a3f102b647bba226a0687620bc7c716f71",
|
|
30
|
+
"322bfc6f4f31ebe5bd6c8646f60c0d6507ecdda532676fd7cd621e3b7e4c5d2806fc5070652c1cd703387763c7de76464708459d8ea6198f39fadfb1b1fa2974",
|
|
31
|
+
"48afee12d599e5bc7f969609fc4932819680a870281aa74d66a77cbe4135e772e1e187af4ac7c0dd0569c3a6d6d7d0b9233fd1cb3114cbeb5084c8b0480a2460",
|
|
32
|
+
"1abd34bc2e69eb3ca2e9ef25287c32246595b294c388de80dce0e51f576c7df264a62196c6216779216261bef6ff6889a3754be1d8da4ef8862f72824056332d",
|
|
33
|
+
"8e30acca3547bd0c1e98274209af6d004ae964c6d7161b9d0bf7722679b7c6490df83c567a6d64c4a3bbd8658e2049761f7a7a508617cd2155ecdab345842265",
|
|
34
|
+
"fdca55857a0cc47ff32070a4c36fee0c8a8b41a2d9774e92aa246e59e74161758d7e69df79b02818e0645ca8081652ee790d62109c7497b565aa2c23d46078aa",
|
|
35
|
+
"4e260f850a100fddaa5388d2a1b6ae8489eea25e0d89239e347366c1c581336cc459951bda99abb477c1951bb3f8fe58563d24e362ea40ad7271c94e60d2211d",
|
|
36
|
+
"2073fe471839194da70992d5a90326f49fc37500c4aeb6d9900f1056cbefb74e9033c82d32d05ce09026179badd06db173973c331c5de103cae313ceeeee3d51",
|
|
37
|
+
"69439103e88918ec07d2e6ed60935ef9118b3477b74642588123248a0fef041b5be8af13c640f0013207edb66f3e91e70564d4988bfaa42f6a1c1148c9c1228f",
|
|
38
|
+
"933e589cf43fa555c6a6446c436adbc4a89ad6b0137d6922ae8b73ecf9be4595f6ea1fc0b69e942184aa9943518eb07e73d5a41ef85d4a2cf4ad544fec87091f",
|
|
39
|
+
"bfe1c80d78dbaa88d2de6a52c3102ceeffa0e01e5cbd01065ec1ee19750482d44b9dd558649e7e79f6ddd2e53964501d60d78c84aaefd4fe541ea742dcf3cd15",
|
|
40
|
+
"0637ab87cf77de93fbfc49582a92aec9bf5d564b37547419c6034e5ba8f22b21",
|
|
41
|
+
].join("");
|