← 输入框|github.com|刷新
Skip to content

Add BIP-352 Silent Payments scanning support #26

Closed

Description

@pzafonte

Hi! I've implemented BIP-352 Silent Payments scanning specified here. Before opening a PR, I wanted to check if this is something you'd consider merging.

You can see the implementation on my fork:
https://github.com/pzafonte/kernel-node/tree/silent-payments

What it adds:

  • Scanning primitives (ECDH, tagged hashing, output key derivation)
  • Input public key extraction (P2WPKH, P2TR, P2PKH, P2SH-P2WPKH)
  • Transaction and block-level scanning
  • In-memory wallet with UTXO tracking and spend detection
  • Transaction history
  • Binary persistence (save/load wallet state)
  • Cap'n Proto IPC interface (import-keys, balance, history)
  • 52 unit tests

All code lives in a single new module (src/silentpayments.rs) plus
IPC additions to existing files. No changes to existing node logic.

Happy to split into smaller PRs if preferred.

Activity

  1. rustaceanrob commented on Mar 4, 2026

    @rustaceanrob
    Contributor

    Feel free to throw up a draft PR to share what you've done here, this would be a good feature to have and we can get a better idea of what prerequisite steps are required.

  2. rustaceanrob commented on May 19, 2026

    @rustaceanrob
    Contributor

    Receiving was added in #50. Closing and opening a broader tracking issue for silent payments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions