UNPKG

pqp

Version:
29 lines (19 loc) 803 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _config = require('../utils/config'); var _config2 = _interopRequireDefault(_config); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var private_key = _config2.default.private_key; var PrivateKey = function PrivateKey() { _classCallCheck(this, PrivateKey); this.block_length = private_key.length; // this is insecure, but OK for tests this.block_weight = private_key.weight; this.block_error = private_key.error; this.H_0 = []; this.H_1 = []; this.H_1inv = []; }; exports.default = PrivateKey;