Skip to content

Conversation

@f3r10
Copy link
Contributor

@f3r10 f3r10 commented Feb 10, 2026

Add deriveNodeId() NAPI function for fast node ID derivation

Derive the node public key from mnemonic + network without building
the full MdkNode (~1ms vs ~4s). Replicates the exact key derivation
path: mnemonic → BIP39 seed → BIP32 xprv → KeysManager → node_id.

This enables firing API calls (which need nodeId) before the expensive
node construction, allowing HTTP requests to overlap with the sync
node build step.

@martinsaposnic martinsaposnic merged commit e3e31ca into main Feb 10, 2026
12 checks passed
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.

2 participants