Skip to content

[WIP] btcutil: Add library functions for BIP-0352 silent payment _scan_ support#2466

Draft
guggero wants to merge 10 commits into
btcsuite:masterfrom
guggero:silent-payments-receive
Draft

[WIP] btcutil: Add library functions for BIP-0352 silent payment _scan_ support#2466
guggero wants to merge 10 commits into
btcsuite:masterfrom
guggero:silent-payments-receive

Conversation

@guggero

@guggero guggero commented Dec 16, 2025

Copy link
Copy Markdown
Collaborator

Depends on #2244, only the last two commits are new.

This is still very much work in progress.

@guggero guggero force-pushed the silent-payments-receive branch from 415da0a to aab6396 Compare May 20, 2026 10:43
guggero added 10 commits June 25, 2026 07:12
Fixes an independent issue discovered while reviewing and testing
the code that failed to detect duplicate xPubs because the wrong
variable (keyData holding the nil value of the global unsigned TX,
instead of the lowercase keydata that's the loop variable).
This commit adds library functions for calculating block tweaks. A
block tweak is the set of Silent Payment transaction tweaks that are
contained in a block. A SP transaction tweak is the pre-calculated input
public key sum tweaked by the input hash of a transaction and is
required for light clients to be able to calculate potential Silent
Payment outputs in a transaction or block without needing to download
the full block/transaction.
This commit adds helper functions that can be used by clients (including
light clients) to scan the chain for potential Silent Payment outputs.
@guggero guggero force-pushed the silent-payments-receive branch from aab6396 to afaa92a Compare July 14, 2026 11:41
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