Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Are XPubs generated at Depth 3 or Depth 4? #30

Open
coolaj86 opened this issue Jul 7, 2023 · 0 comments
Open

doc: Are XPubs generated at Depth 3 or Depth 4? #30

coolaj86 opened this issue Jul 7, 2023 · 0 comments

Comments

@coolaj86
Copy link
Member

coolaj86 commented Jul 7, 2023

Many Wallets generate XPubs at Depth 3. This is kinda correct. They are intended for the audit use case (https://en.bitcoin.it/wiki/BIP_0032#Audits:_N.28m.2F.2A.29), not the sharing use case (https://en.bitcoin.it/wiki/BIP_0032#Per-office_balances:_m.2FiH).

  • Depth 3 is for internal Account Auditing (captures received money and returned change)
  • Depth 4 is for Sharing with Contacts (captures received money only)

This library refers to XPubs as level-4 because it is intended to be used with Contacts, not for internal auditing.

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

No branches or pull requests

1 participant