Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ writer semantics independently in TypeScript.

## Version and Core release

The package asset binding is `0.0.3-rc.4`, built against the published
`malt-core v0.0.10-rc.4` release at commit
`0d7b166d58d1c2e21ead96de9c66968caf630374`.
The package asset binding is `0.0.3`, built against the published
`malt-core v0.0.10` release at commit
`aaa78737c35f82fe91bb3f749cfddbcb7953ed2b`.
[`malt-core.lock.json`](./malt-core.lock.json) binds that tag, commit, Go module
checksums. The `malt.ts-core-lock/v2` lock binds Core source only; Core WASM
assets are not required. This repository exclusively owns WASM entrypoints,
Expand Down Expand Up @@ -101,7 +101,7 @@ from committing source.

`verifyAuthenticationLocally({request, result, ...options})` verifies the
caller-selected Root, label steps and binding/range operation through Core.
`malt.authentication/3` also authenticates early path absence. Labels are
`malt.authentication/5` also authenticates early path absence. Labels are
base64-encoded opaque bytes. `encodeIndexLabel(bigint)` serializes Direct
indices as eight unsigned big-endian bytes, and `encodeKeyLabel(Uint8Array)`
serializes Direct 32-byte keys. `deriveCoordinate({profile, label})` executes
Expand Down Expand Up @@ -164,7 +164,7 @@ session snapshot compatibility APIs. Worker readiness requires the complete
current ABI. There are no forwarding aliases or optional old-runtime exports.

The `malt-core.lock.json` and packaged binary assets identify the published
Core `v0.0.10-rc.4` release. Its current host and batch APIs are bound to the
Core `v0.0.10` release. Its current host and batch APIs are bound to the
exact release tag, source commit, and module checksums.
Source integration checks remain separate from this published release binding.

Expand All @@ -184,7 +184,7 @@ current contracts to the exact release selected by the lock.
### WASM ownership and archives

Core provides the Go SDK, cryptographic parameter metadata, and portable
`conformance/authentication-v1.json` corpus. All JavaScript/WASM runners live
`conformance/authentication-v3.json` corpus. All JavaScript/WASM runners live
in this repository; tests never execute a Core-owned browser build or runner.
`make test-wasm` tests the pinned published Core release. For a proposed Core
source change, use the explicit non-release `scripts/test-core-source.sh`.
Expand All @@ -198,3 +198,9 @@ See [WASM release assets](docs/wasm-release-assets.md).
`maltCoreRelease` exposes the Core version, commit, `moduleSum`, and `goModSum`.
The former Core WASM manifest/asset-set properties are removed. Consumers use
this package's asset checksums and build provenance for the WASM it distributes.

The package uses root-only Positional metadata: `count` plus an optional
opaque `payload_cid`. Range bounds are element indices, and non-root vectors
have no reserved metadata slot. Application JSON decoding stays in consumers.
The packaged verifier and writer assets are built from the exact audited Core
release above and pass its `authentication-v3.json` conformance corpus.
8 changes: 4 additions & 4 deletions assets/verifier/PROVENANCE.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"schema": "malt.ts-verifier.provenance/v1",
"source_repository": "https://github.com/DeWebProtocol/malt-ts.git",
"build_inputs_sha256": "9073c0f81dbe9baf8b0ee06e58b9c666a6f724fae3d07ae22b65d5735cd4c1b2",
"build_inputs_sha256": "610e2e0b50304b981e485d3e5f92db4b4552783a90671d1a26716d78d6d47396",
"core": {
"module_path": "github.com/dewebprotocol/malt-core",
"module_version": "v0.0.10-rc.4",
"module_version": "v0.0.10",
"source_repository": "https://github.com/DeWebProtocol/malt-core.git",
"source_commit": "0d7b166d58d1c2e21ead96de9c66968caf630374",
"module_sum": "h1:BpA7vH0LwKTmipTlAUu97CniBXTxBT9f5AQWV8UFbmY=",
"source_commit": "aaa78737c35f82fe91bb3f749cfddbcb7953ed2b",
"module_sum": "h1:HgzuUot+AAKiLz20KdeUlnVDCVFHxfjQc7unsQOqm7Q=",
"go_mod_sum": "h1:o6L8K9vJp5hyrVo3fUtSsj0rvNpcboOcOb3nQwnR/gs="
},
"target": "js/wasm",
Expand Down
4 changes: 2 additions & 2 deletions assets/verifier/SHA256SUMS
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
62d7bc0d24a4d3aa8fd9ce799e35545667a17885736da5c13a2f43a80e448fe6 malt-verifier.wasm
adfb131464ba9c9f19292569c1e5ea3c34a29f5c7f5eef5bf288f994d917c037 malt-verifier.wasm
0c949f4996f9a89698e4b5c586de32249c3b69b7baadb64d220073cc04acba14 wasm_exec.js
af3da7057b4535514f38da2f4e2404b5be3141f034530b7d1326694a65fcc3d8 PROVENANCE.json
d5bc936fbbcf740fc41d6936be8b9ee9dc64e7a6d8ccf1c90d6726cd1b70ba32 PROVENANCE.json
Binary file modified assets/verifier/malt-verifier.wasm
Binary file not shown.
8 changes: 4 additions & 4 deletions assets/writer/PROVENANCE.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"schema": "malt.ts-writer.provenance/v1",
"source_repository": "https://github.com/DeWebProtocol/malt-ts.git",
"build_inputs_sha256": "9073c0f81dbe9baf8b0ee06e58b9c666a6f724fae3d07ae22b65d5735cd4c1b2",
"build_inputs_sha256": "610e2e0b50304b981e485d3e5f92db4b4552783a90671d1a26716d78d6d47396",
"core": {
"module_path": "github.com/dewebprotocol/malt-core",
"module_version": "v0.0.10-rc.4",
"module_version": "v0.0.10",
"source_repository": "https://github.com/DeWebProtocol/malt-core.git",
"source_commit": "0d7b166d58d1c2e21ead96de9c66968caf630374",
"module_sum": "h1:BpA7vH0LwKTmipTlAUu97CniBXTxBT9f5AQWV8UFbmY=",
"source_commit": "aaa78737c35f82fe91bb3f749cfddbcb7953ed2b",
"module_sum": "h1:HgzuUot+AAKiLz20KdeUlnVDCVFHxfjQc7unsQOqm7Q=",
"go_mod_sum": "h1:o6L8K9vJp5hyrVo3fUtSsj0rvNpcboOcOb3nQwnR/gs="
},
"target": "js/wasm",
Expand Down
10 changes: 5 additions & 5 deletions assets/writer/SHA256SUMS
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
3c225d43c827ab97dbcb4cf9212681a85f5b616500fe57ec9b10bbd1620d9369 malt-writer-kzg.wasm
8f038c50d481c20aef0f9f443eefc49f812b870fe39cf2ff721dcacad6e76ce4 malt-writer-ipa-direct.wasm
494a397d319fa4f0782606257fdc62acd335a1d2c93374dec9df8c19332a1fc0 malt-writer-ipa-compact.wasm
b8d6f2e3f475a97cd26f4c5b98d1763a8f2483718e3dc569bedcaa70caf6cf8e malt-writer-ipa-fast.wasm
d8509c24c079323c784d7f5632073abfed194763201e5477fd92868d4fdf5083 malt-writer-kzg.wasm
cf21fbf61aedc64dfd671a0660c3f5afa442411a0d08731c9dfdf1703eb8228f malt-writer-ipa-direct.wasm
e02dcde26245b1f8df0825f38b0c426f6ea355179f66e3191456fe6007d58f7c malt-writer-ipa-compact.wasm
4461eeeb9699321fe8de944772c588ad101db8feb1645ad84d231a804e004fe6 malt-writer-ipa-fast.wasm
6311876a80f3c9333f20e6a8ae8b55b7235b1f7411d6ae2224bc90b55fe779a2 malt-writer-worker.mjs
968657d9a8818feb23b6463aca609478c81423a93a8b0dc453705ad009214db0 malt-writer-workers.mjs
0c949f4996f9a89698e4b5c586de32249c3b69b7baadb64d220073cc04acba14 wasm_exec.js
30c5326992667cd32e53a7fa45a4b0403582195f3bbda20e96e3bcb6310182f4 PROVENANCE.json
82500f2f8585b10defd691727f6a925bd3535893acb4ad643315e44d86b1bf0b PROVENANCE.json
Binary file modified assets/writer/malt-writer-ipa-compact.wasm
Binary file not shown.
Binary file modified assets/writer/malt-writer-ipa-direct.wasm
Binary file not shown.
Binary file modified assets/writer/malt-writer-ipa-fast.wasm
Binary file not shown.
Binary file modified assets/writer/malt-writer-kzg.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/dewebprotocol/malt-ts

go 1.26.0

require github.com/dewebprotocol/malt-core v0.0.10-rc.4
require github.com/dewebprotocol/malt-core v0.0.10

require (
github.com/bits-and-blooms/bitset v1.24.6 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ github.com/crate-crypto/go-kzg-4844 v1.1.0 h1:EN/u9k2TF6OWSHrCCDBBU6GLNMq88OspHH
github.com/crate-crypto/go-kzg-4844 v1.1.0/go.mod h1:JolLjpSff1tCCJKaJx4psrlEdlXuJEC996PL3tTAFks=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dewebprotocol/malt-core v0.0.10-rc.4 h1:BpA7vH0LwKTmipTlAUu97CniBXTxBT9f5AQWV8UFbmY=
github.com/dewebprotocol/malt-core v0.0.10-rc.4/go.mod h1:o6L8K9vJp5hyrVo3fUtSsj0rvNpcboOcOb3nQwnR/gs=
github.com/dewebprotocol/malt-core v0.0.10 h1:HgzuUot+AAKiLz20KdeUlnVDCVFHxfjQc7unsQOqm7Q=
github.com/dewebprotocol/malt-core v0.0.10/go.mod h1:o6L8K9vJp5hyrVo3fUtSsj0rvNpcboOcOb3nQwnR/gs=
github.com/ipfs/go-cid v0.6.2 h1:VuGwJd+KJTaMJ4S4d5EEf9SXc17YUblS5axCbocn9YE=
github.com/ipfs/go-cid v0.6.2/go.mod h1:Xhwg8NzHeK9xPCEZkCw4idzPiuNMpX3fARuI5Iwj1Lo=
github.com/klauspost/cpuid/v2 v2.3.0 h1:S4CRMLnYUhGeDFDqkGriYKdfoFlDnMtqTiI/sFzhA9Y=
Expand Down
6 changes: 3 additions & 3 deletions malt-core.lock.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"schema": "malt.ts-core-lock/v2",
"module_path": "github.com/dewebprotocol/malt-core",
"module_version": "v0.0.10-rc.4",
"module_version": "v0.0.10",
"source_repository": "https://github.com/DeWebProtocol/malt-core.git",
"source_commit": "0d7b166d58d1c2e21ead96de9c66968caf630374",
"module_sum": "h1:BpA7vH0LwKTmipTlAUu97CniBXTxBT9f5AQWV8UFbmY=",
"source_commit": "aaa78737c35f82fe91bb3f749cfddbcb7953ed2b",
"module_sum": "h1:HgzuUot+AAKiLz20KdeUlnVDCVFHxfjQc7unsQOqm7Q=",
"go_mod_sum": "h1:o6L8K9vJp5hyrVo3fUtSsj0rvNpcboOcOb3nQwnR/gs="
}
4 changes: 2 additions & 2 deletions node-tests/malt-writer-workers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ test("request errors keep the selected Worker alive", async () => {
const bootstrap = writer.createAuthentication("kzg", new Uint8Array([1]));
const bootstrapRequest = await worker.nextRequest();
assert.equal(bootstrapRequest.method, "createAuthentication");
worker.respond(bootstrapRequest, { result: '{"profile":"malt.authentication/2"}' });
assert.equal(await bootstrap, '{"profile":"malt.authentication/2"}');
worker.respond(bootstrapRequest, { result: '{"profile":"malt.authentication/4"}' });
assert.equal(await bootstrap, '{"profile":"malt.authentication/4"}');

const invalidLoad = writer.importAuthentication("kzg", new Uint8Array([1]));
const invalidRequest = await worker.nextRequest();
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dewebprotocol/malt",
"version": "0.0.3-rc.4",
"version": "0.0.3",
"description": "Stable TypeScript and browser WASM SDK for MALT",
"type": "module",
"license": "Apache-2.0",
Expand Down
4 changes: 2 additions & 2 deletions scripts/build-wasm-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ cp "${temporary}/assets/verifier/"* "${verifier_staging}/"
cp "${temporary}/assets/writer/"* "${writer_staging}/"
pin="$("${build_source}/scripts/resolve-core.sh")"
IFS=$'\t' read -r _ _ core_module_dir _ _ <<<"${pin}"
authentication_corpus_sha256="$(sha256sum "${core_module_dir}/conformance/authentication-v2.json" | awk '{print $1}')"
authentication_corpus_sha256="$(sha256sum "${core_module_dir}/conformance/authentication-v3.json" | awk '{print $1}')"

chmod 0644 "${verifier_staging}/"* "${writer_staging}/"*
(
Expand Down Expand Up @@ -136,7 +136,7 @@ MANIFEST_PATH="${temporary}/WASM-RELEASE.json" node -e '
target: "js/wasm",
archive_format: "ustar+gzip",
conformance_corpora: {
authentication: {schema: "malt.conformance.authentication/2", sha256: process.env.AUTHENTICATION_CORPUS_SHA256},
authentication: {schema: "malt.conformance.authentication/3", sha256: process.env.AUTHENTICATION_CORPUS_SHA256},
},
codegen_environment: {CGO_ENABLED: "0", GOEXPERIMENT: "none", GOWASM: "", GOFIPS140: "off"},
components: {verifier: component("VERIFIER"), writer: component("WRITER")}
Expand Down
4 changes: 2 additions & 2 deletions scripts/check-wasm-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fi
expected_go_version="go${go_directive}"
pin="$("${repo_root}/scripts/resolve-core.sh")"
IFS=$'\t' read -r _ _ core_module_dir _ _ <<<"${pin}"
expected_authentication_corpus_sha256="$(sha256sum "${core_module_dir}/conformance/authentication-v2.json" | awk '{print $1}')"
expected_authentication_corpus_sha256="$(sha256sum "${core_module_dir}/conformance/authentication-v3.json" | awk '{print $1}')"
expected_commit="$(git -C "${repo_root}" rev-parse HEAD)"
expected_epoch="$(git -C "${repo_root}" show -s --format=%ct HEAD)"
expected_build_inputs="$("${repo_root}/scripts/build-wasm.sh" --print-source-digest)"
Expand Down Expand Up @@ -84,7 +84,7 @@ AUTHENTICATION_CORPUS_SHA256="${expected_authentication_corpus_sha256}" node -e
const version = /^v[0-9]+\.[0-9]+\.[0-9]+(?:[.-][0-9A-Za-z.-]+)?$/
const expectedCodegen = {CGO_ENABLED: "0", GOEXPERIMENT: "none", GOWASM: "", GOFIPS140: "off"}
const expectedCorpora = {
authentication: {schema: "malt.conformance.authentication/2", sha256: process.env.AUTHENTICATION_CORPUS_SHA256},
authentication: {schema: "malt.conformance.authentication/3", sha256: process.env.AUTHENTICATION_CORPUS_SHA256},
}
const toolchain = /^go version (go[0-9]+\.[0-9]+\.[0-9]+) ([a-z0-9]+)\/([a-z0-9]+)$/.exec(manifest.go_toolchain || "")
if (manifest.schema !== "malt.ts-wasm-release/v1" ||
Expand Down
10 changes: 5 additions & 5 deletions scripts/run-authentication-batch-wasm.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ const next = JSON.parse(await globalThis.maltUpdateAuthentication(json(base), js
// Both complete and retained no-op updates must stay materializable.
const unchanged = JSON.parse(await globalThis.maltUpdateAuthentication(json(next), json(state)))
const retained = JSON.parse(await globalThis.maltImportAuthentication(json(next)))
const noOpHandle = JSON.parse(await globalThis.maltApplyAuthentication(new TextEncoder().encode(retained.handle), json({ profile: 'malt.authentication-delta/1', changes: [] })))
const noOpHandle = JSON.parse(await globalThis.maltApplyAuthentication(new TextEncoder().encode(retained.handle), json({ profile: 'malt.authentication-delta/2', changes: [] })))
const noOp = JSON.parse(await globalThis.maltExportAuthentication(new TextEncoder().encode(noOpHandle.handle)))
for (const candidate of [unchanged, noOp]) {
assert.equal(candidate.root, next.root)
assert.equal(candidate.previous, next.previous)
const noOpBatch = { profile: 'malt.authentication-batch/1', transaction_id: 'no-op', base: next.root, root: next.root, candidates: [candidate] }
const noOpBatch = { profile: 'malt.authentication-batch/2', transaction_id: 'no-op', base: next.root, root: next.root, candidates: [candidate] }
const noOpDigest = await globalThis.maltValidateAuthenticationBatch(json(noOpBatch))
assert.equal(await globalThis.maltValidateAuthenticationReceipt(json(noOpBatch), json({ profile: 'malt.authentication-receipt/1', transaction_id: noOpBatch.transaction_id, base: next.root, root: next.root, digest: noOpDigest, durable_boundary: 'wasm-test/no-op' })), next.root)
assert.equal(await globalThis.maltValidateAuthenticationReceipt(json(noOpBatch), json({ profile: 'malt.authentication-receipt/2', transaction_id: noOpBatch.transaction_id, base: next.root, root: next.root, digest: noOpDigest, durable_boundary: 'wasm-test/no-op' })), next.root)
}
await globalThis.maltCloseAuthentication()
const batch = { profile: 'malt.authentication-batch/1', transaction_id: 'wasm-batch', base: base.root, root: next.root, candidates: [base, next] }
const batch = { profile: 'malt.authentication-batch/2', transaction_id: 'wasm-batch', base: base.root, root: next.root, candidates: [base, next] }
const digest = await globalThis.maltValidateAuthenticationBatch(json(batch))
assert.match(digest, /^[a-f0-9]{64}$/)
const receipt = { profile: 'malt.authentication-receipt/1', transaction_id: batch.transaction_id, base: batch.base, root: batch.root, digest, durable_boundary: 'wasm-test/0' }
const receipt = { profile: 'malt.authentication-receipt/2', transaction_id: batch.transaction_id, base: batch.base, root: batch.root, digest, durable_boundary: 'wasm-test/0' }
assert.equal(await globalThis.maltValidateAuthenticationReceipt(json(batch), json(receipt)), next.root)
for (const field of ['transaction_id', 'base', 'root', 'digest', 'durable_boundary']) {
await assert.rejects(() => globalThis.maltValidateAuthenticationReceipt(json(batch), json({ ...receipt, [field]: '' })))
Expand Down
4 changes: 2 additions & 2 deletions scripts/run-authentication-router-smoke.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ const writer = await createBrowserMaltWriter({
const bytes = value => new TextEncoder().encode(value)
const json = value => bytes(JSON.stringify(value))
const state = {
descriptor: { layout: 2, derivation_profile: 3, vc_profile: 2 },
descriptor: { layout: 3, derivation_profile: 3, vc_profile: 2 },
entries: [{ label: encodeIndexLabel('0'), target: { '/': 'bafkqaaa' } }]
}
try {
const base = JSON.parse(await writer.createAuthentication('ipa', json(state)))
const next = JSON.parse(await writer.applyAuthentication('ipa', bytes(base.handle), json({
profile: 'malt.authentication-delta/1',
profile: 'malt.authentication-delta/2',
changes: [{ label: encodeIndexLabel('0'), before: 'bafkqaaa', after: 'bafkreigh2akiscaildcw4535x7k5vfhq56bqddhziq3p4mwfmlz4vfu2ta' }]
})))
assert.notEqual(next.root, base.root)
Expand Down
4 changes: 2 additions & 2 deletions scripts/run-authentication-wasm.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ while (typeof globalThis[name] !== 'function') {
await new Promise(resolve => setTimeout(resolve, 10))
}
const corpus = JSON.parse(await readFile(corpusPath, 'utf8'))
assert.equal(corpus.schema, 'malt.conformance.authentication/2')
assert.equal(corpus.schema, 'malt.conformance.authentication/3')
if (kind === 'verifier') {
const derive = (profile, bytes) => JSON.parse(globalThis.maltDeriveCoordinate(profile, bytes))
for (const index of [0n, 42n, 9007199254740993n, 18446744073709551615n]) {
Expand Down Expand Up @@ -55,7 +55,7 @@ if (kind === 'verifier') {
const candidate = JSON.parse(await globalThis[name](new TextEncoder().encode(JSON.stringify(state))))
const expected = corpus.vectors.find(v => v.id === `profile-${id}.opaque-label`)
assert.equal(candidate.root, expected.verification.request.root)
assert.equal(candidate.profile, 'malt.authentication/2')
assert.equal(candidate.profile, 'malt.authentication/4')
assert(candidate.nodes.length > 0)
await assert.rejects(() => globalThis[name]('{}'))
state.descriptor.derivation_profile = 255
Expand Down
4 changes: 2 additions & 2 deletions scripts/run-retained-writer-wasm.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const json = value => text(JSON.stringify(value))
const first = 'bafkqaaa'
const second = 'bafkreigh2akiscaildcw4535x7k5vfhq56bqddhziq3p4mwfmlz4vfu2ta'
const state = {
descriptor: { layout: 2, derivation_profile: 3, vc_profile: backend === 'ipa' ? 2 : 1 },
descriptor: { layout: 3, derivation_profile: 3, vc_profile: backend === 'ipa' ? 2 : 1 },
entries: Array.from({ length: 256 }, (_, i) => ({
label: encodeIndexLabel(String(i)), target: { '/': first }
}))
Expand All @@ -39,7 +39,7 @@ const base = JSON.parse(await globalThis.maltCreateAuthentication(json(state)))
assert.equal(typeof base.handle, 'string')
assert.equal(base.nodes, undefined)
const delta = {
profile: 'malt.authentication-delta/1',
profile: 'malt.authentication-delta/2',
changes: [{ label: encodeIndexLabel('255'), before: first, after: second }]
}
const next = JSON.parse(await globalThis.maltApplyAuthentication(text(base.handle), json(delta)))
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-verifier-conformance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ fi
for backend in all kzg ipa; do
node "${repo_root}/scripts/run-authentication-wasm.mjs" verifier \
"${verifier_root}/malt-verifier.wasm" "${verifier_root}/wasm_exec.js" \
"${malt_module_dir}/conformance/authentication-v2.json" "${backend}"
"${malt_module_dir}/conformance/authentication-v3.json" "${backend}"
done
printf 'malt-ts verifier passes the MALT %s conformance corpus.\n' "${malt_version}"
2 changes: 1 addition & 1 deletion scripts/run-writer-conformance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ for profile in kzg direct compact fast; do
wasm="${writer_root}/malt-writer-ipa-${profile}.wasm"
profile_arg="${profile}"
if [[ "${profile}" == kzg ]]; then backend=kzg; wasm="${writer_root}/malt-writer-kzg.wasm"; profile_arg=; fi
node "${repo_root}/scripts/run-authentication-wasm.mjs" writer "${wasm}" "${writer_root}/wasm_exec.js" "${malt_module_dir}/conformance/authentication-v2.json" "${backend}"
node "${repo_root}/scripts/run-authentication-wasm.mjs" writer "${wasm}" "${writer_root}/wasm_exec.js" "${malt_module_dir}/conformance/authentication-v3.json" "${backend}"
node "${repo_root}/scripts/run-retained-writer-wasm.mjs" "${wasm}" "${writer_root}/wasm_exec.js" "${backend}" "${profile_arg}"
node "${repo_root}/scripts/run-authentication-batch-wasm.mjs" "${wasm}" "${writer_root}/wasm_exec.js" "${backend}" "${profile_arg}"
done
Expand Down
Loading
Loading