"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.generateEmptyBallotRoots = void 0;
const core_1 = require("@maci-protocol/core");
const crypto_1 = require("@maci-protocol/crypto");
const domainobjs_1 = require("@maci-protocol/domainobjs");
/**
 * Generate empty ballot roots for a given state tree depth
 * @param stateTreeDepth The depth of the state tree
 * @returns The empty ballot roots
 */
const generateEmptyBallotRoots = (stateTreeDepth) => {
    const roots = [];
    for (let i = 0; i < 5; i += 1) {
        const ballot = new domainobjs_1.Ballot(0, i + 1);
        // The empty Ballot tree root
        const ballotTree = new crypto_1.IncrementalQuinTree(stateTreeDepth, ballot.hash(), core_1.STATE_TREE_ARITY, crypto_1.hash2);
        roots.push(ballotTree.root);
    }
    return roots;
};
exports.generateEmptyBallotRoots = generateEmptyBallotRoots;
//# sourceMappingURL=generateEmptyBallotRoots.js.map