import { ed25519, sr25519 } from '@polkadot-labs/hdkd-helpers'; /** * Verify an Ed25519 signature * @param signature - The signature to verify (64 bytes) * @param message - The original message that was signed * @param publicKey - The public key of the signer (32 bytes) * @returns true if the signature is valid, false otherwise * @example * ```ts * const message = new TextEncoder().encode('Hello, G1!') * const signature = keyPair.sign(message) * const isValid = verifyEd25519(signature, message, keyPair.publicKey) * ``` */ export declare function verifyEd25519(signature: Uint8Array, message: Uint8Array, publicKey: Uint8Array): boolean; /** * Verify an Sr25519 signature * @param signature - The signature to verify (64 bytes) * @param message - The original message that was signed * @param publicKey - The public key of the signer (32 bytes) * @returns true if the signature is valid, false otherwise * @example * ```ts * const message = new TextEncoder().encode('Hello, G1!') * const signature = keyPair.sign(message) * const isValid = verifySr25519(signature, message, keyPair.publicKey) * ``` */ export declare function verifySr25519(signature: Uint8Array, message: Uint8Array, publicKey: Uint8Array): boolean; /** * Verify a signature using the appropriate algorithm * @param signature - The signature to verify (64 bytes) * @param message - The original message that was signed * @param publicKey - The public key of the signer (32 bytes) * @param algorithm - The algorithm used ('ed25519' or 'sr25519') * @returns true if the signature is valid, false otherwise * @example * ```ts * const isValid = verifySignature(signature, message, publicKey, 'ed25519') * ``` */ export declare function verifySignature(signature: Uint8Array, message: Uint8Array, publicKey: Uint8Array, algorithm?: 'ed25519' | 'sr25519'): boolean; export { ed25519, sr25519 };