Skip to content

Commit

Permalink
Removed duplications for KeyAlgorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmyshchyshyn committed Dec 18, 2024
1 parent 8ac0f71 commit 5e470dd
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/types/keypair/PrivateKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit 5e470dd

Please sign in to comment.