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
24 changes: 15 additions & 9 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`, built against the published
`malt-core v0.0.10` release at commit
`aaa78737c35f82fe91bb3f749cfddbcb7953ed2b`.
The package asset binding is `0.0.4`, built against the published
`malt-core v0.0.11-rc.1` release at commit
`704ee38cdafaa628b713b2965b6d407ab0e4205b`.
[`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 @@ -107,6 +107,10 @@ indices as eight unsigned big-endian bytes, and `encodeKeyLabel(Uint8Array)`
serializes Direct 32-byte keys. `deriveCoordinate({profile, label})` executes
Core derivation in the verifier Worker and returns a key or a bigint index.
JavaScript performs no label hashing or application path normalization.
Prefix layout 4 authenticates exact original label bytes and targets; distinct
labels at the same full coordinate are errors. Layout 1 is rejected without a
compatibility reader. Rebuild old Prefix state and its dependent parent Roots;
Positional layout 3 and Root V=0 are unchanged.

`prepareAuthentication(backend, stateJSON)` builds a complete candidate.
`updateAuthentication(backend, candidateJSON, stateJSON)` verifies a complete
Expand All @@ -120,18 +124,20 @@ Handles are opaque identities bound to this router, backend and Worker.
`importAuthentication` transfers a candidate's complete ArrayBuffer when
possible; pass a copy if the caller needs those bytes afterwards.

`applyAuthentication` takes a handle and a `malt.authentication-delta/0`
`applyAuthentication` takes a handle and a `malt.authentication-delta/2`
change set. It returns a new independent handle and leaves its base usable.
`exportAuthentication` explicitly exports a complete candidate. Retained
updates do not resend or export the complete base.

```ts
import { encodeIndexLabel } from '@dewebprotocol/malt'

const encode = (value: unknown) => new TextEncoder().encode(JSON.stringify(value))
const handleBytes = (handle: string) => new TextEncoder().encode(handle)
const base = JSON.parse(await writer.createAuthentication('kzg', encode(state)))
const next = JSON.parse(await writer.applyAuthentication('kzg', handleBytes(base.handle), encode({
profile: 'malt.authentication-delta/0',
changes: [{ input: { kind: 'index', number: '0' }, before: oldCID, after: newCID }]
profile: 'malt.authentication-delta/2',
changes: [{ label: encodeIndexLabel(0n), before: oldCID, after: newCID }]
})))
const candidate = JSON.parse(await writer.exportAuthentication('kzg', handleBytes(next.handle)))
await writer.discardAuthentication('kzg', handleBytes(base.handle))
Expand All @@ -146,12 +152,12 @@ cancels pending operations; a subsequent request creates a new generation.
### Materialization batches and receipts

`validateAuthenticationBatch(backend, batchJSON)` verifies all candidates and
returns Core's digest of the exact `malt.authentication-batch/0` batch.
returns Core's digest of the exact `malt.authentication-batch/2` batch.
Candidates appear before parents and lineage successors. A bootstrap batch
includes its newly constructed base.

`validateAuthenticationReceipt(backend, batchJSON, receiptJSON)` checks the
`malt.authentication-receipt/0` transaction ID, base, final Root, digest and
`malt.authentication-receipt/2` transaction ID, base, final Root, digest and
durable boundary. It returns the final Root without modifying retained state.
Receipts acknowledge persistence; they neither prove a portable state
transition nor publish a head or grant client trust. Applications own durable
Expand All @@ -164,7 +170,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` release. Its current host and batch APIs are bound to the
Core `v0.0.11-rc.1` 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 Down
14 changes: 7 additions & 7 deletions assets/verifier/PROVENANCE.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"schema": "malt.ts-verifier.provenance/v1",
"source_repository": "https://github.com/DeWebProtocol/malt-ts.git",
"build_inputs_sha256": "610e2e0b50304b981e485d3e5f92db4b4552783a90671d1a26716d78d6d47396",
"build_inputs_sha256": "2cc10cc94abe9bcb435b418b298c1866c5b904f85f3e22bb0e70b7f6e6fb62e0",
"core": {
"module_path": "github.com/dewebprotocol/malt-core",
"module_version": "v0.0.10",
"module_version": "v0.0.11-rc.1",
"source_repository": "https://github.com/DeWebProtocol/malt-core.git",
"source_commit": "aaa78737c35f82fe91bb3f749cfddbcb7953ed2b",
"module_sum": "h1:HgzuUot+AAKiLz20KdeUlnVDCVFHxfjQc7unsQOqm7Q=",
"go_mod_sum": "h1:o6L8K9vJp5hyrVo3fUtSsj0rvNpcboOcOb3nQwnR/gs="
"source_commit": "704ee38cdafaa628b713b2965b6d407ab0e4205b",
"module_sum": "h1:V1PC7myStsHDeAjy6DkNwkOGyWlJF4vXYFQSwgAbb4A=",
"go_mod_sum": "h1:Ewf3s5XYFlgsX2PhcOKY2BLqv9jcYXYEFaYhDHjO/Y0="
},
"target": "js/wasm",
"exports": [
"maltVerifyAuthentication",
"maltDeriveCoordinate"
],
"go_version": "go1.26.0",
"go_toolchain": "go version go1.26.0 linux/amd64",
"go_version": "go1.26.8",
"go_toolchain": "go version go1.26.8 linux/amd64",
"build_flags": [
"-p=6",
"-mod=readonly",
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 @@
adfb131464ba9c9f19292569c1e5ea3c34a29f5c7f5eef5bf288f994d917c037 malt-verifier.wasm
29a747bfe8cec408be9b5f6ba4fd31b5412136d96adecd0466b03859b3be9562 malt-verifier.wasm
0c949f4996f9a89698e4b5c586de32249c3b69b7baadb64d220073cc04acba14 wasm_exec.js
d5bc936fbbcf740fc41d6936be8b9ee9dc64e7a6d8ccf1c90d6726cd1b70ba32 PROVENANCE.json
6d901a5e837c4dd1e893985af43d998121a1c76443b21bdf9594b87145c2e663 PROVENANCE.json
Binary file modified assets/verifier/malt-verifier.wasm
Binary file not shown.
14 changes: 7 additions & 7 deletions assets/writer/PROVENANCE.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"schema": "malt.ts-writer.provenance/v1",
"source_repository": "https://github.com/DeWebProtocol/malt-ts.git",
"build_inputs_sha256": "610e2e0b50304b981e485d3e5f92db4b4552783a90671d1a26716d78d6d47396",
"build_inputs_sha256": "2cc10cc94abe9bcb435b418b298c1866c5b904f85f3e22bb0e70b7f6e6fb62e0",
"core": {
"module_path": "github.com/dewebprotocol/malt-core",
"module_version": "v0.0.10",
"module_version": "v0.0.11-rc.1",
"source_repository": "https://github.com/DeWebProtocol/malt-core.git",
"source_commit": "aaa78737c35f82fe91bb3f749cfddbcb7953ed2b",
"module_sum": "h1:HgzuUot+AAKiLz20KdeUlnVDCVFHxfjQc7unsQOqm7Q=",
"go_mod_sum": "h1:o6L8K9vJp5hyrVo3fUtSsj0rvNpcboOcOb3nQwnR/gs="
"source_commit": "704ee38cdafaa628b713b2965b6d407ab0e4205b",
"module_sum": "h1:V1PC7myStsHDeAjy6DkNwkOGyWlJF4vXYFQSwgAbb4A=",
"go_mod_sum": "h1:Ewf3s5XYFlgsX2PhcOKY2BLqv9jcYXYEFaYhDHjO/Y0="
},
"target": "js/wasm",
"exports": [
Expand All @@ -27,8 +27,8 @@
"id": "malt.ipa-parameters/v1",
"sha256": "3799df0a77d1843b13a3a08744165180a12e1cd2dca529bee64ad691ac63adaf"
},
"go_version": "go1.26.0",
"go_toolchain": "go version go1.26.0 linux/amd64",
"go_version": "go1.26.8",
"go_toolchain": "go version go1.26.8 linux/amd64",
"build_flags": [
"-p=6",
"-mod=readonly",
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 @@
d8509c24c079323c784d7f5632073abfed194763201e5477fd92868d4fdf5083 malt-writer-kzg.wasm
cf21fbf61aedc64dfd671a0660c3f5afa442411a0d08731c9dfdf1703eb8228f malt-writer-ipa-direct.wasm
e02dcde26245b1f8df0825f38b0c426f6ea355179f66e3191456fe6007d58f7c malt-writer-ipa-compact.wasm
4461eeeb9699321fe8de944772c588ad101db8feb1645ad84d231a804e004fe6 malt-writer-ipa-fast.wasm
f69d829ca7b29da9f661c72165fa059c54a9584ad7eaa31ee78d00aa256f8ac6 malt-writer-kzg.wasm
608b90874060d1d292c9d83224f77b6ce7b24426437e1cf538d6ae85c1da7652 malt-writer-ipa-direct.wasm
1311c0cec11f101073b8f136e70618f996af20876c138c6a7bbd252996983c90 malt-writer-ipa-compact.wasm
1dadddaf52506abfdfb475a56889191565958275757b845371c0af4cd112d01e malt-writer-ipa-fast.wasm
6311876a80f3c9333f20e6a8ae8b55b7235b1f7411d6ae2224bc90b55fe779a2 malt-writer-worker.mjs
968657d9a8818feb23b6463aca609478c81423a93a8b0dc453705ad009214db0 malt-writer-workers.mjs
0c949f4996f9a89698e4b5c586de32249c3b69b7baadb64d220073cc04acba14 wasm_exec.js
82500f2f8585b10defd691727f6a925bd3535893acb4ad643315e44d86b1bf0b PROVENANCE.json
63d0e40470760bc20f394cee9dd642f232dcf3ab3cb087e7c2012608d006b372 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.
10 changes: 5 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module github.com/dewebprotocol/malt-ts

go 1.26.0
go 1.26.8

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

require (
github.com/bits-and-blooms/bitset v1.24.6 // indirect
github.com/consensys/gnark-crypto v0.21.0 // indirect
github.com/bits-and-blooms/bitset v1.25.0 // indirect
github.com/consensys/gnark-crypto v0.22.0 // indirect
github.com/crate-crypto/go-kzg-4844 v1.1.0 // indirect
github.com/ipfs/go-cid v0.6.2 // indirect
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
Expand All @@ -18,7 +18,7 @@ require (
github.com/multiformats/go-multihash v0.2.3 // indirect
github.com/multiformats/go-varint v0.1.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
golang.org/x/crypto v0.54.0 // indirect
golang.org/x/crypto v0.57.0 // indirect
golang.org/x/sync v0.23.0 // indirect
golang.org/x/sys v0.48.0 // indirect
lukechampine.com/blake3 v1.4.1 // indirect
Expand Down
28 changes: 12 additions & 16 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
github.com/bits-and-blooms/bitset v1.24.6 h1:qcrftZUVBIwfs+m+nhoCBAPT+ZPZZjti8SbHbDQQkZ4=
github.com/bits-and-blooms/bitset v1.24.6/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8=
github.com/consensys/gnark-crypto v0.21.0 h1:FDHibVIk4T5LkOKAkiN38g8gEvOxNcM10mLHOqvFTD0=
github.com/consensys/gnark-crypto v0.21.0/go.mod h1:hdTjDNjdkYJ1oVuc8emh9XEhfM1SbyZhJigFqItiOLk=
github.com/bits-and-blooms/bitset v1.25.0 h1:0Ro0qF4abCkM6SqWPVj29sFhAbMPAZpaDD7xhJ10beM=
github.com/bits-and-blooms/bitset v1.25.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8=
github.com/consensys/gnark-crypto v0.22.0 h1:RYH7FX1/zkmNrSiABo70HAqew41SRUsoluKundObo3o=
github.com/consensys/gnark-crypto v0.22.0/go.mod h1:HL8XflRG4cvau1PEG3CWBTD2kkzUzdlqZF6BBgy57F8=
github.com/crate-crypto/go-kzg-4844 v1.1.0 h1:EN/u9k2TF6OWSHrCCDBBU6GLNMq88OspHHlMnHfoyU4=
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 h1:HgzuUot+AAKiLz20KdeUlnVDCVFHxfjQc7unsQOqm7Q=
github.com/dewebprotocol/malt-core v0.0.10/go.mod h1:o6L8K9vJp5hyrVo3fUtSsj0rvNpcboOcOb3nQwnR/gs=
github.com/dewebprotocol/malt-core v0.0.11-rc.1 h1:V1PC7myStsHDeAjy6DkNwkOGyWlJF4vXYFQSwgAbb4A=
github.com/dewebprotocol/malt-core v0.0.11-rc.1/go.mod h1:Ewf3s5XYFlgsX2PhcOKY2BLqv9jcYXYEFaYhDHjO/Y0=
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 All @@ -28,21 +26,19 @@ github.com/multiformats/go-multihash v0.2.3 h1:7Lyc8XfX/IY2jWb/gI7JP+o7JEq9hOa7B
github.com/multiformats/go-multihash v0.2.3/go.mod h1:dXgKXCXjBzdscBLk9JkjINiEsCKRVch90MdaGiKsvSM=
github.com/multiformats/go-varint v0.1.0 h1:i2wqFp4sdl3IcIxfAonHQV9qU5OsZ4Ts9IOoETFs5dI=
github.com/multiformats/go-varint v0.1.0/go.mod h1:5KVAVXegtfmNQQm/lCY+ATvDzvJJhSkUlGQV9wgObdI=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI=
github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
golang.org/x/crypto v0.54.0 h1:YLIA59K4fiNzHzjnZt2tUJQjQtUWfWbeHBqKtk3eScw=
golang.org/x/crypto v0.54.0/go.mod h1:KWL8ny2AZdGR2cWmzeHrp2azQPGogOv+HeQaVEXC2dk=
github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE=
github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg=
go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw=
go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg=
golang.org/x/crypto v0.57.0 h1:3ZVCjf8Ggz7zneR/EHRVx68Ctf+2pmIMP2UFhh9cC6M=
golang.org/x/crypto v0.57.0/go.mod h1:Fdz0i5U6CoizGwLda9DttjSk6qlZo25zYNtR+ycvuZA=
golang.org/x/sync v0.23.0 h1:KameEIfc1IkluZyXWLn39Wd4tURc6GbCiISGiZm2bQk=
golang.org/x/sync v0.23.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0=
golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo=
golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og=
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
lukechampine.com/blake3 v1.4.1 h1:I3Smz7gso8w4/TunLKec6K2fn+kyKtDxr/xcQEN84Wg=
lukechampine.com/blake3 v1.4.1/go.mod h1:QFosUxmjB8mnrWFSNwKmvxHpfY72bmD2tQ0kBMM3kwo=
8 changes: 4 additions & 4 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",
"module_version": "v0.0.11-rc.1",
"source_repository": "https://github.com/DeWebProtocol/malt-core.git",
"source_commit": "aaa78737c35f82fe91bb3f749cfddbcb7953ed2b",
"module_sum": "h1:HgzuUot+AAKiLz20KdeUlnVDCVFHxfjQc7unsQOqm7Q=",
"go_mod_sum": "h1:o6L8K9vJp5hyrVo3fUtSsj0rvNpcboOcOb3nQwnR/gs="
"source_commit": "704ee38cdafaa628b713b2965b6d407ab0e4205b",
"module_sum": "h1:V1PC7myStsHDeAjy6DkNwkOGyWlJF4vXYFQSwgAbb4A=",
"go_mod_sum": "h1:Ewf3s5XYFlgsX2PhcOKY2BLqv9jcYXYEFaYhDHjO/Y0="
}
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",
"version": "0.0.4",
"description": "Stable TypeScript and browser WASM SDK for MALT",
"type": "module",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-authentication-batch-wasm.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ assert.equal(globalThis.maltWriterLoadedBackend, backend)
assert.equal(globalThis.maltWriterLoadedProfile, profile)
for (const name of ['maltComputeClientRootV1', 'maltWriterBootstrapSessionV1', 'maltWriterLoadSessionV1', 'maltWriterPrepareSessionV1', 'maltWriterValidateReceiptV1']) assert.equal(globalThis[name], undefined)
const json = value => new TextEncoder().encode(JSON.stringify(value))
const state = { descriptor: { layout: 1, derivation_profile: 4, vc_profile: backend === 'ipa' ? 2 : 1 }, entries: [] }
const state = { descriptor: { layout: 4, derivation_profile: 4, vc_profile: backend === 'ipa' ? 2 : 1 }, entries: [] }
const base = JSON.parse(await globalThis.maltPrepareAuthentication(json(state)))
state.entries.push({ label: 'ZmlsZQ==', target: { '/': 'bafkqaaa' } })
const next = JSON.parse(await globalThis.maltUpdateAuthentication(json(base), json(state)))
Expand Down
8 changes: 6 additions & 2 deletions scripts/run-authentication-wasm.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,20 @@ if (kind === 'verifier') {
console.log(`V0 WASM verifier ${backend} passed: ${corpus.vectors.length} vectors`)
} else {
const id = backend === 'ipa' ? 2 : 1
const state = { descriptor: { layout: 1, derivation_profile: 4, vc_profile: id }, entries: [
const state = { descriptor: { layout: 4, derivation_profile: 4, vc_profile: id }, entries: [
{ label: 'YS9i', target: { '/': 'bafkqaaa' } },
{ label: 'QHBheWxvYWQ=', target: { '/': 'bafkqaaa' } }
{ label: 'QHBheWxvYWQ=', target: { '/': 'bafkqaaa' } },
{ label: '', target: { '/': 'bafkqaaa' } }
] }
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/4')
assert(candidate.nodes.length > 0)
await assert.rejects(() => globalThis[name]('{}'))
state.descriptor.layout = 1
await assert.rejects(() => globalThis[name](new TextEncoder().encode(JSON.stringify(state))))
state.descriptor.layout = 4
state.descriptor.derivation_profile = 255
await assert.rejects(() => globalThis[name](new TextEncoder().encode(JSON.stringify(state))))
console.log(`V0 WASM writer ${backend}: exact native Root and rejection checks passed`)
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-writer-worker-smoke.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ try {

const bytes = value => new TextEncoder().encode(value);
const json = value => bytes(JSON.stringify(value));
const state = { descriptor: { layout: 1, derivation_profile: 4, vc_profile: backend === 'ipa' ? 2 : 1 }, entries: [] };
const state = { descriptor: { layout: 4, derivation_profile: 4, vc_profile: backend === 'ipa' ? 2 : 1 }, entries: [] };
const base = JSON.parse(await writer.createAuthentication(backend, json(state)));
const next = JSON.parse(await writer.applyAuthentication(backend, bytes(base.handle), json({
profile: 'malt.authentication-delta/2', changes: [{ label: 'ZmlsZQ==', after: 'bafkqaaa' }]
Expand Down
10 changes: 5 additions & 5 deletions src/release.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const maltTSVersion = '0.0.3'
export const maltTSVersion = '0.0.4'

export const maltCoreRelease = Object.freeze({
version: 'v0.0.10',
commit: 'aaa78737c35f82fe91bb3f749cfddbcb7953ed2b',
moduleSum: 'h1:HgzuUot+AAKiLz20KdeUlnVDCVFHxfjQc7unsQOqm7Q=',
goModSum: 'h1:o6L8K9vJp5hyrVo3fUtSsj0rvNpcboOcOb3nQwnR/gs='
version: 'v0.0.11-rc.1',
commit: '704ee38cdafaa628b713b2965b6d407ab0e4205b',
moduleSum: 'h1:V1PC7myStsHDeAjy6DkNwkOGyWlJF4vXYFQSwgAbb4A=',
goModSum: 'h1:Ewf3s5XYFlgsX2PhcOKY2BLqv9jcYXYEFaYhDHjO/Y0='
})
Loading
Loading