import*as utils_1 from"@noble/hashes/utils";function sanitizeNumberOfParties(...numberOfParties){for(var n of numberOfParties)if(!Number.isInteger(n)||n<1||65535<n)throw new RangeError(`numberOfParties should be an integer in the range: 1..65_535, instead got: ${n} `)}function getHex32Bytes(strOrArr){if("string"!=typeof strOrArr&&(strOrArr=(0,utils_1.bytesToHex)(strOrArr)),0!==strOrArr.length&&64!==strOrArr.length)throw new Error("Tweak must be 32 bytes long");return strOrArr}export{sanitizeNumberOfParties,getHex32Bytes};