mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 16:51:02 +00:00
1 line
7.0 KiB
Plaintext
1 line
7.0 KiB
Plaintext
{"dependencies":[{"name":"@noble/hashes/hmac","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":189},"end":{"line":5,"column":44,"index":218}}],"key":"+pfuosnSoDbGG3uIzZFrd6roQWA=","exportNames":["*"],"imports":1}},{"name":"@noble/hashes/sha256","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":17,"index":237},"end":{"line":6,"column":48,"index":268}}],"key":"EfhdhA5Ga0BuepmWq7uP+xrNUyw=","exportNames":["*"],"imports":1}},{"name":"@noble/hashes/sha512","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":17,"index":287},"end":{"line":7,"column":48,"index":318}}],"key":"y2LIjaB+j81HxRIgOBMx/pbbd3E=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":8,"column":15,"index":335},"end":{"line":8,"column":40,"index":360}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"@polkadot/wasm-crypto","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":9,"column":22,"index":384},"end":{"line":9,"column":54,"index":416}}],"key":"iIJx+ejRpeeDyPIizByl2fy6gpQ=","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.hmacSha512AsU8a = exports.hmacSha256AsU8a = void 0;\n exports.hmacShaAsU8a = hmacShaAsU8a;\n const hmac_1 = require(_dependencyMap[0], \"@noble/hashes/hmac\");\n const sha256_1 = require(_dependencyMap[1], \"@noble/hashes/sha256\");\n const sha512_1 = require(_dependencyMap[2], \"@noble/hashes/sha512\");\n const util_1 = require(_dependencyMap[3], \"@polkadot/util\");\n const wasm_crypto_1 = require(_dependencyMap[4], \"@polkadot/wasm-crypto\");\n const JS_HASH = {\n 256: sha256_1.sha256,\n 512: sha512_1.sha512\n };\n const WA_MHAC = {\n 256: wasm_crypto_1.hmacSha256,\n 512: wasm_crypto_1.hmacSha512\n };\n function createSha(bitLength) {\n return (key, data, onlyJs) => hmacShaAsU8a(key, data, bitLength, onlyJs);\n }\n /**\n * @name hmacShaAsU8a\n * @description creates a Hmac Sha (256/512) Uint8Array from the key & data\n */\n function hmacShaAsU8a(key, data, bitLength = 256, onlyJs) {\n const u8aKey = (0, util_1.u8aToU8a)(key);\n return !util_1.hasBigInt || !onlyJs && (0, wasm_crypto_1.isReady)() ? WA_MHAC[bitLength](u8aKey, data) : (0, hmac_1.hmac)(JS_HASH[bitLength], u8aKey, data);\n }\n /**\n * @name hmacSha256AsU8a\n * @description creates a Hmac Sha256 Uint8Array from the key & data\n */\n exports.hmacSha256AsU8a = createSha(256);\n /**\n * @name hmacSha512AsU8a\n * @description creates a Hmac Sha512 Uint8Array from the key & data\n */\n exports.hmacSha512AsU8a = createSha(512);\n});","lineCount":43,"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,"hmacSha512AsU8a"],[7,25,3,23],[7,28,3,26,"exports"],[7,35,3,33],[7,36,3,34,"hmacSha256AsU8a"],[7,51,3,49],[7,54,3,52],[7,59,3,57],[7,60,3,58],[8,2,4,0,"exports"],[8,9,4,7],[8,10,4,8,"hmacShaAsU8a"],[8,22,4,20],[8,25,4,23,"hmacShaAsU8a"],[8,37,4,35],[9,2,5,0],[9,8,5,6,"hmac_1"],[9,14,5,12],[9,17,5,15,"require"],[9,24,5,22],[9,25,5,22,"_dependencyMap"],[9,39,5,22],[9,64,5,43],[9,65,5,44],[10,2,6,0],[10,8,6,6,"sha256_1"],[10,16,6,14],[10,19,6,17,"require"],[10,26,6,24],[10,27,6,24,"_dependencyMap"],[10,41,6,24],[10,68,6,47],[10,69,6,48],[11,2,7,0],[11,8,7,6,"sha512_1"],[11,16,7,14],[11,19,7,17,"require"],[11,26,7,24],[11,27,7,24,"_dependencyMap"],[11,41,7,24],[11,68,7,47],[11,69,7,48],[12,2,8,0],[12,8,8,6,"util_1"],[12,14,8,12],[12,17,8,15,"require"],[12,24,8,22],[12,25,8,22,"_dependencyMap"],[12,39,8,22],[12,60,8,39],[12,61,8,40],[13,2,9,0],[13,8,9,6,"wasm_crypto_1"],[13,21,9,19],[13,24,9,22,"require"],[13,31,9,29],[13,32,9,29,"_dependencyMap"],[13,46,9,29],[13,74,9,53],[13,75,9,54],[14,2,10,0],[14,8,10,6,"JS_HASH"],[14,15,10,13],[14,18,10,16],[15,4,11,4],[15,7,11,7],[15,9,11,9,"sha256_1"],[15,17,11,17],[15,18,11,18,"sha256"],[15,24,11,24],[16,4,12,4],[16,7,12,7],[16,9,12,9,"sha512_1"],[16,17,12,17],[16,18,12,18,"sha512"],[17,2,13,0],[17,3,13,1],[18,2,14,0],[18,8,14,6,"WA_MHAC"],[18,15,14,13],[18,18,14,16],[19,4,15,4],[19,7,15,7],[19,9,15,9,"wasm_crypto_1"],[19,22,15,22],[19,23,15,23,"hmacSha256"],[19,33,15,33],[20,4,16,4],[20,7,16,7],[20,9,16,9,"wasm_crypto_1"],[20,22,16,22],[20,23,16,23,"hmacSha512"],[21,2,17,0],[21,3,17,1],[22,2,18,0],[22,11,18,9,"createSha"],[22,20,18,18,"createSha"],[22,21,18,19,"bitLength"],[22,30,18,28],[22,32,18,30],[23,4,19,4],[23,11,19,11],[23,12,19,12,"key"],[23,15,19,15],[23,17,19,17,"data"],[23,21,19,21],[23,23,19,23,"onlyJs"],[23,29,19,29],[23,34,19,34,"hmacShaAsU8a"],[23,46,19,46],[23,47,19,47,"key"],[23,50,19,50],[23,52,19,52,"data"],[23,56,19,56],[23,58,19,58,"bitLength"],[23,67,19,67],[23,69,19,69,"onlyJs"],[23,75,19,75],[23,76,19,76],[24,2,20,0],[25,2,21,0],[26,0,22,0],[27,0,23,0],[28,0,24,0],[29,2,25,0],[29,11,25,9,"hmacShaAsU8a"],[29,23,25,21,"hmacShaAsU8a"],[29,24,25,22,"key"],[29,27,25,25],[29,29,25,27,"data"],[29,33,25,31],[29,35,25,33,"bitLength"],[29,44,25,42],[29,47,25,45],[29,50,25,48],[29,52,25,50,"onlyJs"],[29,58,25,56],[29,60,25,58],[30,4,26,4],[30,10,26,10,"u8aKey"],[30,16,26,16],[30,19,26,19],[30,20,26,20],[30,21,26,21],[30,23,26,23,"util_1"],[30,29,26,29],[30,30,26,30,"u8aToU8a"],[30,38,26,38],[30,40,26,40,"key"],[30,43,26,43],[30,44,26,44],[31,4,27,4],[31,11,27,11],[31,12,27,12,"util_1"],[31,18,27,18],[31,19,27,19,"hasBigInt"],[31,28,27,28],[31,32,27,33],[31,33,27,34,"onlyJs"],[31,39,27,40],[31,43,27,44],[31,44,27,45],[31,45,27,46],[31,47,27,48,"wasm_crypto_1"],[31,60,27,61],[31,61,27,62,"isReady"],[31,68,27,69],[31,70,27,71],[31,71,27,73],[31,74,28,10,"WA_MHAC"],[31,81,28,17],[31,82,28,18,"bitLength"],[31,91,28,27],[31,92,28,28],[31,93,28,29,"u8aKey"],[31,99,28,35],[31,101,28,37,"data"],[31,105,28,41],[31,106,28,42],[31,109,29,10],[31,110,29,11],[31,111,29,12],[31,113,29,14,"hmac_1"],[31,119,29,20],[31,120,29,21,"hmac"],[31,124,29,25],[31,126,29,27,"JS_HASH"],[31,133,29,34],[31,134,29,35,"bitLength"],[31,143,29,44],[31,144,29,45],[31,146,29,47,"u8aKey"],[31,152,29,53],[31,154,29,55,"data"],[31,158,29,59],[31,159,29,60],[32,2,30,0],[33,2,31,0],[34,0,32,0],[35,0,33,0],[36,0,34,0],[37,2,35,0,"exports"],[37,9,35,7],[37,10,35,8,"hmacSha256AsU8a"],[37,25,35,23],[37,28,35,26,"createSha"],[37,37,35,35],[37,38,35,36],[37,41,35,39],[37,42,35,40],[38,2,36,0],[39,0,37,0],[40,0,38,0],[41,0,39,0],[42,2,40,0,"exports"],[42,9,40,7],[42,10,40,8,"hmacSha512AsU8a"],[42,25,40,23],[42,28,40,26,"createSha"],[42,37,40,35],[42,38,40,36],[42,41,40,39],[42,42,40,40],[43,0,40,41],[43,3]],"functionMap":{"names":["<global>","createSha","<anonymous>","hmacShaAsU8a"],"mappings":"AAA;ACiB;WCC,iED;CDC;AGK;CHK"},"hasCjsExports":true},"type":"js/module"}]} |