From cab3dad93f6512d2dd5b06e56478d4613aff4acd Mon Sep 17 00:00:00 2001 From: Maarten Zuidhoorn Date: Wed, 15 May 2024 10:12:05 +0200 Subject: [PATCH 1/2] Export `getBIP44CoinTypeToAddressPathTuple` function --- src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f9b092ee..d946de8d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -29,5 +29,9 @@ export { } from './BIP44CoinTypeNode'; export * from './constants'; export type { CoinTypeToAddressIndices } from './utils'; -export { isValidBIP32PathSegment, mnemonicPhraseToBytes } from './utils'; +export { + getBIP44CoinTypeToAddressPathTuple, + isValidBIP32PathSegment, + mnemonicPhraseToBytes, +} from './utils'; export { createBip39KeyFromSeed } from './derivers'; From e6885f223ae0909a8c348f41d2f59c2bab0aaf86 Mon Sep 17 00:00:00 2001 From: Maarten Zuidhoorn Date: Wed, 15 May 2024 10:15:56 +0200 Subject: [PATCH 2/2] Test export --- src/index.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.test.ts b/src/index.test.ts index 2291a8b6..5b4d2873 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -8,6 +8,7 @@ import { createBip39KeyFromSeed, mnemonicPhraseToBytes, ed25519Bip32, + getBIP44CoinTypeToAddressPathTuple, } from '.'; // This is purely for coverage shenanigans @@ -23,5 +24,6 @@ describe('index', () => { expect(isValidBIP32PathSegment).toBeDefined(); expect(createBip39KeyFromSeed).toBeDefined(); expect(mnemonicPhraseToBytes).toBeDefined(); + expect(getBIP44CoinTypeToAddressPathTuple).toBeDefined(); }); });