Add Silent Payment Support

未关闭
#164 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
32/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清
技术栈
rust

调研方向

从 Silent Payments 的 ELIP 和链接的参考实现开始,然后审查提议的 LWK 领域:feature-gated module、silent-payment key types、SwSigner derivation、TxBuilder send flow、scan-client trait 以及 shared test vectors。在实现之前,解决关于 scan-client shape、send API、hardware signing 和 labels 的未决问题;完成标准尚未定义。

由索引模型根据 Issue 内容生成。

描述

I'm working on the ELIP for Silent Payments and have a reference implementation working with LWK.

I have also started prototyping what an integration would look like for LWK to support SP directly:

  1. Feature-gate: silentpayments feature, default-off, gates the module (uses bech32)
  2. New lwk_common types: SilentPaymentAddress + SilentPaymentScanKeys
  3. Key origin: add SwSigner::silent_payment_keys() deriving b_scan/b_spend from seed at an agreed BIP-352 path
  4. Wire send: TxBuilder (coin selection + balancing around build_confidential_sp_txout)
  5. Wire receive: scan-client trait SilentPaymentTweakClient into the blockchain clients
  6. Test vectors: KAT vectors shared with the ELIP

A few open questions that came up during prototyping:

  • Scan-client shape: extend Esplora/Electrum with a tweaks index vs standalone server?
  • Send API surface: new TxBuilder method vs recipient-type variant?
  • HW signing: software-signer-only for v0 acceptable? (Jade/Ledger don't have an API for tweaks)
  • Labels scope: full label mechanism in v0, or change-label only?

Most of the changes are expressed in the reference implementation, but I would greatly appreciate guidance on of comments on the current plan an questions.

主要语言
Rust
星标
114
派生
69
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Blockstream/lwk 的其他 Issue

查看 Blockstream/lwk 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。