@bsv/wallet-toolbox
Version:
BRC100 conforming wallet, wallet storage and wallet signer components
13 lines • 683 B
TypeScript
import { MerklePath } from '@bsv/sdk';
/**
* Compute the merkle root from an array of txids (big-endian hex strings).
* Returns the root as a big-endian hex string (reversed byte order from the
* natural double-SHA256 result, matching the standard block header format).
*/
export declare function computeMerkleRoot(txids: string[]): string;
/**
* Compute the MerklePath for a target transaction at `targetIndex` within a block at `blockHeight`.
* `txids` is the ordered list of all txids in the block (big-endian hex).
*/
export declare function computeMerklePath(txids: string[], targetIndex: number, blockHeight: number): MerklePath;
//# sourceMappingURL=merkleTree.d.ts.map