"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.blake2Concat = void 0;
const util_crypto_1 = require("@polkadot/util-crypto");
const blake2Concat = (input, bitLength = 128) => {
    const inputHash = (0, util_crypto_1.blake2AsHex)(input, bitLength);
    const inputHex = [...input]
        .map((x) => x.toString(16).padStart(2, "0"))
        .join("");
    return `${inputHash}${inputHex}`;
};
exports.blake2Concat = blake2Concat;
