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 Apr 26, 2026
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The fat node now ships a flat
AuthNodeInfo(no nestedidentity/nodeInfo,bootstrap_peersas[]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
AuthNodeInfo.kt: dropAddrInfo, changebootstrapPeerstoList<String>to match the[]stringthe fat node now sends.PairedNode.kt: replace theIdentitywrapper with flattoken/psk/userIdfields;from(info)maps directly off the new DTO.PairingCoordinator.kt:pskHex = paired.psk.PairingActivity.kt:showConfirmationreadsinfo.nodeId/info.addressesand showsinfo.userIdin the "Owner" slot of the confirmation string now thatusernameis no longer in the pairing payload.versionto 0.0.68.Test plan
https://claude.ai/code/session_011638L4REv78jEVUjQsniPz
Generated by Claude Code