From 631640698b699a64535790ad5f951170730154b2 Mon Sep 17 00:00:00 2001 From: JS Date: Mon, 10 Aug 2026 18:09:35 +0300 Subject: [PATCH] feat: Add Stellar to the known Snap derivation paths --- packages/snaps-utils/src/derivation-path.test.ts | 6 ++++++ packages/snaps-utils/src/derivation-paths.ts | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/packages/snaps-utils/src/derivation-path.test.ts b/packages/snaps-utils/src/derivation-path.test.ts index e6334212ab..e554916314 100644 --- a/packages/snaps-utils/src/derivation-path.test.ts +++ b/packages/snaps-utils/src/derivation-path.test.ts @@ -10,6 +10,12 @@ describe('getSnapDerivationPathName', () => { ); }); + it('returns a name for ed25519 paths that only SLIP-44 would miss', () => { + expect(getSnapDerivationPathName(['m', `44'`, `148'`], 'ed25519')).toBe( + 'Stellar', + ); + }); + it("returns a name from the hardcoded list starting with `1852'`, `1815'`", () => { expect( getSnapDerivationPathName(['m', `1852'`, `1815'`], 'ed25519Bip32'), diff --git a/packages/snaps-utils/src/derivation-paths.ts b/packages/snaps-utils/src/derivation-paths.ts index 7556e7a6fa..cc0bd0dd11 100644 --- a/packages/snaps-utils/src/derivation-paths.ts +++ b/packages/snaps-utils/src/derivation-paths.ts @@ -105,6 +105,11 @@ export const SNAPS_DERIVATION_PATHS: SnapsDerivationPath[] = [ curve: 'ed25519', name: 'Sui', }, + { + path: ['m', `44'`, `148'`], + curve: 'ed25519', + name: 'Stellar', + }, { path: ['m', `44'`, `931'`], curve: 'secp256k1',