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

[feature]: Handle Invalid Proof Courier Address During Ongoing Asset Transfer #1082

Open
ffranr opened this issue Aug 13, 2024 · 0 comments
Open
Assignees
Milestone

Comments

@ffranr
Copy link
Contributor

ffranr commented Aug 13, 2024

The proof courier service encoded in a tap address may become permanently offline or its address may be misspent. In such cases, if a user has already initiated an asset transfer to that tap address, the anchoring transaction might confirm on-chain, but the associated proofs cannot be delivered to the intended peer due to the invalid courier address.

Problem:

  • The proof courier address in the tap address could be invalid or unreachable after an asset transfer has begun.
  • The anchoring transaction may confirm on-chain, but the proofs required for the transfer cannot be delivered, potentially causing issues in completing the transfer.

Proposed Solutions:
To handle this scenario, we need to implement a mechanism that allows the user to specify an alternative strategy for delivering the proofs. Here are some potential options:

  1. Override Proof Courier Address:

    • Allow the user to override the proof courier address after the transfer has started.
    • This would require adding a new RPC endpoint that the user can call to specify a new, valid courier address.
  2. Force Delivery to Public Universe Server:

    • Provide an option for the user to force the tapd to deliver the proof to a public universe server instead.
    • Optionally, the user might be able to configure tapd to do this automatically if the proof courier address is detected as invalid.
  3. Pre-Transfer Proof Courier Ping:

    • Before the asset transfer process begins, implement a check that pings the proof courier service.
    • If the service does not respond, the transfer process should not proceed, preventing potential issues with undeliverable proofs later on.

Implementing these strategies will ensure that the proofs can still be delivered and the asset transfer completed, even if the initial proof courier service is no longer available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🏗 In progress
Development

No branches or pull requests

3 participants