Skip to content

feat: add onchain descriptor derivation#90

Merged
ovitrif merged 1 commit into
masterfrom
feat/samrock-descriptor-api
May 21, 2026
Merged

feat: add onchain descriptor derivation#90
ovitrif merged 1 commit into
masterfrom
feat/samrock-descriptor-api

Conversation

@ben-kaufman
Copy link
Copy Markdown
Collaborator

@ben-kaufman ben-kaufman commented May 20, 2026

Summary

  • Add derive_onchain_descriptor to the UniFFI API for deriving the receive/watch-only on-chain descriptor from a software wallet mnemonic.
  • Require callers to provide network, account_type, and account_index; the BIP39 passphrase is optional.
  • Support legacy, wrapped segwit, native segwit, and taproot account types.
  • Include master fingerprint/key-origin information in the descriptor and use xpub account keys while preserving the selected network coin type in the origin path.
  • Package/bindings version is 0.1.60, with regenerated iOS, Android, and Python bindings plus an updated SwiftPM checksum.

Testing

  • cargo fmt --check
  • cargo test derive_onchain_descriptor
  • ./build.sh -r --patch all

@ben-kaufman ben-kaufman force-pushed the feat/samrock-descriptor-api branch 3 times, most recently from 0469dd7 to c839ec0 Compare May 20, 2026 23:28
@ben-kaufman ben-kaufman marked this pull request as ready for review May 20, 2026 23:30
@ben-kaufman ben-kaufman requested a review from ovitrif May 20, 2026 23:30
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c839ec057f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/modules/onchain/implementation.rs
@ben-kaufman ben-kaufman force-pushed the feat/samrock-descriptor-api branch from c839ec0 to 95278a5 Compare May 20, 2026 23:43
Copy link
Copy Markdown
Collaborator

@ovitrif ovitrif left a comment

Choose a reason for hiding this comment

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

lgtm 🙌🏻

@ovitrif ovitrif merged commit 8e49ab8 into master May 21, 2026
1 check passed
@ovitrif ovitrif deleted the feat/samrock-descriptor-api branch May 21, 2026 15:32
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