Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/3f/274885460fbd6c715f1e828849e419358aca139f0853101f69d11efab51bc235e52dca
T
2025-10-24 02:48:32 +00:00

1 line
6.0 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":63,"index":116}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"@polkadot/wasm-crypto","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":117},"end":{"line":3,"column":71,"index":188}}],"key":"2/wMT/y5UfnEdVow79e3G5+65jw=","exportNames":["*"],"imports":1}},{"name":"../bn.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":4,"column":0,"index":189},"end":{"line":4,"column":42,"index":231}}],"key":"XiEl6l/fr4LlRM707ehJh41iiMk=","exportNames":["*"],"imports":1}},{"name":"./hasher.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":5,"column":0,"index":232},"end":{"line":5,"column":37,"index":269}}],"key":"7SAvoGJHY/iMmQn4V6oafUxmm6c=","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 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 var _bnJs = require(_dependencyMap[3], \"../bn.js\");\n var _hasherJs = 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, _hasherJs.hasher)(hashType, message, onlyJs);\n if (!_polkadotUtil.hasBigInt || !onlyJs && (0, _polkadotWasmCrypto.isReady)()) {\n return (0, _polkadotWasmCrypto.secp256k1Sign)(data, secretKey);\n }\n const signature = _nobleCurvesSecp256k.secp256k1.sign(data, secretKey, {\n lowS: true\n });\n return (0, _polkadotUtil.u8aConcat)((0, _polkadotUtil.bnToU8a)(signature.r, _bnJs.BN_BE_256_OPTS), (0, _polkadotUtil.bnToU8a)(signature.s, _bnJs.BN_BE_256_OPTS), new Uint8Array([signature.recovery || 0]));\n }\n});","lineCount":32,"map":[[7,2,10,0,"exports"],[7,9,10,0],[7,10,10,0,"secp256k1Sign"],[7,23,10,0],[7,26,10,0,"secp256k1Sign"],[7,39,10,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],[11,6,4,0,"_bnJs"],[11,11,4,0],[11,14,4,0,"require"],[11,21,4,0],[11,22,4,0,"_dependencyMap"],[11,36,4,0],[12,2,5,0],[12,6,5,0,"_hasherJs"],[12,15,5,0],[12,18,5,0,"require"],[12,25,5,0],[12,26,5,0,"_dependencyMap"],[12,40,5,0],[13,2,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[17,2,10,7],[17,11,10,16,"secp256k1Sign"],[17,24,10,29,"secp256k1Sign"],[17,25,10,30,"message"],[17,32,10,37],[17,34,10,39],[18,4,10,41,"secretKey"],[19,2,10,51],[19,3,10,52],[19,5,10,54,"hashType"],[19,13,10,62],[19,16,10,65],[19,24,10,73],[19,26,10,75,"onlyJs"],[19,32,10,81],[19,34,10,83],[20,4,11,4],[20,8,11,8,"secretKey"],[20,17,11,17],[20,19,11,19,"length"],[20,25,11,25],[20,30,11,30],[20,32,11,32],[20,34,11,34],[21,6,12,8],[21,12,12,14],[21,16,12,18,"Error"],[21,21,12,23],[21,22,12,24],[21,68,12,70],[21,69,12,71],[22,4,13,4],[23,4,14,4],[23,10,14,10,"data"],[23,14,14,14],[23,17,14,17],[23,21,14,17,"hasher"],[23,30,14,23],[23,31,14,23,"hasher"],[23,37,14,23],[23,39,14,24,"hashType"],[23,47,14,32],[23,49,14,34,"message"],[23,56,14,41],[23,58,14,43,"onlyJs"],[23,64,14,49],[23,65,14,50],[24,4,15,4],[24,8,15,8],[24,9,15,9,"hasBigInt"],[24,22,15,18],[24,23,15,18,"hasBigInt"],[24,32,15,18],[24,36,15,23],[24,37,15,24,"onlyJs"],[24,43,15,30],[24,47,15,34],[24,51,15,34,"isReady"],[24,70,15,41],[24,71,15,41,"isReady"],[24,78,15,41],[24,80,15,42],[24,81,15,44],[24,83,15,46],[25,6,16,8],[25,13,16,15],[25,17,16,15,"wasm"],[25,36,16,19],[25,37,16,19,"secp256k1Sign"],[25,50,16,19],[25,52,16,20,"data"],[25,56,16,24],[25,58,16,26,"secretKey"],[25,67,16,35],[25,68,16,36],[26,4,17,4],[27,4,18,4],[27,10,18,10,"signature"],[27,19,18,19],[27,22,18,22,"secp256k1"],[27,42,18,31],[27,43,18,31,"secp256k1"],[27,52,18,31],[27,53,18,32,"sign"],[27,57,18,36],[27,58,18,37,"data"],[27,62,18,41],[27,64,18,43,"secretKey"],[27,73,18,52],[27,75,18,54],[28,6,18,56,"lowS"],[28,10,18,60],[28,12,18,62],[29,4,18,67],[29,5,18,68],[29,6,18,69],[30,4,19,4],[30,11,19,11],[30,15,19,11,"u8aConcat"],[30,28,19,20],[30,29,19,20,"u8aConcat"],[30,38,19,20],[30,40,19,21],[30,44,19,21,"bnToU8a"],[30,57,19,28],[30,58,19,28,"bnToU8a"],[30,65,19,28],[30,67,19,29,"signature"],[30,76,19,38],[30,77,19,39,"r"],[30,78,19,40],[30,80,19,42,"BN_BE_256_OPTS"],[30,85,19,56],[30,86,19,56,"BN_BE_256_OPTS"],[30,100,19,56],[30,101,19,57],[30,103,19,59],[30,107,19,59,"bnToU8a"],[30,120,19,66],[30,121,19,66,"bnToU8a"],[30,128,19,66],[30,130,19,67,"signature"],[30,139,19,76],[30,140,19,77,"s"],[30,141,19,78],[30,143,19,80,"BN_BE_256_OPTS"],[30,148,19,94],[30,149,19,94,"BN_BE_256_OPTS"],[30,163,19,94],[30,164,19,95],[30,166,19,97],[30,170,19,101,"Uint8Array"],[30,180,19,111],[30,181,19,112],[30,182,19,113,"signature"],[30,191,19,122],[30,192,19,123,"recovery"],[30,200,19,131],[30,204,19,135],[30,205,19,136],[30,206,19,137],[30,207,19,138],[30,208,19,139],[31,2,20,0],[32,0,20,1],[32,3]],"functionMap":{"names":["<global>","secp256k1Sign"],"mappings":"AAA;OCS;CDU"},"hasCjsExports":false},"type":"js/module"}]}