Skip to content

Refactor derivation paths to a unified value for wallet creation and import #548

Open

Description

@xB0unty911

Currently, there is a discrepancy between the derivation paths used during wallet generation and those used during the import process. This leads to a situation where the same mnemonic phrase results in different addresses and inner-hash values depending on the action performed (Create vs. Import).

Problem:
Inconsistency: User gets different addresses for the same seed phrase.
UX Issue: Users cannot reliably restore their wallets if the derivation logic differs from the creation logic.
Data Integrity: The inner-hash calculation is tied to the derivation path, causing mismatches in local database indexing.

Proposed Changes:
Unify Derivation Path: Standardize the derivation path across the entire application (e.g., switch to a single standard like m/44'/... or a specific custom path used by the protocol).

Attached is a screenshot showing the different addresses and derivation paths as an example.

Image

Activity

  1. n13 commented on Jun 8, 2026

    @n13
    Collaborator

    Thank you for your bug report

    This specifically is not a bug - the first derivation path 189189 is for transparent addresses, and 189189189 (three times 189) is the canonical path for wormhole addresses

    Wormhole is different from transparent intentionally

  2. reopened this on Jun 8, 2026
  3. n13 commented on Jun 8, 2026

    @n13
    Collaborator

    Recomment: Add documentation to make this more clear

  4. self-assigned this
    on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions