Skip to content

feat(dashpay): open mainnet OneLink invitations in the app - #1173

Merged
romchornyi merged 1 commit into
developfrom
feat/onelink-mainnet-applinks
Oct 20, 2026
Merged

romchornyi merged 1 commit into
developfrom
feat/onelink-mainnet-applinks

Conversation

@romchornyi

@romchornyi romchornyi commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Issue being fixed or feature implemented

DashPay invitation links on mainnet are AppsFlyer OneLinks on dashpay.onelink.me (template hirm). On iPhone they never open the installed app: the app does not claim that domain, and the template's AASA was empty. The template has now been fixed in AppsFlyer: https://dashpay.onelink.me/.well-known/apple-app-site-association serves 44RJ69WHFF.org.dashfoundation.dash for /hirm/*. The testnet domain dashpaytest.onelink.me (/k7Pz/*) was already claimed.

What was done?

  • Added applinks:dashpay.onelink.me to DashWallet/dashwallet.entitlements.
  • No code change: application:continueUserActivity: already routes the link through DWInvitationLinkNormalizer, which accepts *.onelink.me and unwraps the inner dashpay://invite from af_dp.
  • Deliberately not done: no AppsFlyer SDK (no tracker in the app). Consequences:
    • no deferred deep link: without the app installed, the link leads to the App Store, and after installing, the invitee opens the link again or scans the invitation QR;
    • short OneLinks without af_dp in the URL are not resolved.

How Has This Been Tested?

  • plutil -lint on the entitlements file.
  • The AASA files for both OneLink domains were checked with curl; both list the app for their template paths.
  • Not yet verified on a device: a universal link only works in a signed build. The TestFlight build of this branch is where to check it: tap a https://dashpay.onelink.me/hirm/…?af_dp=dashpay%3A%2F%2Finvite%3F… link on an iPhone with the app installed; the app should open.
  • The App ID already has Associated Domains enabled (other domains are claimed), and CI archives with automatic signing and -allowProvisioningUpdates, so the profile should update without a portal change. The first CI build confirms it.

Breaking Changes

None.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • DashPay links from dashpay.onelink.me can now open in DashWallet.

Add applinks:dashpay.onelink.me so mainnet DashPay invitation OneLinks
(template hirm) open the installed app, as dashpaytest.onelink.me already
does on testnet. The routing is in place: continueUserActivity hands the
link to DWInvitationLinkNormalizer, which unwraps af_dp from *.onelink.me.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 8a096402-416a-4fdc-94dc-8b1ce9b3348d

📥 Commits

Reviewing files that changed from the base of the PR and between aa31025 and bfa870c.

📒 Files selected for processing (1)
  • DashWallet/dashwallet.entitlements

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The associated-domains entitlement adds applinks:dashpay.onelink.me.

Changes

Associated Domains

Layer / File(s) Summary
Add DashPay link domain
DashWallet/dashwallet.entitlements
The associated-domains entitlement now includes applinks:dashpay.onelink.me.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to bfa87

This change lets mainnet DashPay invitation links open the installed app, matching the existing testnet behavior. No concrete merge-blocking risk is evident. Confirm the first signed CI build and test a mainnet invitation link on a TestFlight build.

Security Architecture Review

Security architecture risk: 🔵 Low · up to bfa87

The new domain opens the existing invitation flow without changing its validation or PIN/biometric authorization controls. No introduced authorization bypass was demonstrated. Signed-build link delivery and the underlying invitation claim’s crash-recovery guarantees remain unverified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The added exposure is a mainnet link-delivery route into the installed app’s existing invitation flow. Its sensitive outcome is voucher-funded identity creation in the selected wallet/network context; domain association alone does not authorize that operation.

Security Findings and Attack Paths

  • inferred — A sender-controlled embedded payload can reach invitation recognition through the new domain, but the same sensitive transition was already reachable through custom-scheme invitations. Re-normalization, structural preview, and user authorization remain between delivery and claim execution; the inspected change does not demonstrate a bypass of those controls.

Trust Boundaries and Controls

  • observed — The entitlement declares one exact additional host, while the existing application recognizer accepts vendor-domain suffixes. Transport acceptance is not voucher authority: an inconclusive spent-voucher precheck proceeds to the SDK claim, which the call site identifies as authoritative. SDK proof enforcement was not independently inspected.

Resilience and Maintainability Implications

  • inferred — Registration orders identity creation before username registration and can reuse a locally persisted identity after partial failure. Invitation-specific recovery after chain acceptance but before local persistence is not established: the explicit remote-identity recovery branch requires a recovery lock, while the invitation branch delegates claiming to the SDK. This unresolved persistence/idempotency contract belongs to the existing shared transition, not a demonstrated new defect in the domain addition.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: enabling mainnet DashPay OneLink invitations to open in the app.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thepastaclaw

thepastaclaw commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

✅ Final review complete — no blockers (commit bfa870c) · triage: low

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Final validation — Phase 1 + Phase 2

The one-line entitlement change correctly claims the mainnet OneLink domain; the live AASA matches the release app ID and /hirm/* path, and existing invitation routing and validation support the long-form URL. Entitlement linting and executable mainnet/testnet normalization checks passed at the exact reviewed head, but the canonical build is blocked by DashUIKit requiring Swift tools 6.3 while the installed Xcode provides 6.1. No code defect was confirmed; signed-device verification remains an in-scope validation follow-up.

🟡 1 suggestion(s)

Review provenance

Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: glm-5.3-flash (agent: phase1-reviewer, role: security-auditor); reviewer 3: gpt-6.1-sol (agent: phase2-reviewer, role: general); reviewer 4: gpt-6.1-sol (agent: phase2-reviewer, role: security-auditor); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)

  • Triage: low by gpt-6.1-sol (effort low) — Adding one associated-domain entitlement is a small, well-contained configuration change that enables mainnet universal-link behavior without modifying invitation parsing, funds movement, or other critical logic.
  • Phase 1 reviewers: glm-5.3-flash — general (completed, effort high); agent phase1-reviewer, glm-5.3-flash — security-auditor (completed, effort high); agent phase1-reviewer
  • Phase 1 model: glm-5.3-flash — zai quota: 5h 99% left, weekly 80% left; passed over gemini-3.8-flash-high (antigravity below 15% reserve: weekly 13% left, 5h 100% left)
  • Fresh verifier: gpt-6.1-sol — final-verifier; agent sol-verifier
  • Phase 2 reviewers: gpt-6.1-sol — general (completed, effort medium); agent phase2-reviewer, gpt-6.1-sol — security-auditor (completed, effort medium); agent phase2-reviewer
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review. Verify each finding against the current code and only fix it if needed.

In `DashWallet/dashwallet.entitlements`:
- [SUGGESTION] DashWallet/dashwallet.entitlements:11: Complete signed-device verification before release
  The PR explicitly leaves the device check outstanding. The new entitlement, live AASA, release app ID, and long-form invitation normalization agree, but those checks do not establish that an installed signed build receives the universal link and reaches the invitation screen. Complete and record the planned TestFlight check before shipping: tap a mainnet /hirm/* link containing af_dp from another app, verify that Dash Wallet opens with the invitation prefilled, and check both cold and running app states. This is the remaining end-to-end evidence required by the repository's validation standard for deep-link changes.

<array>
<string>applinks:invitations.dashpay.io</string>
<string>applinks:dashpaytest.onelink.me</string>
<string>applinks:dashpay.onelink.me</string>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Suggestion: Complete signed-device verification before release

The PR explicitly leaves the device check outstanding. The new entitlement, live AASA, release app ID, and long-form invitation normalization agree, but those checks do not establish that an installed signed build receives the universal link and reaches the invitation screen. Complete and record the planned TestFlight check before shipping: tap a mainnet /hirm/* link containing af_dp from another app, verify that Dash Wallet opens with the invitation prefilled, and check both cold and running app states. This is the remaining end-to-end evidence required by the repository's validation standard for deep-link changes.

source: glm-5.3-flash (phase1-reviewer: general, security-auditor)

@romchornyi

Copy link
Copy Markdown
Contributor Author

Verified on device. TestFlight 9.1.3 (6) is 9.1.3 (4) plus this PR (branch qa/invite-onelink-9.1.3).

  • Before (the build without this change): tapping https://dashpay.onelink.me/hirm/?af_dp=dashpay%3A%2F%2Finvite%3F… in Notes opened the App Store, even with the app installed.
  • After (9.1.3 (6)): the same tap opens the app, which unwraps af_dp and shows the invitation dialog. The test link carried a testnet invitation, so on mainnet it was rejected as "not valid" (.invalid(.wrongNetwork)), as expected.

@llbartekll llbartekll left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM. Approving.

What I checked:

  • Both app targets (dashwallet, dashpay) sign with DashWallet/dashwallet.entitlements in every configuration, so the dashpay scheme that ships to TestFlight picks this up.
  • The live AASA at dashpay.onelink.me lists 44RJ69WHFF.org.dashfoundation.dash for /hirm/*. That matches DEVELOPMENT_TEAM and the bundle ID.
  • Routing: continueUserActivity: (DASHPAY) → DWInvitationLinkNormalizer.isInvitationURL. It matches the onelink.me suffix and unwraps af_dp. Nothing else in the app needs the new host.
  • Android's InviteShareLink now shares the brand domain with a trailing slash (/hirm/?af_dp=…), so new Android invites match the /hirm/* pattern. Your TF 9.1.3 (6) device check covers the end-to-end path.

Non-blocking notes:

  1. Every /hirm/* URL now opens the app. When the normalizer can't unwrap a link (a short OneLink, or a non-invite link on that template), continueUserActivity: returns NO after iOS has already opened the app. The user lands on Home and nothing happens. Before this change they went to Safari and then the App Store. Android shares long links, so this is an edge case. If it comes up, a cheap follow-up is to show the paste/scan hint for a OneLink host that fails to unwrap, instead of returning NO.
  2. Invites Android shared before InviteShareLink (path /hirm with no trailing slash, or the go.onelink.me host) don't match the AASA, so they still open in the browser. That's expected and not fixable here.

@romchornyi
romchornyi merged commit 816a140 into develop Oct 20, 2026
4 checks passed
@romchornyi
romchornyi deleted the feat/onelink-mainnet-applinks branch October 20, 2026 12:18
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.

4 participants