refactor: remove unused function

This commit is contained in:
fryorcraken.eth 2022-09-05 21:32:51 +10:00
parent ad85c84a22
commit b2b14625bb
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 0 additions and 10 deletions

View File

@ -10,16 +10,6 @@ export const ERR_TYPE_NOT_IMPLEMENTED = "Keypair type not implemented";
export * from "./types"; export * from "./types";
export * from "./secp256k1"; export * from "./secp256k1";
// TODO: Check if @libp2p/crypto methods can be used instead.
export async function generateKeypair(type: KeypairType): Promise<IKeypair> {
switch (type) {
case KeypairType.secp256k1:
return await Secp256k1Keypair.generate();
default:
throw new Error(ERR_TYPE_NOT_IMPLEMENTED);
}
}
export function createKeypair( export function createKeypair(
type: KeypairType, type: KeypairType,
privateKey?: Uint8Array, privateKey?: Uint8Array,