The worker runs without JSPI: iroh identity from the seed - #169
Merged
Conversation
…-guest polymorph-iroh 8ca991e adds identity-from-seed behind the guest-ed25519-signing feature: the endpoint holds its private key and signs with ed25519-dalek in-guest, so rustls's synchronous Signer::sign no longer blocks on an async webcrypto import and the accept side of a QUIC handshake needs no JSPI. The runtime world imports identity-from-seed in place of identity-from-keys and the ed25519 webcrypto interfaces; the endpoint component is built locally with the feature (the JSR artifact excludes it) by just endpoint at the pinned rev. Every realm is jspi:false and the browser floor is multi-memory alone. The trade is recorded in docs/design.md: identity signatures run in wasm rather than the platform's native crypto, and the seed rests in the endpoint's memory.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
polymorph-iroh's feature-gated
identity-from-seed(8ca991e) signs in-guest, so the worker's JSPI exception goes: every realm isjspi: false, pinned byweb/jspi_test.ts. The endpoint component is built locally with--features guest-ed25519-signing(just endpoint, ~17 s cold, cached in CI by sha); the JSR@polymorph/irohdependency is dropped. The trade (wasm ed25519-dalek instead of the platform's native crypto; the seed in the endpoint's memory) is recorded in design.md "No JSPI". e2e 17/17 ×2 including the QUIC accept path that stalled in M3a. Automerge armed.