mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 11:11:01 +00:00
1 line
24 KiB
Plaintext
1 line
24 KiB
Plaintext
{"dependencies":[{"name":"../utils.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":8,"column":0,"index":275},"end":{"line":8,"column":125,"index":400}}],"key":"dGswK136diHRCgUa8xpQUn/UMbc=","exportNames":["*"],"imports":1}},{"name":"./modular.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":9,"column":0,"index":401},"end":{"line":9,"column":35,"index":436}}],"key":"9k+FDNYf3zXm2KDVSy5nBT9psY4=","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 var _utilsJs = require(_dependencyMap[0], \"../utils.js\");\n var _modularJs = require(_dependencyMap[1], \"./modular.js\");\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\n const _0n = BigInt(0);\n const _1n = BigInt(1);\n const _2n = BigInt(2);\n function validateOpts(curve) {\n (0, _utilsJs._validateObject)(curve, {\n adjustScalarBytes: 'function',\n powPminus2: 'function'\n });\n return Object.freeze({\n ...curve\n });\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 || _utilsJs.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, _modularJs.mod)(n, P);\n const GuBytes = encodeU(Gu);\n function encodeU(u) {\n return (0, _utilsJs.numberToBytesLE)(modP(u), fieldLen);\n }\n function decodeU(u) {\n const _u = (0, _utilsJs.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, _utilsJs.bytesToNumberLE)(_u));\n }\n function decodeScalar(scalar) {\n return (0, _utilsJs.bytesToNumberLE)(adjustScalarBytes((0, _utilsJs.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, _utilsJs.aInRange)('u', u, _0n, P);\n (0, _utilsJs.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, _utilsJs.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":186,"map":[[7,2,20,0,"exports"],[7,9,20,0],[7,10,20,0,"montgomery"],[7,20,20,0],[7,23,20,0,"montgomery"],[7,33,20,0],[8,2,8,0],[8,6,8,0,"_utilsJs"],[8,14,8,0],[8,17,8,0,"require"],[8,24,8,0],[8,25,8,0,"_dependencyMap"],[8,39,8,0],[9,2,9,0],[9,6,9,0,"_modularJs"],[9,16,9,0],[9,19,9,0,"require"],[9,26,9,0],[9,27,9,0,"_dependencyMap"],[9,41,9,0],[10,2,1,0],[11,0,2,0],[12,0,3,0],[13,0,4,0],[14,0,5,0],[15,0,6,0],[16,2,7,0],[18,2,10,0],[18,8,10,6,"_0n"],[18,11,10,9],[18,14,10,12,"BigInt"],[18,20,10,18],[18,21,10,19],[18,22,10,20],[18,23,10,21],[19,2,11,0],[19,8,11,6,"_1n"],[19,11,11,9],[19,14,11,12,"BigInt"],[19,20,11,18],[19,21,11,19],[19,22,11,20],[19,23,11,21],[20,2,12,0],[20,8,12,6,"_2n"],[20,11,12,9],[20,14,12,12,"BigInt"],[20,20,12,18],[20,21,12,19],[20,22,12,20],[20,23,12,21],[21,2,13,0],[21,11,13,9,"validateOpts"],[21,23,13,21,"validateOpts"],[21,24,13,22,"curve"],[21,29,13,27],[21,31,13,29],[22,4,14,4],[22,8,14,4,"_validateObject"],[22,16,14,19],[22,17,14,19,"_validateObject"],[22,32,14,19],[22,34,14,20,"curve"],[22,39,14,25],[22,41,14,27],[23,6,15,8,"adjustScalarBytes"],[23,23,15,25],[23,25,15,27],[23,35,15,37],[24,6,16,8,"powPminus2"],[24,16,16,18],[24,18,16,20],[25,4,17,4],[25,5,17,5],[25,6,17,6],[26,4,18,4],[26,11,18,11,"Object"],[26,17,18,17],[26,18,18,18,"freeze"],[26,24,18,24],[26,25,18,25],[27,6,18,27],[27,9,18,30,"curve"],[28,4,18,36],[28,5,18,37],[28,6,18,38],[29,2,19,0],[30,2,20,7],[30,11,20,16,"montgomery"],[30,21,20,26,"montgomery"],[30,22,20,27,"curveDef"],[30,30,20,35],[30,32,20,37],[31,4,21,4],[31,10,21,10,"CURVE"],[31,15,21,15],[31,18,21,18,"validateOpts"],[31,30,21,30],[31,31,21,31,"curveDef"],[31,39,21,39],[31,40,21,40],[32,4,22,4],[32,10,22,10],[33,6,22,12,"P"],[33,7,22,13],[34,6,22,15,"type"],[34,10,22,19],[35,6,22,21,"adjustScalarBytes"],[35,23,22,38],[36,6,22,40,"powPminus2"],[36,16,22,50],[37,6,22,52,"randomBytes"],[37,17,22,63],[37,19,22,65,"rand"],[38,4,22,70],[38,5,22,71],[38,8,22,74,"CURVE"],[38,13,22,79],[39,4,23,4],[39,10,23,10,"is25519"],[39,17,23,17],[39,20,23,20,"type"],[39,24,23,24],[39,29,23,29],[39,37,23,37],[40,4,24,4],[40,8,24,8],[40,9,24,9,"is25519"],[40,16,24,16],[40,20,24,20,"type"],[40,24,24,24],[40,29,24,29],[40,35,24,35],[40,37,25,8],[40,43,25,14],[40,47,25,18,"Error"],[40,52,25,23],[40,53,25,24],[40,67,25,38],[40,68,25,39],[41,4,26,4],[41,10,26,10,"randomBytes_"],[41,22,26,22],[41,25,26,25,"rand"],[41,29,26,29],[41,33,26,33,"randomBytes"],[41,41,26,44],[41,42,26,44,"randomBytes"],[41,53,26,44],[42,4,27,4],[42,10,27,10,"montgomeryBits"],[42,24,27,24],[42,27,27,27,"is25519"],[42,34,27,34],[42,37,27,37],[42,40,27,40],[42,43,27,43],[42,46,27,46],[43,4,28,4],[43,10,28,10,"fieldLen"],[43,18,28,18],[43,21,28,21,"is25519"],[43,28,28,28],[43,31,28,31],[43,33,28,33],[43,36,28,36],[43,38,28,38],[44,4,29,4],[44,10,29,10,"Gu"],[44,12,29,12],[44,15,29,15,"is25519"],[44,22,29,22],[44,25,29,25,"BigInt"],[44,31,29,31],[44,32,29,32],[44,33,29,33],[44,34,29,34],[44,37,29,37,"BigInt"],[44,43,29,43],[44,44,29,44],[44,45,29,45],[44,46,29,46],[45,4,30,4],[46,4,31,4],[47,4,32,4],[48,4,33,4],[49,4,34,4],[49,10,34,10,"a24"],[49,13,34,13],[49,16,34,16,"is25519"],[49,23,34,23],[49,26,34,26,"BigInt"],[49,32,34,32],[49,33,34,33],[49,39,34,39],[49,40,34,40],[49,43,34,43,"BigInt"],[49,49,34,49],[49,50,34,50],[49,55,34,55],[49,56,34,56],[50,4,35,4],[51,4,36,4],[52,4,37,4],[53,4,38,4],[53,10,38,10,"minScalar"],[53,19,38,19],[53,22,38,22,"is25519"],[53,29,38,29],[53,32,38,32,"_2n"],[53,35,38,35],[53,39,38,39,"BigInt"],[53,45,38,45],[53,46,38,46],[53,49,38,49],[53,50,38,50],[53,53,38,53,"_2n"],[53,56,38,56],[53,60,38,60,"BigInt"],[53,66,38,66],[53,67,38,67],[53,70,38,70],[53,71,38,71],[54,4,39,4],[54,10,39,10,"maxAdded"],[54,18,39,18],[54,21,39,21,"is25519"],[54,28,39,28],[54,31,40,10,"BigInt"],[54,37,40,16],[54,38,40,17],[54,39,40,18],[54,40,40,19],[54,43,40,22,"_2n"],[54,46,40,25],[54,50,40,29,"BigInt"],[54,56,40,35],[54,57,40,36],[54,60,40,39],[54,61,40,40],[54,64,40,43,"_1n"],[54,67,40,46],[54,70,41,10,"BigInt"],[54,76,41,16],[54,77,41,17],[54,78,41,18],[54,79,41,19],[54,82,41,22,"_2n"],[54,85,41,25],[54,89,41,29,"BigInt"],[54,95,41,35],[54,96,41,36],[54,99,41,39],[54,100,41,40],[54,103,41,43,"_1n"],[54,106,41,46],[55,4,42,4],[55,10,42,10,"maxScalar"],[55,19,42,19],[55,22,42,22,"minScalar"],[55,31,42,31],[55,34,42,34,"maxAdded"],[55,42,42,42],[55,45,42,45,"_1n"],[55,48,42,48],[55,49,42,49],[55,50,42,50],[56,4,43,4],[56,10,43,10,"modP"],[56,14,43,14],[56,17,43,18,"n"],[56,18,43,19],[56,22,43,24],[56,26,43,24,"mod"],[56,36,43,27],[56,37,43,27,"mod"],[56,40,43,27],[56,42,43,28,"n"],[56,43,43,29],[56,45,43,31,"P"],[56,46,43,32],[56,47,43,33],[57,4,44,4],[57,10,44,10,"GuBytes"],[57,17,44,17],[57,20,44,20,"encodeU"],[57,27,44,27],[57,28,44,28,"Gu"],[57,30,44,30],[57,31,44,31],[58,4,45,4],[58,13,45,13,"encodeU"],[58,20,45,20,"encodeU"],[58,21,45,21,"u"],[58,22,45,22],[58,24,45,24],[59,6,46,8],[59,13,46,15],[59,17,46,15,"numberToBytesLE"],[59,25,46,30],[59,26,46,30,"numberToBytesLE"],[59,41,46,30],[59,43,46,31,"modP"],[59,47,46,35],[59,48,46,36,"u"],[59,49,46,37],[59,50,46,38],[59,52,46,40,"fieldLen"],[59,60,46,48],[59,61,46,49],[60,4,47,4],[61,4,48,4],[61,13,48,13,"decodeU"],[61,20,48,20,"decodeU"],[61,21,48,21,"u"],[61,22,48,22],[61,24,48,24],[62,6,49,8],[62,12,49,14,"_u"],[62,14,49,16],[62,17,49,19],[62,21,49,19,"ensureBytes"],[62,29,49,30],[62,30,49,30,"ensureBytes"],[62,41,49,30],[62,43,49,31],[62,57,49,45],[62,59,49,47,"u"],[62,60,49,48],[62,62,49,50,"fieldLen"],[62,70,49,58],[62,71,49,59],[63,6,50,8],[64,6,51,8],[65,6,52,8],[65,10,52,12,"is25519"],[65,17,52,19],[65,19,53,12,"_u"],[65,21,53,14],[65,22,53,15],[65,24,53,17],[65,25,53,18],[65,29,53,22],[65,32,53,25],[65,33,53,26],[65,34,53,27],[66,6,54,8],[67,6,55,8],[68,6,56,8],[69,6,57,8],[70,6,58,8],[70,13,58,15,"modP"],[70,17,58,19],[70,18,58,20],[70,22,58,20,"bytesToNumberLE"],[70,30,58,35],[70,31,58,35,"bytesToNumberLE"],[70,46,58,35],[70,48,58,36,"_u"],[70,50,58,38],[70,51,58,39],[70,52,58,40],[71,4,59,4],[72,4,60,4],[72,13,60,13,"decodeScalar"],[72,25,60,25,"decodeScalar"],[72,26,60,26,"scalar"],[72,32,60,32],[72,34,60,34],[73,6,61,8],[73,13,61,15],[73,17,61,15,"bytesToNumberLE"],[73,25,61,30],[73,26,61,30,"bytesToNumberLE"],[73,41,61,30],[73,43,61,31,"adjustScalarBytes"],[73,60,61,48],[73,61,61,49],[73,65,61,49,"ensureBytes"],[73,73,61,60],[73,74,61,60,"ensureBytes"],[73,85,61,60],[73,87,61,61],[73,95,61,69],[73,97,61,71,"scalar"],[73,103,61,77],[73,105,61,79,"fieldLen"],[73,113,61,87],[73,114,61,88],[73,115,61,89],[73,116,61,90],[74,4,62,4],[75,4,63,4],[75,13,63,13,"scalarMult"],[75,23,63,23,"scalarMult"],[75,24,63,24,"scalar"],[75,30,63,30],[75,32,63,32,"u"],[75,33,63,33],[75,35,63,35],[76,6,64,8],[76,12,64,14,"pu"],[76,14,64,16],[76,17,64,19,"montgomeryLadder"],[76,33,64,35],[76,34,64,36,"decodeU"],[76,41,64,43],[76,42,64,44,"u"],[76,43,64,45],[76,44,64,46],[76,46,64,48,"decodeScalar"],[76,58,64,60],[76,59,64,61,"scalar"],[76,65,64,67],[76,66,64,68],[76,67,64,69],[77,6,65,8],[78,6,66,8],[79,6,67,8],[80,6,68,8],[80,10,68,12,"pu"],[80,12,68,14],[80,17,68,19,"_0n"],[80,20,68,22],[80,22,69,12],[80,28,69,18],[80,32,69,22,"Error"],[80,37,69,27],[80,38,69,28],[80,78,69,68],[80,79,69,69],[81,6,70,8],[81,13,70,15,"encodeU"],[81,20,70,22],[81,21,70,23,"pu"],[81,23,70,25],[81,24,70,26],[82,4,71,4],[83,4,72,4],[84,4,73,4],[84,13,73,13,"scalarMultBase"],[84,27,73,27,"scalarMultBase"],[84,28,73,28,"scalar"],[84,34,73,34],[84,36,73,36],[85,6,74,8],[85,13,74,15,"scalarMult"],[85,23,74,25],[85,24,74,26,"scalar"],[85,30,74,32],[85,32,74,34,"GuBytes"],[85,39,74,41],[85,40,74,42],[86,4,75,4],[87,4,76,4],[88,4,77,4],[88,13,77,13,"cswap"],[88,18,77,18,"cswap"],[88,19,77,19,"swap"],[88,23,77,23],[88,25,77,25,"x_2"],[88,28,77,28],[88,30,77,30,"x_3"],[88,33,77,33],[88,35,77,35],[89,6,78,8],[90,6,79,8],[91,6,80,8],[92,6,81,8],[92,12,81,14,"dummy"],[92,17,81,19],[92,20,81,22,"modP"],[92,24,81,26],[92,25,81,27,"swap"],[92,29,81,31],[92,33,81,35,"x_2"],[92,36,81,38],[92,39,81,41,"x_3"],[92,42,81,44],[92,43,81,45],[92,44,81,46],[93,6,82,8,"x_2"],[93,9,82,11],[93,12,82,14,"modP"],[93,16,82,18],[93,17,82,19,"x_2"],[93,20,82,22],[93,23,82,25,"dummy"],[93,28,82,30],[93,29,82,31],[93,30,82,32],[93,31,82,33],[94,6,83,8,"x_3"],[94,9,83,11],[94,12,83,14,"modP"],[94,16,83,18],[94,17,83,19,"x_3"],[94,20,83,22],[94,23,83,25,"dummy"],[94,28,83,30],[94,29,83,31],[94,30,83,32],[94,31,83,33],[95,6,84,8],[95,13,84,15],[96,8,84,17,"x_2"],[96,11,84,20],[97,8,84,22,"x_3"],[98,6,84,26],[98,7,84,27],[99,4,85,4],[100,4,86,4],[101,0,87,0],[102,0,88,0],[103,0,89,0],[104,0,90,0],[105,0,91,0],[106,4,92,4],[106,13,92,13,"montgomeryLadder"],[106,29,92,29,"montgomeryLadder"],[106,30,92,30,"u"],[106,31,92,31],[106,33,92,33,"scalar"],[106,39,92,39],[106,41,92,41],[107,6,93,8],[107,10,93,8,"aInRange"],[107,18,93,16],[107,19,93,16,"aInRange"],[107,27,93,16],[107,29,93,17],[107,32,93,20],[107,34,93,22,"u"],[107,35,93,23],[107,37,93,25,"_0n"],[107,40,93,28],[107,42,93,30,"P"],[107,43,93,31],[107,44,93,32],[108,6,94,8],[108,10,94,8,"aInRange"],[108,18,94,16],[108,19,94,16,"aInRange"],[108,27,94,16],[108,29,94,17],[108,37,94,25],[108,39,94,27,"scalar"],[108,45,94,33],[108,47,94,35,"minScalar"],[108,56,94,44],[108,58,94,46,"maxScalar"],[108,67,94,55],[108,68,94,56],[109,6,95,8],[109,12,95,14,"k"],[109,13,95,15],[109,16,95,18,"scalar"],[109,22,95,24],[110,6,96,8],[110,12,96,14,"x_1"],[110,15,96,17],[110,18,96,20,"u"],[110,19,96,21],[111,6,97,8],[111,10,97,12,"x_2"],[111,13,97,15],[111,16,97,18,"_1n"],[111,19,97,21],[112,6,98,8],[112,10,98,12,"z_2"],[112,13,98,15],[112,16,98,18,"_0n"],[112,19,98,21],[113,6,99,8],[113,10,99,12,"x_3"],[113,13,99,15],[113,16,99,18,"u"],[113,17,99,19],[114,6,100,8],[114,10,100,12,"z_3"],[114,13,100,15],[114,16,100,18,"_1n"],[114,19,100,21],[115,6,101,8],[115,10,101,12,"swap"],[115,14,101,16],[115,17,101,19,"_0n"],[115,20,101,22],[116,6,102,8],[116,11,102,13],[116,15,102,17,"t"],[116,16,102,18],[116,19,102,21,"BigInt"],[116,25,102,27],[116,26,102,28,"montgomeryBits"],[116,40,102,42],[116,43,102,45],[116,44,102,46],[116,45,102,47],[116,47,102,49,"t"],[116,48,102,50],[116,52,102,54,"_0n"],[116,55,102,57],[116,57,102,59,"t"],[116,58,102,60],[116,60,102,62],[116,62,102,64],[117,8,103,12],[117,14,103,18,"k_t"],[117,17,103,21],[117,20,103,25,"k"],[117,21,103,26],[117,25,103,30,"t"],[117,26,103,31],[117,29,103,35,"_1n"],[117,32,103,38],[118,8,104,12,"swap"],[118,12,104,16],[118,16,104,20,"k_t"],[118,19,104,23],[119,8,105,12],[119,9,105,13],[120,10,105,15,"x_2"],[120,13,105,18],[121,10,105,20,"x_3"],[122,8,105,24],[122,9,105,25],[122,12,105,28,"cswap"],[122,17,105,33],[122,18,105,34,"swap"],[122,22,105,38],[122,24,105,40,"x_2"],[122,27,105,43],[122,29,105,45,"x_3"],[122,32,105,48],[122,33,105,49],[123,8,106,12],[123,9,106,13],[124,10,106,15,"x_2"],[124,13,106,18],[124,15,106,20,"z_2"],[124,18,106,23],[125,10,106,25,"x_3"],[125,13,106,28],[125,15,106,30,"z_3"],[126,8,106,34],[126,9,106,35],[126,12,106,38,"cswap"],[126,17,106,43],[126,18,106,44,"swap"],[126,22,106,48],[126,24,106,50,"z_2"],[126,27,106,53],[126,29,106,55,"z_3"],[126,32,106,58],[126,33,106,59],[127,8,107,12,"swap"],[127,12,107,16],[127,15,107,19,"k_t"],[127,18,107,22],[128,8,108,12],[128,14,108,18,"A"],[128,15,108,19],[128,18,108,22,"x_2"],[128,21,108,25],[128,24,108,28,"z_2"],[128,27,108,31],[129,8,109,12],[129,14,109,18,"AA"],[129,16,109,20],[129,19,109,23,"modP"],[129,23,109,27],[129,24,109,28,"A"],[129,25,109,29],[129,28,109,32,"A"],[129,29,109,33],[129,30,109,34],[130,8,110,12],[130,14,110,18,"B"],[130,15,110,19],[130,18,110,22,"x_2"],[130,21,110,25],[130,24,110,28,"z_2"],[130,27,110,31],[131,8,111,12],[131,14,111,18,"BB"],[131,16,111,20],[131,19,111,23,"modP"],[131,23,111,27],[131,24,111,28,"B"],[131,25,111,29],[131,28,111,32,"B"],[131,29,111,33],[131,30,111,34],[132,8,112,12],[132,14,112,18,"E"],[132,15,112,19],[132,18,112,22,"AA"],[132,20,112,24],[132,23,112,27,"BB"],[132,25,112,29],[133,8,113,12],[133,14,113,18,"C"],[133,15,113,19],[133,18,113,22,"x_3"],[133,21,113,25],[133,24,113,28,"z_3"],[133,27,113,31],[134,8,114,12],[134,14,114,18,"D"],[134,15,114,19],[134,18,114,22,"x_3"],[134,21,114,25],[134,24,114,28,"z_3"],[134,27,114,31],[135,8,115,12],[135,14,115,18,"DA"],[135,16,115,20],[135,19,115,23,"modP"],[135,23,115,27],[135,24,115,28,"D"],[135,25,115,29],[135,28,115,32,"A"],[135,29,115,33],[135,30,115,34],[136,8,116,12],[136,14,116,18,"CB"],[136,16,116,20],[136,19,116,23,"modP"],[136,23,116,27],[136,24,116,28,"C"],[136,25,116,29],[136,28,116,32,"B"],[136,29,116,33],[136,30,116,34],[137,8,117,12],[137,14,117,18,"dacb"],[137,18,117,22],[137,21,117,25,"DA"],[137,23,117,27],[137,26,117,30,"CB"],[137,28,117,32],[138,8,118,12],[138,14,118,18,"da_cb"],[138,19,118,23],[138,22,118,26,"DA"],[138,24,118,28],[138,27,118,31,"CB"],[138,29,118,33],[139,8,119,12,"x_3"],[139,11,119,15],[139,14,119,18,"modP"],[139,18,119,22],[139,19,119,23,"dacb"],[139,23,119,27],[139,26,119,30,"dacb"],[139,30,119,34],[139,31,119,35],[140,8,120,12,"z_3"],[140,11,120,15],[140,14,120,18,"modP"],[140,18,120,22],[140,19,120,23,"x_1"],[140,22,120,26],[140,25,120,29,"modP"],[140,29,120,33],[140,30,120,34,"da_cb"],[140,35,120,39],[140,38,120,42,"da_cb"],[140,43,120,47],[140,44,120,48],[140,45,120,49],[141,8,121,12,"x_2"],[141,11,121,15],[141,14,121,18,"modP"],[141,18,121,22],[141,19,121,23,"AA"],[141,21,121,25],[141,24,121,28,"BB"],[141,26,121,30],[141,27,121,31],[142,8,122,12,"z_2"],[142,11,122,15],[142,14,122,18,"modP"],[142,18,122,22],[142,19,122,23,"E"],[142,20,122,24],[142,24,122,28,"AA"],[142,26,122,30],[142,29,122,33,"modP"],[142,33,122,37],[142,34,122,38,"a24"],[142,37,122,41],[142,40,122,44,"E"],[142,41,122,45],[142,42,122,46],[142,43,122,47],[142,44,122,48],[143,6,123,8],[144,6,124,8],[144,7,124,9],[145,8,124,11,"x_2"],[145,11,124,14],[146,8,124,16,"x_3"],[147,6,124,20],[147,7,124,21],[147,10,124,24,"cswap"],[147,15,124,29],[147,16,124,30,"swap"],[147,20,124,34],[147,22,124,36,"x_2"],[147,25,124,39],[147,27,124,41,"x_3"],[147,30,124,44],[147,31,124,45],[148,6,125,8],[148,7,125,9],[149,8,125,11,"x_2"],[149,11,125,14],[149,13,125,16,"z_2"],[149,16,125,19],[150,8,125,21,"x_3"],[150,11,125,24],[150,13,125,26,"z_3"],[151,6,125,30],[151,7,125,31],[151,10,125,34,"cswap"],[151,15,125,39],[151,16,125,40,"swap"],[151,20,125,44],[151,22,125,46,"z_2"],[151,25,125,49],[151,27,125,51,"z_3"],[151,30,125,54],[151,31,125,55],[152,6,126,8],[152,12,126,14,"z2"],[152,14,126,16],[152,17,126,19,"powPminus2"],[152,27,126,29],[152,28,126,30,"z_2"],[152,31,126,33],[152,32,126,34],[152,33,126,35],[152,34,126,36],[153,6,127,8],[153,13,127,15,"modP"],[153,17,127,19],[153,18,127,20,"x_2"],[153,21,127,23],[153,24,127,26,"z2"],[153,26,127,28],[153,27,127,29],[153,28,127,30],[153,29,127,31],[154,4,128,4],[155,4,129,4],[155,10,129,10,"lengths"],[155,17,129,17],[155,20,129,20],[156,6,130,8,"secretKey"],[156,15,130,17],[156,17,130,19,"fieldLen"],[156,25,130,27],[157,6,131,8,"publicKey"],[157,15,131,17],[157,17,131,19,"fieldLen"],[157,25,131,27],[158,6,132,8,"seed"],[158,10,132,12],[158,12,132,14,"fieldLen"],[159,4,133,4],[159,5,133,5],[160,4,134,4],[160,10,134,10,"randomSecretKey"],[160,25,134,25],[160,28,134,28,"randomSecretKey"],[160,29,134,29,"seed"],[160,33,134,33],[160,36,134,36,"randomBytes_"],[160,48,134,48],[160,49,134,49,"fieldLen"],[160,57,134,57],[160,58,134,58],[160,63,134,63],[161,6,135,8],[161,10,135,8,"abytes"],[161,18,135,14],[161,19,135,14,"abytes"],[161,25,135,14],[161,27,135,15,"seed"],[161,31,135,19],[161,33,135,21,"lengths"],[161,40,135,28],[161,41,135,29,"seed"],[161,45,135,33],[161,46,135,34],[162,6,136,8],[162,13,136,15,"seed"],[162,17,136,19],[163,4,137,4],[163,5,137,5],[164,4,138,4],[164,13,138,13,"keygen"],[164,19,138,19,"keygen"],[164,20,138,20,"seed"],[164,24,138,24],[164,26,138,26],[165,6,139,8],[165,12,139,14,"secretKey"],[165,21,139,23],[165,24,139,26,"randomSecretKey"],[165,39,139,41],[165,40,139,42,"seed"],[165,44,139,46],[165,45,139,47],[166,6,140,8],[166,13,140,15],[167,8,140,17,"secretKey"],[167,17,140,26],[168,8,140,28,"publicKey"],[168,17,140,37],[168,19,140,39,"scalarMultBase"],[168,33,140,53],[168,34,140,54,"secretKey"],[168,43,140,63],[169,6,140,65],[169,7,140,66],[170,4,141,4],[171,4,142,4],[171,10,142,10,"utils"],[171,15,142,15],[171,18,142,18],[172,6,143,8,"randomSecretKey"],[172,21,143,23],[173,6,144,8,"randomPrivateKey"],[173,22,144,24],[173,24,144,26,"randomSecretKey"],[174,4,145,4],[174,5,145,5],[175,4,146,4],[175,11,146,11],[176,6,147,8,"keygen"],[176,12,147,14],[177,6,148,8,"getSharedSecret"],[177,21,148,23],[177,23,148,25,"getSharedSecret"],[177,24,148,26,"secretKey"],[177,33,148,35],[177,35,148,37,"publicKey"],[177,44,148,46],[177,49,148,51,"scalarMult"],[177,59,148,61],[177,60,148,62,"secretKey"],[177,69,148,71],[177,71,148,73,"publicKey"],[177,80,148,82],[177,81,148,83],[178,6,149,8,"getPublicKey"],[178,18,149,20],[178,20,149,23,"secretKey"],[178,29,149,32],[178,33,149,37,"scalarMultBase"],[178,47,149,51],[178,48,149,52,"secretKey"],[178,57,149,61],[178,58,149,62],[179,6,150,8,"scalarMult"],[179,16,150,18],[180,6,151,8,"scalarMultBase"],[180,20,151,22],[181,6,152,8,"utils"],[181,11,152,13],[182,6,153,8,"GuBytes"],[182,13,153,15],[182,15,153,17,"GuBytes"],[182,22,153,24],[182,23,153,25,"slice"],[182,28,153,30],[182,29,153,31],[182,30,153,32],[183,6,154,8,"lengths"],[184,4,155,4],[184,5,155,5],[185,2,156,0],[186,0,156,1],[186,3]],"functionMap":{"names":["<global>","validateOpts","montgomery","modP","encodeU","decodeU","decodeScalar","scalarMult","scalarMultBase","cswap","montgomeryLadder","randomSecretKey","keygen","getSharedSecret","getPublicKey"],"mappings":"AAA;ACY;CDM;OEC;iBCuB,gBD;IEE;KFE;IGC;KHW;IIC;KJE;IKC;KLQ;IME;KNE;IOE;KPQ;IQO;KRoC;4BSM;KTG;IUC;KVG;yBWO,0DX;sBYC,wCZ;CFO"},"hasCjsExports":false},"type":"js/module"}]} |