Skip to content

feat: add address generation methods to UniFFI bridge#45

Merged
xdustinface merged 1 commit intov0.42-devfrom
claude/issue-43-20260313-2342
Mar 14, 2026
Merged

feat: add address generation methods to UniFFI bridge#45
xdustinface merged 1 commit intov0.42-devfrom
claude/issue-43-20260313-2342

Conversation

@xdustinface
Copy link
Owner

Summary

  • Add get_receive_address() method to SpvClient
  • Add get_addresses(account) method for listing wallet addresses
  • Add AddressInfo UniFFI record (address, path, used status)
  • Stub implementations until wallet HD derivation is wired
  • Bridge tests

Closes #43

Test plan

  • get_receive_address returns stub address
  • get_addresses returns empty vec (stub)
  • Bridge tests pass

@github-actions
Copy link

This PR has merge conflicts with the base branch. Please rebase or merge the base branch into your branch to resolve them.

- Add AddressInfo UniFFI record with address, path, used, and index fields
- Add get_receive_address() returning next unused receive address for account 0
- Add get_addresses(account: u32) returning all external addresses for a BIP44 account
- Both methods wire to the wallet's HD-derived address pools in ManagedWalletInfo
- Return empty string / empty vec when no wallet is loaded (stub-safe)
- Add unit tests for AddressInfo record and both stub behaviours

Closes #43

Co-authored-by: Kevin Rombach <xdustinface@users.noreply.github.com>
@xdustinface xdustinface force-pushed the claude/issue-43-20260313-2342 branch from 4ee168d to 166178a Compare March 14, 2026 00:16
@xdustinface xdustinface merged commit 4e45153 into v0.42-dev Mar 14, 2026
49 of 52 checks passed
@xdustinface xdustinface deleted the claude/issue-43-20260313-2342 branch March 14, 2026 00:26
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.

feat: add address generation methods to UniFFI bridge

1 participant