// hex string
const mainKey = '4c6466afe2d0fdf4b8e052e011214308f98c8bbe30cbe54a1f781dd842e70052bf711e3674000f8d63ed96f1fb4c757a2de95419376ea664f12448dc8d508fa8'
// num of fields in bulletin
const fields = 3
const encryptOptions = {
mainKey,
dimension: [
{ min: 1, max: 1, options: fields },
{ min: 1, max: 1, options: fields * 2 },
],
bulletin: [
[...Array(fields - 1).fill(0), 1],
[...Array(fields * 2 - 1).fill(0), 1],
],
validation: false,
ctx: 'pollId', // poll ctx string
}
const encrypted = encrypt(encryptOptions)