9 lines
310 B
TypeScript
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);
|
|
}
|