import { type SignatureLike } from "@ethersproject/bytes"; import { type PeerId } from "@libp2p/interface"; import { Keypair, PrivateSignKey, PublicSignKey } from "./key.js"; import { PreHash } from "./prehash.js"; import { SignatureWithKey } from "./signature.js"; import { type Identity } from "./signer.js"; export declare class Secp256k1PublicKey extends PublicSignKey { publicKey: Uint8Array; constructor(properties: { publicKey: Uint8Array; }); static recover(wallet: { signMessage(message: string | Uint8Array): Promise | string; }): Promise; equals(other: PublicSignKey): boolean; toString(): string; toPeerId(): PeerId; static fromPeerId(id: PeerId): Secp256k1PublicKey; } export declare class Secp256k1PrivateKey extends PrivateSignKey { privateKey: Uint8Array; constructor(properties: { privateKey: Uint8Array; }); equals(other: Secp256k1PrivateKey): boolean; toString(): string; } export declare class Secp256k1Keypair extends Keypair implements Identity { publicKey: Secp256k1PublicKey; privateKey: Secp256k1PrivateKey; constructor(properties: { publicKey: Secp256k1PublicKey; privateKey: Secp256k1PrivateKey; }); static create(): Promise; sign(data: Uint8Array, prehash?: PreHash): Promise; equals(other: Keypair): boolean; toPeerId(): PeerId; } export declare const recoverPublicKeyFromSignature: (digest: Uint8Array, signature: SignatureLike) => Uint8Array; export declare const verifySignatureSecp256k1: (signature: SignatureWithKey, data: Uint8Array) => Promise; export declare const verifySignatureSecp256k1Prepared: (signature: SignatureWithKey, preparedData: Uint8Array) => Promise; //# sourceMappingURL=sepc256k1.d.ts.map