0.1.1 • Published 4 years ago
@vostokplatform/voting-encript v0.1.1
Usage example
const basePoint = [
'55066263022277343669578718895168534326250603453777594175500187360389116729240',
'32670510020758816978083085130507043184471273380659243275938904335757337482424'
] as [string, string];
const hashLength = '256';
const q = '115792089237316195423570985008687907852837564279074904382605163141518161494337';
const mainKey = [
'32983111314637801088355561917310615566685144003604692326323842087626703683857',
'38829655112450477183306932510150578359761887386953658486573992752257631567231'
] as [string, string];
const enc = new Encrypt({
mainKey,
basePoint,
hashLength,
q
});
const encrypted = enc.makeEncryptedBulletin([0,1,0]);