Skip to content

feat: extend Wallet with on-chain signing (unblocks Track 2)#2

Merged
zo-sol merged 1 commit into
mainfrom
feat/wallet-signtransaction
Jun 9, 2026
Merged

feat: extend Wallet with on-chain signing (unblocks Track 2)#2
zo-sol merged 1 commit into
mainfrom
feat/wallet-signtransaction

Conversation

@zo-sol

@zo-sol zo-sol commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Wallet only had signMessage (session encryption). On-chain work needs Solana tx signing, so Wallet now extends iqlabs-sdk WalletSigner (publicKey + signTransaction + signAllTransactions) — same shape Phantom exposes, so any front-end can satisfy it via an adapter.

  • contract.ts: Wallet extends WalletSigner
  • account/keypairWallet.ts: keypairWallet(kp) builds a full Wallet from a Keypair (real tx signing); testWallet(seed) for tests/CLI
  • scripts + vscode: use testWallet()

Track 2 can now start against testWallet on devnet without a real wallet. Real Phantom UI stays a Track 1 task.

Tested: pnpm test:run PASS, vscode build OK.

The Wallet interface only had signMessage (session encryption). On-chain work
(skill NFT mint, notes) needs Solana tx signing, so Wallet now extends iqlabs-sdk's
WalletSigner (publicKey + signTransaction + signAllTransactions) — the same shape
Phantom exposes, so any front-end (Phantom/Ledger/local key/mobile) can satisfy it.

- contract.ts: Wallet extends WalletSigner
- account/keypairWallet.ts: keypairWallet(kp) builds a full Wallet from a Keypair
  (real tx signing); testWallet(seed) for tests/CLI/non-interactive signers
- scripts + vscode extension: use testWallet() instead of inline fake wallets

Track 2 (on-chain) can now start against testWallet on devnet without a real wallet.
Real Phantom UI stays a Track 1 task. Tested: pnpm test:run PASS, vscode build OK.
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