UNPKG

@hyperlane-xyz/cli

Version:

A command-line utility for common Hyperlane operations

61 lines (51 loc) 2.73 kB
export const id = 999; export const ids = [999]; export const modules = { /***/ 77999: /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ p256: () => (/* binding */ p256) /* harmony export */ }); /* unused harmony exports secp256r1, hashToCurve, encodeToCurve */ /* harmony import */ var _noble_hashes_sha256__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(31675); /* harmony import */ var _shortw_utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94349); /* harmony import */ var _abstract_modular_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22977); /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ // NIST secp256r1 aka p256 // https://www.secg.org/sec2-v2.pdf, https://neuromancer.sk/std/nist/P-256 const Fp = (0,_abstract_modular_js__WEBPACK_IMPORTED_MODULE_0__/* .Field */ .D0)(BigInt('0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff')); const CURVE_A = Fp.create(BigInt('-3')); const CURVE_B = BigInt('0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b'); // prettier-ignore const p256 = (0,_shortw_utils_js__WEBPACK_IMPORTED_MODULE_1__/* .createCurve */ .s)({ a: CURVE_A, // Equation params: a, b b: CURVE_B, Fp, // Field: 2n**224n * (2n**32n-1n) + 2n**192n + 2n**96n-1n // Curve order, total count of valid points in the field n: BigInt('0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551'), // Base (generator) point (x, y) Gx: BigInt('0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296'), Gy: BigInt('0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5'), h: BigInt(1), lowS: false, }, _noble_hashes_sha256__WEBPACK_IMPORTED_MODULE_2__/* .sha256 */ .sc); const secp256r1 = (/* unused pure expression or super */ null && (p256)); const mapSWU = /* @__PURE__ */ (/* unused pure expression or super */ null && ((() => mapToCurveSimpleSWU(Fp, { A: CURVE_A, B: CURVE_B, Z: Fp.create(BigInt('-10')), }))())); const htf = /* @__PURE__ */ (/* unused pure expression or super */ null && ((() => createHasher(secp256r1.ProjectivePoint, (scalars) => mapSWU(scalars[0]), { DST: 'P256_XMD:SHA-256_SSWU_RO_', encodeDST: 'P256_XMD:SHA-256_SSWU_NU_', p: Fp.ORDER, m: 1, k: 128, expand: 'xmd', hash: sha256, }))())); const hashToCurve = /* @__PURE__ */ (/* unused pure expression or super */ null && ((() => htf.hashToCurve)())); const encodeToCurve = /* @__PURE__ */ (/* unused pure expression or super */ null && ((() => htf.encodeToCurve)())); //# sourceMappingURL=p256.js.map /***/ }) };