Browse Source
in future, we probably even want to go farther: introducing a purpose field as in `m/purpose'/coinType'/index'` of bip3Zmaster
5 changed files with 16 additions and 5 deletions
@ -0,0 +1,7 @@ |
|||
// @flow
|
|||
import type { Account, AccountRaw } from '@ledgerhq/live-common/lib/types' |
|||
|
|||
export const isSegwitPath = (path: string): boolean => path.startsWith("49'") |
|||
|
|||
export const isSegwitAccount = (account: Account | AccountRaw): boolean => |
|||
isSegwitPath(account.freshAddressPath) |
Loading…
Reference in new issue