diff --git a/src/types/keypair/PrivateKey.ts b/src/types/keypair/PrivateKey.ts index eae86d1f..d181108f 100644 --- a/src/types/keypair/PrivateKey.ts +++ b/src/types/keypair/PrivateKey.ts @@ -3,6 +3,7 @@ import { concat } from '@ethersproject/bytes'; import { PublicKey } from './PublicKey'; import { PrivateKey as Ed25519PrivateKey } from './ed25519/PrivateKey'; import { PrivateKey as Secp256k1PrivateKey } from './secp256k1/PrivateKey'; +import { KeyAlgorithm } from './Algorithm'; /** * Interface representing the structure and methods of a private key, including @@ -24,14 +25,6 @@ export interface PrivateKeyInternal { toPem(): string; } -/** - * Enum representing supported cryptographic key algorithms. - */ -enum KeyAlgorithm { - ED25519 = 1, - SECP256K1 = 2 -} - /** * Represents a private key with associated public key and cryptographic algorithm. * Provides methods for signing messages, exporting to PEM, and generating public keys.