/** * Utility methods related to proof-of-work. */ export declare class ProofOfWork { /** * Computes the resulting hash of the given proof-of-work input. */ static computeHash(input: { challengeNonce: string; responseNonce: string; requestData: string; }): string; /** * Computes the hash of the given array of strings. */ static hashAsHexString(input: string[]): string; /** * Verifies that the response nonce meets the proof-of-work difficulty requirement. */ static verifyResponseNonce(input: { maximumAllowedHashValue: bigint; challengeNonce: string; responseNonce: string; requestData: string; }): void; /** * Finds a response nonce that qualifies the difficulty requirement for the given proof-of-work challenge and request data. * NOTE: mainly for demonstrating the procedure to find a qualified response nonce. * Will need to artificially introduce asynchrony to allow other tasks to run if this method is to be used in a real-world client. */ static findQualifiedResponseNonce(input: { maximumAllowedHashValue: string; challengeNonce: string; requestData: string; }): string; /** * Generates 32 random bytes expressed as a HEX string. */ static generateNonce(): string; } //# sourceMappingURL=proof-of-work.d.ts.map