pqp
Version:
NodeJS version of libPQP
27 lines (17 loc) • 755 B
JavaScript
;
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 public_key = _config2.default.public_key;
var PublicKey = function PublicKey() {
_classCallCheck(this, PublicKey);
this.block_length = public_key.length; // this is insecure, but OK for tests
this.block_weight = public_key.weight;
this.block_error = public_key.error;
this.G = [];
};
exports.default = PublicKey;