mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 19:11:02 +00:00
1 line
25 KiB
Plaintext
1 line
25 KiB
Plaintext
{"dependencies":[{"name":"../utils.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":11,"column":19,"index":404},"end":{"line":11,"column":41,"index":426}}],"key":"Yc7DmwhweSDBIC4bv+r2fO8xp6U=","exportNames":["*"],"imports":1}},{"name":"./modular.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":12,"column":21,"index":449},"end":{"line":12,"column":44,"index":472}}],"key":"pkHxIsiyj9LvPZma2E+OjOIbg7k=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.montgomery = montgomery;\n /**\n * Montgomery curve methods. It's not really whole montgomery curve,\n * just bunch of very specific methods for X25519 / X448 from\n * [RFC 7748](https://www.rfc-editor.org/rfc/rfc7748)\n * @module\n */\n /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */\n const utils_ts_1 = require(_dependencyMap[0], \"../utils.js\");\n const modular_ts_1 = require(_dependencyMap[1], \"./modular.js\");\n const _0n = BigInt(0);\n const _1n = BigInt(1);\n const _2n = BigInt(2);\n function validateOpts(curve) {\n (0, utils_ts_1._validateObject)(curve, {\n adjustScalarBytes: 'function',\n powPminus2: 'function'\n });\n return Object.freeze(Object.assign({}, curve));\n }\n function montgomery(curveDef) {\n const CURVE = validateOpts(curveDef);\n const {\n P,\n type,\n adjustScalarBytes,\n powPminus2,\n randomBytes: rand\n } = CURVE;\n const is25519 = type === 'x25519';\n if (!is25519 && type !== 'x448') throw new Error('invalid type');\n const randomBytes_ = rand || utils_ts_1.randomBytes;\n const montgomeryBits = is25519 ? 255 : 448;\n const fieldLen = is25519 ? 32 : 56;\n const Gu = is25519 ? BigInt(9) : BigInt(5);\n // RFC 7748 #5:\n // The constant a24 is (486662 - 2) / 4 = 121665 for curve25519/X25519 and\n // (156326 - 2) / 4 = 39081 for curve448/X448\n // const a = is25519 ? 156326n : 486662n;\n const a24 = is25519 ? BigInt(121665) : BigInt(39081);\n // RFC: x25519 \"the resulting integer is of the form 2^254 plus\n // eight times a value between 0 and 2^251 - 1 (inclusive)\"\n // x448: \"2^447 plus four times a value between 0 and 2^445 - 1 (inclusive)\"\n const minScalar = is25519 ? _2n ** BigInt(254) : _2n ** BigInt(447);\n const maxAdded = is25519 ? BigInt(8) * _2n ** BigInt(251) - _1n : BigInt(4) * _2n ** BigInt(445) - _1n;\n const maxScalar = minScalar + maxAdded + _1n; // (inclusive)\n const modP = n => (0, modular_ts_1.mod)(n, P);\n const GuBytes = encodeU(Gu);\n function encodeU(u) {\n return (0, utils_ts_1.numberToBytesLE)(modP(u), fieldLen);\n }\n function decodeU(u) {\n const _u = (0, utils_ts_1.ensureBytes)('u coordinate', u, fieldLen);\n // RFC: When receiving such an array, implementations of X25519\n // (but not X448) MUST mask the most significant bit in the final byte.\n if (is25519) _u[31] &= 127; // 0b0111_1111\n // RFC: Implementations MUST accept non-canonical values and process them as\n // if they had been reduced modulo the field prime. The non-canonical\n // values are 2^255 - 19 through 2^255 - 1 for X25519 and 2^448 - 2^224\n // - 1 through 2^448 - 1 for X448.\n return modP((0, utils_ts_1.bytesToNumberLE)(_u));\n }\n function decodeScalar(scalar) {\n return (0, utils_ts_1.bytesToNumberLE)(adjustScalarBytes((0, utils_ts_1.ensureBytes)('scalar', scalar, fieldLen)));\n }\n function scalarMult(scalar, u) {\n const pu = montgomeryLadder(decodeU(u), decodeScalar(scalar));\n // Some public keys are useless, of low-order. Curve author doesn't think\n // it needs to be validated, but we do it nonetheless.\n // https://cr.yp.to/ecdh.html#validate\n if (pu === _0n) throw new Error('invalid private or public key received');\n return encodeU(pu);\n }\n // Computes public key from private. By doing scalar multiplication of base point.\n function scalarMultBase(scalar) {\n return scalarMult(scalar, GuBytes);\n }\n // cswap from RFC7748 \"example code\"\n function cswap(swap, x_2, x_3) {\n // dummy = mask(swap) AND (x_2 XOR x_3)\n // Where mask(swap) is the all-1 or all-0 word of the same length as x_2\n // and x_3, computed, e.g., as mask(swap) = 0 - swap.\n const dummy = modP(swap * (x_2 - x_3));\n x_2 = modP(x_2 - dummy); // x_2 = x_2 XOR dummy\n x_3 = modP(x_3 + dummy); // x_3 = x_3 XOR dummy\n return {\n x_2,\n x_3\n };\n }\n /**\n * Montgomery x-only multiplication ladder.\n * @param pointU u coordinate (x) on Montgomery Curve 25519\n * @param scalar by which the point would be multiplied\n * @returns new Point on Montgomery curve\n */\n function montgomeryLadder(u, scalar) {\n (0, utils_ts_1.aInRange)('u', u, _0n, P);\n (0, utils_ts_1.aInRange)('scalar', scalar, minScalar, maxScalar);\n const k = scalar;\n const x_1 = u;\n let x_2 = _1n;\n let z_2 = _0n;\n let x_3 = u;\n let z_3 = _1n;\n let swap = _0n;\n for (let t = BigInt(montgomeryBits - 1); t >= _0n; t--) {\n const k_t = k >> t & _1n;\n swap ^= k_t;\n ({\n x_2,\n x_3\n } = cswap(swap, x_2, x_3));\n ({\n x_2: z_2,\n x_3: z_3\n } = cswap(swap, z_2, z_3));\n swap = k_t;\n const A = x_2 + z_2;\n const AA = modP(A * A);\n const B = x_2 - z_2;\n const BB = modP(B * B);\n const E = AA - BB;\n const C = x_3 + z_3;\n const D = x_3 - z_3;\n const DA = modP(D * A);\n const CB = modP(C * B);\n const dacb = DA + CB;\n const da_cb = DA - CB;\n x_3 = modP(dacb * dacb);\n z_3 = modP(x_1 * modP(da_cb * da_cb));\n x_2 = modP(AA * BB);\n z_2 = modP(E * (AA + modP(a24 * E)));\n }\n ({\n x_2,\n x_3\n } = cswap(swap, x_2, x_3));\n ({\n x_2: z_2,\n x_3: z_3\n } = cswap(swap, z_2, z_3));\n const z2 = powPminus2(z_2); // `Fp.pow(x, P - _2n)` is much slower equivalent\n return modP(x_2 * z2); // Return x_2 * (z_2^(p - 2))\n }\n const lengths = {\n secretKey: fieldLen,\n publicKey: fieldLen,\n seed: fieldLen\n };\n const randomSecretKey = (seed = randomBytes_(fieldLen)) => {\n (0, utils_ts_1.abytes)(seed, lengths.seed);\n return seed;\n };\n function keygen(seed) {\n const secretKey = randomSecretKey(seed);\n return {\n secretKey,\n publicKey: scalarMultBase(secretKey)\n };\n }\n const utils = {\n randomSecretKey,\n randomPrivateKey: randomSecretKey\n };\n return {\n keygen,\n getSharedSecret: (secretKey, publicKey) => scalarMult(secretKey, publicKey),\n getPublicKey: secretKey => scalarMultBase(secretKey),\n scalarMult,\n scalarMultBase,\n utils,\n GuBytes: GuBytes.slice(),\n lengths\n };\n }\n});","lineCount":183,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"montgomery"],[7,20,3,18],[7,23,3,21,"montgomery"],[7,33,3,31],[8,2,4,0],[9,0,5,0],[10,0,6,0],[11,0,7,0],[12,0,8,0],[13,0,9,0],[14,2,10,0],[15,2,11,0],[15,8,11,6,"utils_ts_1"],[15,18,11,16],[15,21,11,19,"require"],[15,28,11,26],[15,29,11,26,"_dependencyMap"],[15,43,11,26],[15,61,11,40],[15,62,11,41],[16,2,12,0],[16,8,12,6,"modular_ts_1"],[16,20,12,18],[16,23,12,21,"require"],[16,30,12,28],[16,31,12,28,"_dependencyMap"],[16,45,12,28],[16,64,12,43],[16,65,12,44],[17,2,13,0],[17,8,13,6,"_0n"],[17,11,13,9],[17,14,13,12,"BigInt"],[17,20,13,18],[17,21,13,19],[17,22,13,20],[17,23,13,21],[18,2,14,0],[18,8,14,6,"_1n"],[18,11,14,9],[18,14,14,12,"BigInt"],[18,20,14,18],[18,21,14,19],[18,22,14,20],[18,23,14,21],[19,2,15,0],[19,8,15,6,"_2n"],[19,11,15,9],[19,14,15,12,"BigInt"],[19,20,15,18],[19,21,15,19],[19,22,15,20],[19,23,15,21],[20,2,16,0],[20,11,16,9,"validateOpts"],[20,23,16,21,"validateOpts"],[20,24,16,22,"curve"],[20,29,16,27],[20,31,16,29],[21,4,17,4],[21,5,17,5],[21,6,17,6],[21,8,17,8,"utils_ts_1"],[21,18,17,18],[21,19,17,19,"_validateObject"],[21,34,17,34],[21,36,17,36,"curve"],[21,41,17,41],[21,43,17,43],[22,6,18,8,"adjustScalarBytes"],[22,23,18,25],[22,25,18,27],[22,35,18,37],[23,6,19,8,"powPminus2"],[23,16,19,18],[23,18,19,20],[24,4,20,4],[24,5,20,5],[24,6,20,6],[25,4,21,4],[25,11,21,11,"Object"],[25,17,21,17],[25,18,21,18,"freeze"],[25,24,21,24],[25,25,21,24,"Object"],[25,31,21,24],[25,32,21,24,"assign"],[25,38,21,24],[25,43,21,30,"curve"],[25,48,21,35],[25,49,21,37],[25,50,21,38],[26,2,22,0],[27,2,23,0],[27,11,23,9,"montgomery"],[27,21,23,19,"montgomery"],[27,22,23,20,"curveDef"],[27,30,23,28],[27,32,23,30],[28,4,24,4],[28,10,24,10,"CURVE"],[28,15,24,15],[28,18,24,18,"validateOpts"],[28,30,24,30],[28,31,24,31,"curveDef"],[28,39,24,39],[28,40,24,40],[29,4,25,4],[29,10,25,10],[30,6,25,12,"P"],[30,7,25,13],[31,6,25,15,"type"],[31,10,25,19],[32,6,25,21,"adjustScalarBytes"],[32,23,25,38],[33,6,25,40,"powPminus2"],[33,16,25,50],[34,6,25,52,"randomBytes"],[34,17,25,63],[34,19,25,65,"rand"],[35,4,25,70],[35,5,25,71],[35,8,25,74,"CURVE"],[35,13,25,79],[36,4,26,4],[36,10,26,10,"is25519"],[36,17,26,17],[36,20,26,20,"type"],[36,24,26,24],[36,29,26,29],[36,37,26,37],[37,4,27,4],[37,8,27,8],[37,9,27,9,"is25519"],[37,16,27,16],[37,20,27,20,"type"],[37,24,27,24],[37,29,27,29],[37,35,27,35],[37,37,28,8],[37,43,28,14],[37,47,28,18,"Error"],[37,52,28,23],[37,53,28,24],[37,67,28,38],[37,68,28,39],[38,4,29,4],[38,10,29,10,"randomBytes_"],[38,22,29,22],[38,25,29,25,"rand"],[38,29,29,29],[38,33,29,33,"utils_ts_1"],[38,43,29,43],[38,44,29,44,"randomBytes"],[38,55,29,55],[39,4,30,4],[39,10,30,10,"montgomeryBits"],[39,24,30,24],[39,27,30,27,"is25519"],[39,34,30,34],[39,37,30,37],[39,40,30,40],[39,43,30,43],[39,46,30,46],[40,4,31,4],[40,10,31,10,"fieldLen"],[40,18,31,18],[40,21,31,21,"is25519"],[40,28,31,28],[40,31,31,31],[40,33,31,33],[40,36,31,36],[40,38,31,38],[41,4,32,4],[41,10,32,10,"Gu"],[41,12,32,12],[41,15,32,15,"is25519"],[41,22,32,22],[41,25,32,25,"BigInt"],[41,31,32,31],[41,32,32,32],[41,33,32,33],[41,34,32,34],[41,37,32,37,"BigInt"],[41,43,32,43],[41,44,32,44],[41,45,32,45],[41,46,32,46],[42,4,33,4],[43,4,34,4],[44,4,35,4],[45,4,36,4],[46,4,37,4],[46,10,37,10,"a24"],[46,13,37,13],[46,16,37,16,"is25519"],[46,23,37,23],[46,26,37,26,"BigInt"],[46,32,37,32],[46,33,37,33],[46,39,37,39],[46,40,37,40],[46,43,37,43,"BigInt"],[46,49,37,49],[46,50,37,50],[46,55,37,55],[46,56,37,56],[47,4,38,4],[48,4,39,4],[49,4,40,4],[50,4,41,4],[50,10,41,10,"minScalar"],[50,19,41,19],[50,22,41,22,"is25519"],[50,29,41,29],[50,32,41,32,"_2n"],[50,35,41,35],[50,39,41,39,"BigInt"],[50,45,41,45],[50,46,41,46],[50,49,41,49],[50,50,41,50],[50,53,41,53,"_2n"],[50,56,41,56],[50,60,41,60,"BigInt"],[50,66,41,66],[50,67,41,67],[50,70,41,70],[50,71,41,71],[51,4,42,4],[51,10,42,10,"maxAdded"],[51,18,42,18],[51,21,42,21,"is25519"],[51,28,42,28],[51,31,43,10,"BigInt"],[51,37,43,16],[51,38,43,17],[51,39,43,18],[51,40,43,19],[51,43,43,22,"_2n"],[51,46,43,25],[51,50,43,29,"BigInt"],[51,56,43,35],[51,57,43,36],[51,60,43,39],[51,61,43,40],[51,64,43,43,"_1n"],[51,67,43,46],[51,70,44,10,"BigInt"],[51,76,44,16],[51,77,44,17],[51,78,44,18],[51,79,44,19],[51,82,44,22,"_2n"],[51,85,44,25],[51,89,44,29,"BigInt"],[51,95,44,35],[51,96,44,36],[51,99,44,39],[51,100,44,40],[51,103,44,43,"_1n"],[51,106,44,46],[52,4,45,4],[52,10,45,10,"maxScalar"],[52,19,45,19],[52,22,45,22,"minScalar"],[52,31,45,31],[52,34,45,34,"maxAdded"],[52,42,45,42],[52,45,45,45,"_1n"],[52,48,45,48],[52,49,45,49],[52,50,45,50],[53,4,46,4],[53,10,46,10,"modP"],[53,14,46,14],[53,17,46,18,"n"],[53,18,46,19],[53,22,46,24],[53,23,46,25],[53,24,46,26],[53,26,46,28,"modular_ts_1"],[53,38,46,40],[53,39,46,41,"mod"],[53,42,46,44],[53,44,46,46,"n"],[53,45,46,47],[53,47,46,49,"P"],[53,48,46,50],[53,49,46,51],[54,4,47,4],[54,10,47,10,"GuBytes"],[54,17,47,17],[54,20,47,20,"encodeU"],[54,27,47,27],[54,28,47,28,"Gu"],[54,30,47,30],[54,31,47,31],[55,4,48,4],[55,13,48,13,"encodeU"],[55,20,48,20,"encodeU"],[55,21,48,21,"u"],[55,22,48,22],[55,24,48,24],[56,6,49,8],[56,13,49,15],[56,14,49,16],[56,15,49,17],[56,17,49,19,"utils_ts_1"],[56,27,49,29],[56,28,49,30,"numberToBytesLE"],[56,43,49,45],[56,45,49,47,"modP"],[56,49,49,51],[56,50,49,52,"u"],[56,51,49,53],[56,52,49,54],[56,54,49,56,"fieldLen"],[56,62,49,64],[56,63,49,65],[57,4,50,4],[58,4,51,4],[58,13,51,13,"decodeU"],[58,20,51,20,"decodeU"],[58,21,51,21,"u"],[58,22,51,22],[58,24,51,24],[59,6,52,8],[59,12,52,14,"_u"],[59,14,52,16],[59,17,52,19],[59,18,52,20],[59,19,52,21],[59,21,52,23,"utils_ts_1"],[59,31,52,33],[59,32,52,34,"ensureBytes"],[59,43,52,45],[59,45,52,47],[59,59,52,61],[59,61,52,63,"u"],[59,62,52,64],[59,64,52,66,"fieldLen"],[59,72,52,74],[59,73,52,75],[60,6,53,8],[61,6,54,8],[62,6,55,8],[62,10,55,12,"is25519"],[62,17,55,19],[62,19,56,12,"_u"],[62,21,56,14],[62,22,56,15],[62,24,56,17],[62,25,56,18],[62,29,56,22],[62,32,56,25],[62,33,56,26],[62,34,56,27],[63,6,57,8],[64,6,58,8],[65,6,59,8],[66,6,60,8],[67,6,61,8],[67,13,61,15,"modP"],[67,17,61,19],[67,18,61,20],[67,19,61,21],[67,20,61,22],[67,22,61,24,"utils_ts_1"],[67,32,61,34],[67,33,61,35,"bytesToNumberLE"],[67,48,61,50],[67,50,61,52,"_u"],[67,52,61,54],[67,53,61,55],[67,54,61,56],[68,4,62,4],[69,4,63,4],[69,13,63,13,"decodeScalar"],[69,25,63,25,"decodeScalar"],[69,26,63,26,"scalar"],[69,32,63,32],[69,34,63,34],[70,6,64,8],[70,13,64,15],[70,14,64,16],[70,15,64,17],[70,17,64,19,"utils_ts_1"],[70,27,64,29],[70,28,64,30,"bytesToNumberLE"],[70,43,64,45],[70,45,64,47,"adjustScalarBytes"],[70,62,64,64],[70,63,64,65],[70,64,64,66],[70,65,64,67],[70,67,64,69,"utils_ts_1"],[70,77,64,79],[70,78,64,80,"ensureBytes"],[70,89,64,91],[70,91,64,93],[70,99,64,101],[70,101,64,103,"scalar"],[70,107,64,109],[70,109,64,111,"fieldLen"],[70,117,64,119],[70,118,64,120],[70,119,64,121],[70,120,64,122],[71,4,65,4],[72,4,66,4],[72,13,66,13,"scalarMult"],[72,23,66,23,"scalarMult"],[72,24,66,24,"scalar"],[72,30,66,30],[72,32,66,32,"u"],[72,33,66,33],[72,35,66,35],[73,6,67,8],[73,12,67,14,"pu"],[73,14,67,16],[73,17,67,19,"montgomeryLadder"],[73,33,67,35],[73,34,67,36,"decodeU"],[73,41,67,43],[73,42,67,44,"u"],[73,43,67,45],[73,44,67,46],[73,46,67,48,"decodeScalar"],[73,58,67,60],[73,59,67,61,"scalar"],[73,65,67,67],[73,66,67,68],[73,67,67,69],[74,6,68,8],[75,6,69,8],[76,6,70,8],[77,6,71,8],[77,10,71,12,"pu"],[77,12,71,14],[77,17,71,19,"_0n"],[77,20,71,22],[77,22,72,12],[77,28,72,18],[77,32,72,22,"Error"],[77,37,72,27],[77,38,72,28],[77,78,72,68],[77,79,72,69],[78,6,73,8],[78,13,73,15,"encodeU"],[78,20,73,22],[78,21,73,23,"pu"],[78,23,73,25],[78,24,73,26],[79,4,74,4],[80,4,75,4],[81,4,76,4],[81,13,76,13,"scalarMultBase"],[81,27,76,27,"scalarMultBase"],[81,28,76,28,"scalar"],[81,34,76,34],[81,36,76,36],[82,6,77,8],[82,13,77,15,"scalarMult"],[82,23,77,25],[82,24,77,26,"scalar"],[82,30,77,32],[82,32,77,34,"GuBytes"],[82,39,77,41],[82,40,77,42],[83,4,78,4],[84,4,79,4],[85,4,80,4],[85,13,80,13,"cswap"],[85,18,80,18,"cswap"],[85,19,80,19,"swap"],[85,23,80,23],[85,25,80,25,"x_2"],[85,28,80,28],[85,30,80,30,"x_3"],[85,33,80,33],[85,35,80,35],[86,6,81,8],[87,6,82,8],[88,6,83,8],[89,6,84,8],[89,12,84,14,"dummy"],[89,17,84,19],[89,20,84,22,"modP"],[89,24,84,26],[89,25,84,27,"swap"],[89,29,84,31],[89,33,84,35,"x_2"],[89,36,84,38],[89,39,84,41,"x_3"],[89,42,84,44],[89,43,84,45],[89,44,84,46],[90,6,85,8,"x_2"],[90,9,85,11],[90,12,85,14,"modP"],[90,16,85,18],[90,17,85,19,"x_2"],[90,20,85,22],[90,23,85,25,"dummy"],[90,28,85,30],[90,29,85,31],[90,30,85,32],[90,31,85,33],[91,6,86,8,"x_3"],[91,9,86,11],[91,12,86,14,"modP"],[91,16,86,18],[91,17,86,19,"x_3"],[91,20,86,22],[91,23,86,25,"dummy"],[91,28,86,30],[91,29,86,31],[91,30,86,32],[91,31,86,33],[92,6,87,8],[92,13,87,15],[93,8,87,17,"x_2"],[93,11,87,20],[94,8,87,22,"x_3"],[95,6,87,26],[95,7,87,27],[96,4,88,4],[97,4,89,4],[98,0,90,0],[99,0,91,0],[100,0,92,0],[101,0,93,0],[102,0,94,0],[103,4,95,4],[103,13,95,13,"montgomeryLadder"],[103,29,95,29,"montgomeryLadder"],[103,30,95,30,"u"],[103,31,95,31],[103,33,95,33,"scalar"],[103,39,95,39],[103,41,95,41],[104,6,96,8],[104,7,96,9],[104,8,96,10],[104,10,96,12,"utils_ts_1"],[104,20,96,22],[104,21,96,23,"aInRange"],[104,29,96,31],[104,31,96,33],[104,34,96,36],[104,36,96,38,"u"],[104,37,96,39],[104,39,96,41,"_0n"],[104,42,96,44],[104,44,96,46,"P"],[104,45,96,47],[104,46,96,48],[105,6,97,8],[105,7,97,9],[105,8,97,10],[105,10,97,12,"utils_ts_1"],[105,20,97,22],[105,21,97,23,"aInRange"],[105,29,97,31],[105,31,97,33],[105,39,97,41],[105,41,97,43,"scalar"],[105,47,97,49],[105,49,97,51,"minScalar"],[105,58,97,60],[105,60,97,62,"maxScalar"],[105,69,97,71],[105,70,97,72],[106,6,98,8],[106,12,98,14,"k"],[106,13,98,15],[106,16,98,18,"scalar"],[106,22,98,24],[107,6,99,8],[107,12,99,14,"x_1"],[107,15,99,17],[107,18,99,20,"u"],[107,19,99,21],[108,6,100,8],[108,10,100,12,"x_2"],[108,13,100,15],[108,16,100,18,"_1n"],[108,19,100,21],[109,6,101,8],[109,10,101,12,"z_2"],[109,13,101,15],[109,16,101,18,"_0n"],[109,19,101,21],[110,6,102,8],[110,10,102,12,"x_3"],[110,13,102,15],[110,16,102,18,"u"],[110,17,102,19],[111,6,103,8],[111,10,103,12,"z_3"],[111,13,103,15],[111,16,103,18,"_1n"],[111,19,103,21],[112,6,104,8],[112,10,104,12,"swap"],[112,14,104,16],[112,17,104,19,"_0n"],[112,20,104,22],[113,6,105,8],[113,11,105,13],[113,15,105,17,"t"],[113,16,105,18],[113,19,105,21,"BigInt"],[113,25,105,27],[113,26,105,28,"montgomeryBits"],[113,40,105,42],[113,43,105,45],[113,44,105,46],[113,45,105,47],[113,47,105,49,"t"],[113,48,105,50],[113,52,105,54,"_0n"],[113,55,105,57],[113,57,105,59,"t"],[113,58,105,60],[113,60,105,62],[113,62,105,64],[114,8,106,12],[114,14,106,18,"k_t"],[114,17,106,21],[114,20,106,25,"k"],[114,21,106,26],[114,25,106,30,"t"],[114,26,106,31],[114,29,106,35,"_1n"],[114,32,106,38],[115,8,107,12,"swap"],[115,12,107,16],[115,16,107,20,"k_t"],[115,19,107,23],[116,8,108,12],[116,9,108,13],[117,10,108,15,"x_2"],[117,13,108,18],[118,10,108,20,"x_3"],[119,8,108,24],[119,9,108,25],[119,12,108,28,"cswap"],[119,17,108,33],[119,18,108,34,"swap"],[119,22,108,38],[119,24,108,40,"x_2"],[119,27,108,43],[119,29,108,45,"x_3"],[119,32,108,48],[119,33,108,49],[120,8,109,12],[120,9,109,13],[121,10,109,15,"x_2"],[121,13,109,18],[121,15,109,20,"z_2"],[121,18,109,23],[122,10,109,25,"x_3"],[122,13,109,28],[122,15,109,30,"z_3"],[123,8,109,34],[123,9,109,35],[123,12,109,38,"cswap"],[123,17,109,43],[123,18,109,44,"swap"],[123,22,109,48],[123,24,109,50,"z_2"],[123,27,109,53],[123,29,109,55,"z_3"],[123,32,109,58],[123,33,109,59],[124,8,110,12,"swap"],[124,12,110,16],[124,15,110,19,"k_t"],[124,18,110,22],[125,8,111,12],[125,14,111,18,"A"],[125,15,111,19],[125,18,111,22,"x_2"],[125,21,111,25],[125,24,111,28,"z_2"],[125,27,111,31],[126,8,112,12],[126,14,112,18,"AA"],[126,16,112,20],[126,19,112,23,"modP"],[126,23,112,27],[126,24,112,28,"A"],[126,25,112,29],[126,28,112,32,"A"],[126,29,112,33],[126,30,112,34],[127,8,113,12],[127,14,113,18,"B"],[127,15,113,19],[127,18,113,22,"x_2"],[127,21,113,25],[127,24,113,28,"z_2"],[127,27,113,31],[128,8,114,12],[128,14,114,18,"BB"],[128,16,114,20],[128,19,114,23,"modP"],[128,23,114,27],[128,24,114,28,"B"],[128,25,114,29],[128,28,114,32,"B"],[128,29,114,33],[128,30,114,34],[129,8,115,12],[129,14,115,18,"E"],[129,15,115,19],[129,18,115,22,"AA"],[129,20,115,24],[129,23,115,27,"BB"],[129,25,115,29],[130,8,116,12],[130,14,116,18,"C"],[130,15,116,19],[130,18,116,22,"x_3"],[130,21,116,25],[130,24,116,28,"z_3"],[130,27,116,31],[131,8,117,12],[131,14,117,18,"D"],[131,15,117,19],[131,18,117,22,"x_3"],[131,21,117,25],[131,24,117,28,"z_3"],[131,27,117,31],[132,8,118,12],[132,14,118,18,"DA"],[132,16,118,20],[132,19,118,23,"modP"],[132,23,118,27],[132,24,118,28,"D"],[132,25,118,29],[132,28,118,32,"A"],[132,29,118,33],[132,30,118,34],[133,8,119,12],[133,14,119,18,"CB"],[133,16,119,20],[133,19,119,23,"modP"],[133,23,119,27],[133,24,119,28,"C"],[133,25,119,29],[133,28,119,32,"B"],[133,29,119,33],[133,30,119,34],[134,8,120,12],[134,14,120,18,"dacb"],[134,18,120,22],[134,21,120,25,"DA"],[134,23,120,27],[134,26,120,30,"CB"],[134,28,120,32],[135,8,121,12],[135,14,121,18,"da_cb"],[135,19,121,23],[135,22,121,26,"DA"],[135,24,121,28],[135,27,121,31,"CB"],[135,29,121,33],[136,8,122,12,"x_3"],[136,11,122,15],[136,14,122,18,"modP"],[136,18,122,22],[136,19,122,23,"dacb"],[136,23,122,27],[136,26,122,30,"dacb"],[136,30,122,34],[136,31,122,35],[137,8,123,12,"z_3"],[137,11,123,15],[137,14,123,18,"modP"],[137,18,123,22],[137,19,123,23,"x_1"],[137,22,123,26],[137,25,123,29,"modP"],[137,29,123,33],[137,30,123,34,"da_cb"],[137,35,123,39],[137,38,123,42,"da_cb"],[137,43,123,47],[137,44,123,48],[137,45,123,49],[138,8,124,12,"x_2"],[138,11,124,15],[138,14,124,18,"modP"],[138,18,124,22],[138,19,124,23,"AA"],[138,21,124,25],[138,24,124,28,"BB"],[138,26,124,30],[138,27,124,31],[139,8,125,12,"z_2"],[139,11,125,15],[139,14,125,18,"modP"],[139,18,125,22],[139,19,125,23,"E"],[139,20,125,24],[139,24,125,28,"AA"],[139,26,125,30],[139,29,125,33,"modP"],[139,33,125,37],[139,34,125,38,"a24"],[139,37,125,41],[139,40,125,44,"E"],[139,41,125,45],[139,42,125,46],[139,43,125,47],[139,44,125,48],[140,6,126,8],[141,6,127,8],[141,7,127,9],[142,8,127,11,"x_2"],[142,11,127,14],[143,8,127,16,"x_3"],[144,6,127,20],[144,7,127,21],[144,10,127,24,"cswap"],[144,15,127,29],[144,16,127,30,"swap"],[144,20,127,34],[144,22,127,36,"x_2"],[144,25,127,39],[144,27,127,41,"x_3"],[144,30,127,44],[144,31,127,45],[145,6,128,8],[145,7,128,9],[146,8,128,11,"x_2"],[146,11,128,14],[146,13,128,16,"z_2"],[146,16,128,19],[147,8,128,21,"x_3"],[147,11,128,24],[147,13,128,26,"z_3"],[148,6,128,30],[148,7,128,31],[148,10,128,34,"cswap"],[148,15,128,39],[148,16,128,40,"swap"],[148,20,128,44],[148,22,128,46,"z_2"],[148,25,128,49],[148,27,128,51,"z_3"],[148,30,128,54],[148,31,128,55],[149,6,129,8],[149,12,129,14,"z2"],[149,14,129,16],[149,17,129,19,"powPminus2"],[149,27,129,29],[149,28,129,30,"z_2"],[149,31,129,33],[149,32,129,34],[149,33,129,35],[149,34,129,36],[150,6,130,8],[150,13,130,15,"modP"],[150,17,130,19],[150,18,130,20,"x_2"],[150,21,130,23],[150,24,130,26,"z2"],[150,26,130,28],[150,27,130,29],[150,28,130,30],[150,29,130,31],[151,4,131,4],[152,4,132,4],[152,10,132,10,"lengths"],[152,17,132,17],[152,20,132,20],[153,6,133,8,"secretKey"],[153,15,133,17],[153,17,133,19,"fieldLen"],[153,25,133,27],[154,6,134,8,"publicKey"],[154,15,134,17],[154,17,134,19,"fieldLen"],[154,25,134,27],[155,6,135,8,"seed"],[155,10,135,12],[155,12,135,14,"fieldLen"],[156,4,136,4],[156,5,136,5],[157,4,137,4],[157,10,137,10,"randomSecretKey"],[157,25,137,25],[157,28,137,28,"randomSecretKey"],[157,29,137,29,"seed"],[157,33,137,33],[157,36,137,36,"randomBytes_"],[157,48,137,48],[157,49,137,49,"fieldLen"],[157,57,137,57],[157,58,137,58],[157,63,137,63],[158,6,138,8],[158,7,138,9],[158,8,138,10],[158,10,138,12,"utils_ts_1"],[158,20,138,22],[158,21,138,23,"abytes"],[158,27,138,29],[158,29,138,31,"seed"],[158,33,138,35],[158,35,138,37,"lengths"],[158,42,138,44],[158,43,138,45,"seed"],[158,47,138,49],[158,48,138,50],[159,6,139,8],[159,13,139,15,"seed"],[159,17,139,19],[160,4,140,4],[160,5,140,5],[161,4,141,4],[161,13,141,13,"keygen"],[161,19,141,19,"keygen"],[161,20,141,20,"seed"],[161,24,141,24],[161,26,141,26],[162,6,142,8],[162,12,142,14,"secretKey"],[162,21,142,23],[162,24,142,26,"randomSecretKey"],[162,39,142,41],[162,40,142,42,"seed"],[162,44,142,46],[162,45,142,47],[163,6,143,8],[163,13,143,15],[164,8,143,17,"secretKey"],[164,17,143,26],[165,8,143,28,"publicKey"],[165,17,143,37],[165,19,143,39,"scalarMultBase"],[165,33,143,53],[165,34,143,54,"secretKey"],[165,43,143,63],[166,6,143,65],[166,7,143,66],[167,4,144,4],[168,4,145,4],[168,10,145,10,"utils"],[168,15,145,15],[168,18,145,18],[169,6,146,8,"randomSecretKey"],[169,21,146,23],[170,6,147,8,"randomPrivateKey"],[170,22,147,24],[170,24,147,26,"randomSecretKey"],[171,4,148,4],[171,5,148,5],[172,4,149,4],[172,11,149,11],[173,6,150,8,"keygen"],[173,12,150,14],[174,6,151,8,"getSharedSecret"],[174,21,151,23],[174,23,151,25,"getSharedSecret"],[174,24,151,26,"secretKey"],[174,33,151,35],[174,35,151,37,"publicKey"],[174,44,151,46],[174,49,151,51,"scalarMult"],[174,59,151,61],[174,60,151,62,"secretKey"],[174,69,151,71],[174,71,151,73,"publicKey"],[174,80,151,82],[174,81,151,83],[175,6,152,8,"getPublicKey"],[175,18,152,20],[175,20,152,23,"secretKey"],[175,29,152,32],[175,33,152,37,"scalarMultBase"],[175,47,152,51],[175,48,152,52,"secretKey"],[175,57,152,61],[175,58,152,62],[176,6,153,8,"scalarMult"],[176,16,153,18],[177,6,154,8,"scalarMultBase"],[177,20,154,22],[178,6,155,8,"utils"],[178,11,155,13],[179,6,156,8,"GuBytes"],[179,13,156,15],[179,15,156,17,"GuBytes"],[179,22,156,24],[179,23,156,25,"slice"],[179,28,156,30],[179,29,156,31],[179,30,156,32],[180,6,157,8,"lengths"],[181,4,158,4],[181,5,158,5],[182,2,159,0],[183,0,159,1],[183,3]],"functionMap":{"names":["<global>","validateOpts","montgomery","modP","encodeU","decodeU","decodeScalar","scalarMult","scalarMultBase","cswap","montgomeryLadder","randomSecretKey","keygen","getSharedSecret","getPublicKey"],"mappings":"AAA;ACe;CDM;AEC;iBCuB,kCD;IEE;KFE;IGC;KHW;IIC;KJE;IKC;KLQ;IME;KNE;IOE;KPQ;IQO;KRoC;4BSM;KTG;IUC;KVG;yBWO,0DX;sBYC,wCZ;CFO"},"hasCjsExports":true},"type":"js/module"}]} |