import { Item, MerkleTreeHashNode } from "../../internals";

export class MerkleTreeLeafNode {
     /**
     * @param {Item} target
     * @param {number} offset
     * @param {string} hash
     */
    constructor(target, offset, hash){
        /**
         * @type {Item}
         */
        this.target = target
        /**
         * @type {number}
         */
        this.offset = offset
        /**
         * @type {string}
         */
        this.hash = hash
        /**
         * @type {MerkleTreeHashNode | MerkleTreeLeafNode | null | undefined}
         */
        this.parent = null
    }
}