merkle-tree-lib
Version:
Merkle Tree implementation with BIP340 tagged hash support.
24 lines (23 loc) • 691 B
TypeScript
import { HashStrategy } from './HashStrategy';
/**
* HashStrategyType - Enumeration of available hash strategy types
*/
export declare enum HashStrategyType {
SHA256 = "sha256",
TAGGED_SHA256 = "tagged-sha256"
}
/**
* HashStrategyFactory - Factory for creating hash strategy instances
*/
export declare class HashStrategyFactory {
/**
* Create a hash strategy of the specified type
*
* @param type - The type of strategy to create
* @param options - Additional options (like tag for tagged hashing)
* @returns A HashStrategy instance
*/
static createStrategy(type: HashStrategyType, options?: {
tag?: string;
}): HashStrategy;
}