ghost-keychain/packages/extension-base/src/utils/canDerive.ts
2023-01-01 10:23:00 +02:00

9 lines
310 B
TypeScript

// Copyright 2019-2023 @polkadot/extension authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { KeypairType } from '@polkadot/util-crypto/types';
export function canDerive (type?: KeypairType): boolean {
return !!type && ['ed25519', 'sr25519', 'ecdsa', 'ethereum'].includes(type);
}