Skip to content
This repository was archived by the owner on May 2, 2026. It is now read-only.

fix(pair): align Kotlin DTO and pairing flow with flat AuthNodeInfo#9

Merged
filinvadim merged 1 commit intomainfrom
claude/compress-nodeauthinfo-CWZ4u
Apr 26, 2026
Merged

fix(pair): align Kotlin DTO and pairing flow with flat AuthNodeInfo#9
filinvadim merged 1 commit intomainfrom
claude/compress-nodeauthinfo-CWZ4u

Conversation

@filinvadim
Copy link
Copy Markdown
Member

Summary

The fat node now ships a flat AuthNodeInfo (no nested identity / nodeInfo, bootstrap_peers as []string). The validator was updated upstream, but the DTO and the rest of the pairing flow still referenced the old nested shape and wouldn't compile.

Change

  • DTO AuthNodeInfo.kt: drop AddrInfo, change bootstrapPeers to List<String> to match the []string the fat node now sends.
  • PairedNode.kt: replace the Identity wrapper with flat token / psk / userId fields; from(info) maps directly off the new DTO.
  • PairingCoordinator.kt: pskHex = paired.psk.
  • PairingActivity.kt: showConfirmation reads info.nodeId / info.addresses and shows info.userId in the "Owner" slot of the confirmation string now that username is no longer in the pairing payload.
  • Bump version to 0.0.68.

Test plan

  • AAR is unaffected (no Go change). The Kotlin pairing code now compiles against the flat DTO.
  • Manual end-to-end: scan a freshly-issued QR from the fat node and confirm the dial succeeds.

https://claude.ai/code/session_011638L4REv78jEVUjQsniPz


Generated by Claude Code

The fat node now ships a flat AuthNodeInfo (no nested identity/node_info,
bootstrap_peers as list of pre-built multiaddrs). The Kotlin DTO and
downstream pairing types still referenced the old nested shape and
wouldn't compile.

- DTO: drop AddrInfo, change bootstrapPeers to List<String> (matches the
  []string the fat node now sends).
- PairedNode: replace the Identity wrapper with flat token/psk/userId
  fields; from(info) maps directly off the new DTO.
- PairingCoordinator: pskHex pulls from paired.psk.
- PairingActivity: showConfirmation reads info.nodeId / info.addresses
  and shows userId in the "Owner" slot now that username is no longer
  part of the pairing payload.

The validator was already updated upstream; this commit gets the rest of
the pairing flow building again.
@filinvadim filinvadim merged commit 7580186 into main Apr 26, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants