mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 18:01:02 +00:00
1 line
5.1 KiB
Plaintext
1 line
5.1 KiB
Plaintext
{"dependencies":[{"name":"@noble/curves/secp256k1","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":52,"index":52}}],"key":"csK47Jl21yyHbYXmqNFvld7NybI=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":53},"end":{"line":2,"column":53,"index":106}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"@polkadot/wasm-crypto","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":107},"end":{"line":3,"column":67,"index":174}}],"key":"2/wMT/y5UfnEdVow79e3G5+65jw=","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.secp256k1PairFromSeed = secp256k1PairFromSeed;\n var _nobleCurvesSecp256k = require(_dependencyMap[0], \"@noble/curves/secp256k1\");\n var _polkadotUtil = require(_dependencyMap[1], \"@polkadot/util\");\n var _polkadotWasmCrypto = require(_dependencyMap[2], \"@polkadot/wasm-crypto\");\n /**\n * @name secp256k1PairFromSeed\n * @description Returns a object containing a `publicKey` & `secretKey` generated from the supplied seed.\n */\n function secp256k1PairFromSeed(seed, onlyJs) {\n if (seed.length !== 32) {\n throw new Error('Expected valid 32-byte private key as a seed');\n }\n if (!_polkadotUtil.hasBigInt || !onlyJs && (0, _polkadotWasmCrypto.isReady)()) {\n const full = (0, _polkadotWasmCrypto.secp256k1FromSeed)(seed);\n const publicKey = full.slice(32);\n // There is an issue with the secp256k1 when running in an ASM.js environment where\n // it seems that the lazy static section yields invalid results on the _first_ run.\n // If this happens, fail outright, we cannot allow invalid return values\n // https://github.com/polkadot-js/wasm/issues/307\n if ((0, _polkadotUtil.u8aEmpty)(publicKey)) {\n throw new Error('Invalid publicKey generated from WASM interface');\n }\n return {\n publicKey,\n secretKey: full.slice(0, 32)\n };\n }\n return {\n publicKey: _nobleCurvesSecp256k.secp256k1.getPublicKey(seed, true),\n secretKey: seed\n };\n }\n});","lineCount":39,"map":[[7,2,8,0,"exports"],[7,9,8,0],[7,10,8,0,"secp256k1PairFromSeed"],[7,31,8,0],[7,34,8,0,"secp256k1PairFromSeed"],[7,55,8,0],[8,2,1,0],[8,6,1,0,"_nobleCurvesSecp256k"],[8,26,1,0],[8,29,1,0,"require"],[8,36,1,0],[8,37,1,0,"_dependencyMap"],[8,51,1,0],[9,2,2,0],[9,6,2,0,"_polkadotUtil"],[9,19,2,0],[9,22,2,0,"require"],[9,29,2,0],[9,30,2,0,"_dependencyMap"],[9,44,2,0],[10,2,3,0],[10,6,3,0,"_polkadotWasmCrypto"],[10,25,3,0],[10,28,3,0,"require"],[10,35,3,0],[10,36,3,0,"_dependencyMap"],[10,50,3,0],[11,2,4,0],[12,0,5,0],[13,0,6,0],[14,0,7,0],[15,2,8,7],[15,11,8,16,"secp256k1PairFromSeed"],[15,32,8,37,"secp256k1PairFromSeed"],[15,33,8,38,"seed"],[15,37,8,42],[15,39,8,44,"onlyJs"],[15,45,8,50],[15,47,8,52],[16,4,9,4],[16,8,9,8,"seed"],[16,12,9,12],[16,13,9,13,"length"],[16,19,9,19],[16,24,9,24],[16,26,9,26],[16,28,9,28],[17,6,10,8],[17,12,10,14],[17,16,10,18,"Error"],[17,21,10,23],[17,22,10,24],[17,68,10,70],[17,69,10,71],[18,4,11,4],[19,4,12,4],[19,8,12,8],[19,9,12,9,"hasBigInt"],[19,22,12,18],[19,23,12,18,"hasBigInt"],[19,32,12,18],[19,36,12,23],[19,37,12,24,"onlyJs"],[19,43,12,30],[19,47,12,34],[19,51,12,34,"isReady"],[19,70,12,41],[19,71,12,41,"isReady"],[19,78,12,41],[19,80,12,42],[19,81,12,44],[19,83,12,46],[20,6,13,8],[20,12,13,14,"full"],[20,16,13,18],[20,19,13,21],[20,23,13,21,"secp256k1FromSeed"],[20,42,13,38],[20,43,13,38,"secp256k1FromSeed"],[20,60,13,38],[20,62,13,39,"seed"],[20,66,13,43],[20,67,13,44],[21,6,14,8],[21,12,14,14,"publicKey"],[21,21,14,23],[21,24,14,26,"full"],[21,28,14,30],[21,29,14,31,"slice"],[21,34,14,36],[21,35,14,37],[21,37,14,39],[21,38,14,40],[22,6,15,8],[23,6,16,8],[24,6,17,8],[25,6,18,8],[26,6,19,8],[26,10,19,12],[26,14,19,12,"u8aEmpty"],[26,27,19,20],[26,28,19,20,"u8aEmpty"],[26,36,19,20],[26,38,19,21,"publicKey"],[26,47,19,30],[26,48,19,31],[26,50,19,33],[27,8,20,12],[27,14,20,18],[27,18,20,22,"Error"],[27,23,20,27],[27,24,20,28],[27,73,20,77],[27,74,20,78],[28,6,21,8],[29,6,22,8],[29,13,22,15],[30,8,23,12,"publicKey"],[30,17,23,21],[31,8,24,12,"secretKey"],[31,17,24,21],[31,19,24,23,"full"],[31,23,24,27],[31,24,24,28,"slice"],[31,29,24,33],[31,30,24,34],[31,31,24,35],[31,33,24,37],[31,35,24,39],[32,6,25,8],[32,7,25,9],[33,4,26,4],[34,4,27,4],[34,11,27,11],[35,6,28,8,"publicKey"],[35,15,28,17],[35,17,28,19,"secp256k1"],[35,37,28,28],[35,38,28,28,"secp256k1"],[35,47,28,28],[35,48,28,29,"getPublicKey"],[35,60,28,41],[35,61,28,42,"seed"],[35,65,28,46],[35,67,28,48],[35,71,28,52],[35,72,28,53],[36,6,29,8,"secretKey"],[36,15,29,17],[36,17,29,19,"seed"],[37,4,30,4],[37,5,30,5],[38,2,31,0],[39,0,31,1],[39,3]],"functionMap":{"names":["<global>","secp256k1PairFromSeed"],"mappings":"AAA;OCO;CDuB"},"hasCjsExports":false},"type":"js/module"}]} |