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

feat: allow to inject mock xpubs #41

Open
fboucquez opened this issue Jan 25, 2024 · 1 comment
Open

feat: allow to inject mock xpubs #41

fboucquez opened this issue Jan 25, 2024 · 1 comment
Labels

Comments

@fboucquez
Copy link
Contributor

fboucquez commented Jan 25, 2024

For troubleshooting, allow a dev wallet to inject pubs (like customers, from safe report) to reproduce a third-party wallet behavior.

Although easier for other networks, mocking just the address is not good enough for bitcoin-likes

Unsure if this is a keychain module change, a forked keychain module a different one. What do you think?

Example of mocked data:

const xpubs = {
  bitcoin: {
    0: { // account index
      bip44: 'xpub6BsgE...',
      bip84: 'xpub6CP7S...',
      bip86: 'xpub6CMS5p...',
    },
  },
}

Falling back to the seed if the asset or the wallet account are not mocked

@mvayngrib
Copy link
Collaborator

mvayngrib commented Jan 26, 2024

@kewde will be working on a publicKeyProvider, which may be a better fit for reproducing customer issues (given we only have their public keys)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants