Skip to content

Accept the KEM shared secret as a byte array in the URP module - #49

Merged
dkmstr merged 1 commit into
masterfrom
master-fix/launcher-shared-secret-hex
Nov 18, 2026
Merged

dkmstr merged 1 commit into
masterfrom
master-fix/launcher-shared-secret-hex

Conversation

@dkmstr

@dkmstr dkmstr commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

The broker ticket recovery (crates/connection) passes the decapsulated shared secret to the script as a JSON array of 32 bytes, which is the form the Script type deserializes. The URP JavaScript module expected a 64-character hex string, so every URP session failed while converting the settings ("cannot convert value to a String"). Take the 32 bytes as a JS array and reject any other length. Tests now pass the secret as an array.

The broker ticket recovery (crates/connection) passes the decapsulated shared
secret to the script as a JSON array of 32 bytes, which is the form the Script
type deserializes. The URP JavaScript module expected a 64-character hex string,
so every URP session failed while converting the settings ("cannot convert
value to a String"). Take the 32 bytes as a JS array and reject any other length.
Tests now pass the secret as an array.
@dkmstr
dkmstr merged commit 89f2113 into master Nov 18, 2026
2 checks passed
@aschumann-virtualcable
aschumann-virtualcable deleted the master-fix/launcher-shared-secret-hex branch November 25, 2026 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant