UNPKG

epir

Version:

EllipticPIR client library (Node.js / TypeScript bindings).

21 lines 937 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SelectorFactoryBase = exports.DEFAULT_CAPACITIES = exports.MG_DEFAULT_PATH = exports.GE25519_P3_SIZE = exports.MG_SIZE = exports.DEFAULT_MMAX = exports.DEFAULT_MMAX_MOD = exports.CIPHER_SIZE = exports.POINT_SIZE = exports.SCALAR_SIZE = void 0; exports.SCALAR_SIZE = 32; exports.POINT_SIZE = 32; exports.CIPHER_SIZE = 2 * exports.POINT_SIZE; exports.DEFAULT_MMAX_MOD = 24; exports.DEFAULT_MMAX = 1 << exports.DEFAULT_MMAX_MOD; exports.MG_SIZE = 36; exports.GE25519_P3_SIZE = 4 * 40; exports.MG_DEFAULT_PATH = `${process.env['HOME']}/.EllipticPIR/mG.bin`; exports.DEFAULT_CAPACITIES = [10000, 100]; class SelectorFactoryBase { constructor(isFast, key, capacities) { this.isFast = isFast; this.key = key; this.capacities = capacities; } } exports.SelectorFactoryBase = SelectorFactoryBase; //# sourceMappingURL=types.js.map