UNPKG

merkle-tree-lib

Version:

Merkle Tree implementation with BIP340 tagged hash support.

20 lines (19 loc) 524 B
import { HashStrategy } from '../HashStrategy'; /** * Sha256Strategy - Implementation of HashStrategy using SHA-256 algorithm */ export declare class Sha256Strategy implements HashStrategy { /** * Calculate a SHA-256 hash for the input data * * @param data - The data to hash * @returns The computed SHA-256 hash as a Buffer */ hash(data: Buffer | string): Buffer; /** * Get the algorithm name * * @returns The string "SHA-256" */ getAlgorithmName(): string; }