import { KeyPair } from './keypair.cjs'; /** * Verify a ed25519 signature * @param messageHash - The hash of the message that was signed. * @param signature - The signature to verify. * @param publicKey - The public key to verify the signature with. * @returns True if the signature is valid, false otherwise. */ declare function ed25519VerifySignature(messageHash: Uint8Array, signature: Uint8Array, publicKey: Uint8Array): boolean; declare class Ed25519 implements KeyPair { #private; /** * Generate a new ed25519 key pair. * @returns A new ed25519 key pair. */ static makeKeyPair(): Ed25519; /** * Derive a ed25519 key pair from a mnemonic. * @param mnemonic - The English mnemonic to derive the key pair from. * @param coinType - The BIP-44 coin type to derive the key pair for. * @returns A new ed25519 key pair. */ static fromMnemonic(mnemonic: string, coinType?: number): Ed25519; constructor(privateKey: Uint8Array); getPublicKey(): Uint8Array; get privateKey(): Uint8Array; /** * Sign a message hash with the private key. * @param messageHash - The hash of the message to sign. * @returns The signature of the message hash. */ createSignature(messageHash: Uint8Array): Uint8Array; /** * Verify a signature of a message hash. * @param messageHash - The hash of the message that was signed. * @param signature - The signature to verify. * @returns True if the signature is valid, false otherwise. */ verifySignature(messageHash: Uint8Array, signature: Uint8Array): boolean; } export { Ed25519, ed25519VerifySignature };