// Copyright 2019-2022 @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); }