mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 13:31:00 +00:00
1 line
6.5 KiB
Plaintext
1 line
6.5 KiB
Plaintext
{"dependencies":[{"name":"@noble/curves/secp256k1","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":20,"index":136},"end":{"line":4,"column":54,"index":170}}],"key":"a7SOGcIa2bJLVocZy/oc6lQDQoQ=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":187},"end":{"line":5,"column":40,"index":212}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"@polkadot/wasm-crypto","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":22,"index":236},"end":{"line":6,"column":54,"index":268}}],"key":"iIJx+ejRpeeDyPIizByl2fy6gpQ=","exportNames":["*"],"imports":1}},{"name":"../bn.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":16,"index":286},"end":{"line":7,"column":35,"index":305}}],"key":"olVWCV30ILKFQRk4D5NiwZc8IQ4=","exportNames":["*"],"imports":1}},{"name":"./hasher.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":8,"column":20,"index":327},"end":{"line":8,"column":42,"index":349}}],"key":"S+rukV+6coFPIbzN4kC8Ag71enI=","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.secp256k1Sign = secp256k1Sign;\n const secp256k1_1 = require(_dependencyMap[0], \"@noble/curves/secp256k1\");\n const util_1 = require(_dependencyMap[1], \"@polkadot/util\");\n const wasm_crypto_1 = require(_dependencyMap[2], \"@polkadot/wasm-crypto\");\n const bn_js_1 = require(_dependencyMap[3], \"../bn.js\");\n const hasher_js_1 = require(_dependencyMap[4], \"./hasher.js\");\n /**\n * @name secp256k1Sign\n * @description Returns message signature of `message`, using the supplied pair\n */\n function secp256k1Sign(message, {\n secretKey\n }, hashType = 'blake2', onlyJs) {\n if (secretKey?.length !== 32) {\n throw new Error('Expected valid secp256k1 secretKey, 32-bytes');\n }\n const data = (0, hasher_js_1.hasher)(hashType, message, onlyJs);\n if (!util_1.hasBigInt || !onlyJs && (0, wasm_crypto_1.isReady)()) {\n return (0, wasm_crypto_1.secp256k1Sign)(data, secretKey);\n }\n const signature = secp256k1_1.secp256k1.sign(data, secretKey, {\n lowS: true\n });\n return (0, util_1.u8aConcat)((0, util_1.bnToU8a)(signature.r, bn_js_1.BN_BE_256_OPTS), (0, util_1.bnToU8a)(signature.s, bn_js_1.BN_BE_256_OPTS), new Uint8Array([signature.recovery || 0]));\n }\n});","lineCount":32,"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,"secp256k1Sign"],[7,23,3,21],[7,26,3,24,"secp256k1Sign"],[7,39,3,37],[8,2,4,0],[8,8,4,6,"secp256k1_1"],[8,19,4,17],[8,22,4,20,"require"],[8,29,4,27],[8,30,4,27,"_dependencyMap"],[8,44,4,27],[8,74,4,53],[8,75,4,54],[9,2,5,0],[9,8,5,6,"util_1"],[9,14,5,12],[9,17,5,15,"require"],[9,24,5,22],[9,25,5,22,"_dependencyMap"],[9,39,5,22],[9,60,5,39],[9,61,5,40],[10,2,6,0],[10,8,6,6,"wasm_crypto_1"],[10,21,6,19],[10,24,6,22,"require"],[10,31,6,29],[10,32,6,29,"_dependencyMap"],[10,46,6,29],[10,74,6,53],[10,75,6,54],[11,2,7,0],[11,8,7,6,"bn_js_1"],[11,15,7,13],[11,18,7,16,"require"],[11,25,7,23],[11,26,7,23,"_dependencyMap"],[11,40,7,23],[11,55,7,34],[11,56,7,35],[12,2,8,0],[12,8,8,6,"hasher_js_1"],[12,19,8,17],[12,22,8,20,"require"],[12,29,8,27],[12,30,8,27,"_dependencyMap"],[12,44,8,27],[12,62,8,41],[12,63,8,42],[13,2,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,2,13,0],[17,11,13,9,"secp256k1Sign"],[17,24,13,22,"secp256k1Sign"],[17,25,13,23,"message"],[17,32,13,30],[17,34,13,32],[18,4,13,34,"secretKey"],[19,2,13,44],[19,3,13,45],[19,5,13,47,"hashType"],[19,13,13,55],[19,16,13,58],[19,24,13,66],[19,26,13,68,"onlyJs"],[19,32,13,74],[19,34,13,76],[20,4,14,4],[20,8,14,8,"secretKey"],[20,17,14,17],[20,19,14,19,"length"],[20,25,14,25],[20,30,14,30],[20,32,14,32],[20,34,14,34],[21,6,15,8],[21,12,15,14],[21,16,15,18,"Error"],[21,21,15,23],[21,22,15,24],[21,68,15,70],[21,69,15,71],[22,4,16,4],[23,4,17,4],[23,10,17,10,"data"],[23,14,17,14],[23,17,17,17],[23,18,17,18],[23,19,17,19],[23,21,17,21,"hasher_js_1"],[23,32,17,32],[23,33,17,33,"hasher"],[23,39,17,39],[23,41,17,41,"hashType"],[23,49,17,49],[23,51,17,51,"message"],[23,58,17,58],[23,60,17,60,"onlyJs"],[23,66,17,66],[23,67,17,67],[24,4,18,4],[24,8,18,8],[24,9,18,9,"util_1"],[24,15,18,15],[24,16,18,16,"hasBigInt"],[24,25,18,25],[24,29,18,30],[24,30,18,31,"onlyJs"],[24,36,18,37],[24,40,18,41],[24,41,18,42],[24,42,18,43],[24,44,18,45,"wasm_crypto_1"],[24,57,18,58],[24,58,18,59,"isReady"],[24,65,18,66],[24,67,18,68],[24,68,18,70],[24,70,18,72],[25,6,19,8],[25,13,19,15],[25,14,19,16],[25,15,19,17],[25,17,19,19,"wasm_crypto_1"],[25,30,19,32],[25,31,19,33,"secp256k1Sign"],[25,44,19,46],[25,46,19,48,"data"],[25,50,19,52],[25,52,19,54,"secretKey"],[25,61,19,63],[25,62,19,64],[26,4,20,4],[27,4,21,4],[27,10,21,10,"signature"],[27,19,21,19],[27,22,21,22,"secp256k1_1"],[27,33,21,33],[27,34,21,34,"secp256k1"],[27,43,21,43],[27,44,21,44,"sign"],[27,48,21,48],[27,49,21,49,"data"],[27,53,21,53],[27,55,21,55,"secretKey"],[27,64,21,64],[27,66,21,66],[28,6,21,68,"lowS"],[28,10,21,72],[28,12,21,74],[29,4,21,79],[29,5,21,80],[29,6,21,81],[30,4,22,4],[30,11,22,11],[30,12,22,12],[30,13,22,13],[30,15,22,15,"util_1"],[30,21,22,21],[30,22,22,22,"u8aConcat"],[30,31,22,31],[30,33,22,33],[30,34,22,34],[30,35,22,35],[30,37,22,37,"util_1"],[30,43,22,43],[30,44,22,44,"bnToU8a"],[30,51,22,51],[30,53,22,53,"signature"],[30,62,22,62],[30,63,22,63,"r"],[30,64,22,64],[30,66,22,66,"bn_js_1"],[30,73,22,73],[30,74,22,74,"BN_BE_256_OPTS"],[30,88,22,88],[30,89,22,89],[30,91,22,91],[30,92,22,92],[30,93,22,93],[30,95,22,95,"util_1"],[30,101,22,101],[30,102,22,102,"bnToU8a"],[30,109,22,109],[30,111,22,111,"signature"],[30,120,22,120],[30,121,22,121,"s"],[30,122,22,122],[30,124,22,124,"bn_js_1"],[30,131,22,131],[30,132,22,132,"BN_BE_256_OPTS"],[30,146,22,146],[30,147,22,147],[30,149,22,149],[30,153,22,153,"Uint8Array"],[30,163,22,163],[30,164,22,164],[30,165,22,165,"signature"],[30,174,22,174],[30,175,22,175,"recovery"],[30,183,22,183],[30,187,22,187],[30,188,22,188],[30,189,22,189],[30,190,22,190],[30,191,22,191],[31,2,23,0],[32,0,23,1],[32,3]],"functionMap":{"names":["<global>","secp256k1Sign"],"mappings":"AAA;ACY;CDU"},"hasCjsExports":true},"type":"js/module"}]} |