Skip to content

chore: bump keychain to 1.1#17

Merged
AaronCQL merged 4 commits intojup-ag:mainfrom
amilz:chore/bump-keychain
Apr 26, 2026
Merged

chore: bump keychain to 1.1#17
AaronCQL merged 4 commits intojup-ag:mainfrom
amilz:chore/bump-keychain

Conversation

@amilz
Copy link
Copy Markdown
Contributor

@amilz amilz commented Apr 23, 2026

@AaronCQL based on the previous PR we made some tweaks to Keychain to improve package size:

  • Smaller GCP/AWS dependencies (ref)
  • Unified umbrella helpers for enabling many signers (ref)

Bumps @solana/keychain from ^0.6.1 to ^1.1.0 and refactors our keychain integration to use the new createKeychainSigner / resolveAddress / KeychainSignerConfig primitives.

Bundle size impact

v0.6.1 v1.1.0 Delta
Minified JS 3.55 MB 1.29 MB -64%
Unminified JS 6.87 MB 2.53 MB -63%
Modules bundled 807 605 -202

Most of the reduction comes from upstream work in the keychain package ‚ notably replacing @google-cloud/kms (which drags in grpc/protobuf) with direct REST calls via google-auth-library.

Code changes

  • src/lib/KeychainConfig.ts: utilize helpers from @solana/keychain
  • src/commands/KeysCommand.ts: addKeychain now uses resolveAddress() from @solana/keychain instead of creating a full signer to get the address. Validation delegates to the typed KeychainSignerConfig discriminated union.
  • src/lib/Signer.ts: Calls createKeychainSigner() directly instead of our custom dispatch.

Test plan

  • bun run ci passes (fmt, lint, typecheck, 66 tests)
  • bun run build produces a working bundle

amilz added 3 commits April 13, 2026 08:41
Leverage unified `createKeychainSigner` factory function and unified helpers/types (e.g. `BackendName`, `KeychainSignerConfig`, `resolveAddress`)
Keep persisted shape as { backend, address, params } and translate to
KeychainSignerConfig at the boundary via KeychainConfig.toSignerConfig().
Avoids breaking existing keychain-backed keys.
@amilz amilz changed the title chore/bump keychain chore: bump keychain to 1.1 Apr 23, 2026
@AaronCQL AaronCQL self-assigned this Apr 24, 2026
Copy link
Copy Markdown
Contributor

@AaronCQL AaronCQL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@AaronCQL AaronCQL merged commit 3a50103 into jup-ag:main Apr 26, 2026
1 check passed
@amilz amilz deleted the chore/bump-keychain branch April 27, 2026 14:27
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.

2 participants