Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/snaps-utils/src/derivation-path.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
5 changes: 5 additions & 0 deletions packages/snaps-utils/src/derivation-paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down