Skip to content

Add EdgeContextOptions.apiSigner for native HMAC delegation - #739

Open
paullinator wants to merge 2 commits into
masterfrom
paul/nativeHmacApiSigner
Open

Add EdgeContextOptions.apiSigner for native HMAC delegation#739
paullinator wants to merge 2 commits into
masterfrom
paul/nativeHmacApiSigner

Conversation

@paullinator

@paullinator paullinator commented Aug 29, 2026

Copy link
Copy Markdown
Member

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

Description

Adds EdgeContextOptions.apiSigner so native code can sign Edge API HMAC requests instead of holding apiSecret in the JS bundle. GUI uses this for the native HMAC signer; JS apiKey/apiSecret remain a fallback.

paullinator and others added 2 commits August 31, 2026 16:55
`waitForPlugins` now waits only for plugin loading to settle, instead of
also requiring every plugin named in `EdgeContextOptions.plugins` to have
registered successfully.

A plugin factory that throws is already caught in `watchPlugins`, which
logs the error and omits that one plugin. Requiring the full set on top of
that made a single unusable plugin fatal for the entire app: the account
pixie awaits `waitForPlugins` before any account can load, so the error
became `ACCOUNT_LOAD_FAILED` and every login for every user rejected,
whether or not that user held wallets for the affected chain. An API key
missing from a plugin's `initOptions` was enough to do it.

A plugin that fails to load is now simply absent from `currencyConfig` and
`swapConfig`, which is what those maps already document.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@paullinator
paullinator force-pushed the paul/nativeHmacApiSigner branch from 3d3fcba to 8668e5e Compare August 31, 2026 23:56
@paullinator
paullinator marked this pull request as ready for review September 1, 2026 16:22
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