Skip to content

feat(wallet): hardware wallet via external signer connector#137

Merged
zy0n merged 1 commit into
mainfrom
zy0n/ledger-base
May 29, 2026
Merged

feat(wallet): hardware wallet via external signer connector#137
zy0n merged 1 commit into
mainfrom
zy0n/ledger-base

Conversation

@zy0n

@zy0n zy0n commented May 29, 2026

Copy link
Copy Markdown
Contributor

HardwareWallet now extends RailgunWallet and delegates signing to a pluggable ExternalSignerConnector, with an optional batch-approval step that emits a sub-session string forwarded to each per-transaction sign call. AbstractWallet, RailgunWallet typing on TransactionBatch, and ViewOnlyWallet are intentionally left untouched; the hardware wallet stores its own spendingPublicKey reference to avoid leaning on private base-class state.

RailgunEngine gains createHardwareWalletFromShareableViewingKey and loadExistingHardwareWallet, mirroring the view-only flow and unloading any conflicting wallet type on the same ID before reattaching the connector.

HardwareWallet now extends RailgunWallet and delegates signing to a
pluggable ExternalSignerConnector, with an optional batch-approval step
that emits a sub-session string forwarded to each per-transaction sign
call. AbstractWallet, RailgunWallet typing on TransactionBatch, and
ViewOnlyWallet are intentionally left untouched; the hardware wallet
stores its own spendingPublicKey reference to avoid leaning on private
base-class state.

RailgunEngine gains createHardwareWalletFromShareableViewingKey and
loadExistingHardwareWallet, mirroring the view-only flow and unloading
any conflicting wallet type on the same ID before reattaching the
connector.
@zy0n zy0n requested a review from mesquka May 29, 2026 12:21
@zy0n zy0n merged commit ff18595 into main May 29, 2026
5 of 6 checks passed
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