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

Add disclaimer about address_pool_gap address discovery in API doc #2924

Merged
merged 1 commit into from
Sep 27, 2021

Conversation

piotr-iohk
Copy link
Contributor

@piotr-iohk piotr-iohk commented Sep 27, 2021

  • Add disclaimer about address_pool_gap address discovery in API doc

Comments

Adding this note on recommendation from Jide, who's saying that many partners are trying to generate addresses with cardano-address and than looking into importing them into Shelley wallets. We also had some questions about this on GH recently.

Screenshot from 2021-09-27 18-48-19

Issue Number

@@ -898,6 +898,10 @@ x-walletAddressPoolGap: &walletAddressPoolGap

Beside, using large gaps is **not recommended** as it may induce important performance degradations. Use at your own risks.

**IMPORTANT DISCLAIMER 2:** There is no way to `import` addresses generated outside (e.g. using cardano-addresses) into the wallet.
Wallet only discovers transactions on its used and unused addresses that are within its currently seen `address_pool_gap`.
Transactions on addresses that "belong" to the wallet but happen to be beyond its `address_pool_gap` will not be visible on the wallet. See: [CIP-1852](https://github.com/cardano-foundation/CIPs/blob/master/CIP-1852/CIP-1852.md).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Transactions on addresses that "belong" to the wallet but happen to be beyond its `address_pool_gap` will not be visible on the wallet. See: [CIP-1852](https://github.com/cardano-foundation/CIPs/blob/master/CIP-1852/CIP-1852.md).
Transactions on addresses that "belong" to the wallet but happen to be beyond its `address_pool_gap` will not be visible to the wallet.
This is a technical limitation of the industry standard [BIP-44][]. See also [CIP-1852][]
[cip-1852]: https://github.com/cardano-foundation/CIPs/blob/master/CIP-1852/CIP-1852.md
[bip-44]: https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki

I suggest that we mention that it's "not our fault" by referring to an "industry standard". 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected.

@piotr-iohk piotr-iohk force-pushed the piotr/add-address-pool-gap-warning branch from c5fddc1 to c35691b Compare September 27, 2021 16:48
@piotr-iohk
Copy link
Contributor Author

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Sep 27, 2021

Build succeeded:

@iohk-bors iohk-bors bot merged commit 8a5e938 into master Sep 27, 2021
@iohk-bors iohk-bors bot deleted the piotr/add-address-pool-gap-warning branch September 27, 2021 17:33
WilliamKingNoel-Bot pushed a commit that referenced this pull request Sep 27, 2021
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.

2 participants