mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 01:51:03 +00:00
1 line
3.3 KiB
Plaintext
1 line
3.3 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":127},"end":{"line":4,"column":40,"index":152}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"@polkadot/wasm-crypto","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":22,"index":176},"end":{"line":5,"column":54,"index":208}}],"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.sr25519Sign = sr25519Sign;\n const util_1 = require(_dependencyMap[0], \"@polkadot/util\");\n const wasm_crypto_1 = require(_dependencyMap[1], \"@polkadot/wasm-crypto\");\n /**\n * @name sr25519Sign\n * @description Returns message signature of `message`, using the supplied pair\n */\n function sr25519Sign(message, {\n publicKey,\n secretKey\n }) {\n if (publicKey?.length !== 32) {\n throw new Error('Expected a valid publicKey, 32-bytes');\n } else if (secretKey?.length !== 64) {\n throw new Error('Expected a valid secretKey, 64-bytes');\n }\n return (0, wasm_crypto_1.sr25519Sign)(publicKey, secretKey, (0, util_1.u8aToU8a)(message));\n }\n});","lineCount":25,"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,"sr25519Sign"],[7,21,3,19],[7,24,3,22,"sr25519Sign"],[7,35,3,33],[8,2,4,0],[8,8,4,6,"util_1"],[8,14,4,12],[8,17,4,15,"require"],[8,24,4,22],[8,25,4,22,"_dependencyMap"],[8,39,4,22],[8,60,4,39],[8,61,4,40],[9,2,5,0],[9,8,5,6,"wasm_crypto_1"],[9,21,5,19],[9,24,5,22,"require"],[9,31,5,29],[9,32,5,29,"_dependencyMap"],[9,46,5,29],[9,74,5,53],[9,75,5,54],[10,2,6,0],[11,0,7,0],[12,0,8,0],[13,0,9,0],[14,2,10,0],[14,11,10,9,"sr25519Sign"],[14,22,10,20,"sr25519Sign"],[14,23,10,21,"message"],[14,30,10,28],[14,32,10,30],[15,4,10,32,"publicKey"],[15,13,10,41],[16,4,10,43,"secretKey"],[17,2,10,53],[17,3,10,54],[17,5,10,56],[18,4,11,4],[18,8,11,8,"publicKey"],[18,17,11,17],[18,19,11,19,"length"],[18,25,11,25],[18,30,11,30],[18,32,11,32],[18,34,11,34],[19,6,12,8],[19,12,12,14],[19,16,12,18,"Error"],[19,21,12,23],[19,22,12,24],[19,60,12,62],[19,61,12,63],[20,4,13,4],[20,5,13,5],[20,11,14,9],[20,15,14,13,"secretKey"],[20,24,14,22],[20,26,14,24,"length"],[20,32,14,30],[20,37,14,35],[20,39,14,37],[20,41,14,39],[21,6,15,8],[21,12,15,14],[21,16,15,18,"Error"],[21,21,15,23],[21,22,15,24],[21,60,15,62],[21,61,15,63],[22,4,16,4],[23,4,17,4],[23,11,17,11],[23,12,17,12],[23,13,17,13],[23,15,17,15,"wasm_crypto_1"],[23,28,17,28],[23,29,17,29,"sr25519Sign"],[23,40,17,40],[23,42,17,42,"publicKey"],[23,51,17,51],[23,53,17,53,"secretKey"],[23,62,17,62],[23,64,17,64],[23,65,17,65],[23,66,17,66],[23,68,17,68,"util_1"],[23,74,17,74],[23,75,17,75,"u8aToU8a"],[23,83,17,83],[23,85,17,85,"message"],[23,92,17,92],[23,93,17,93],[23,94,17,94],[24,2,18,0],[25,0,18,1],[25,3]],"functionMap":{"names":["<global>","sr25519Sign"],"mappings":"AAA;ACS;CDQ"},"hasCjsExports":true},"type":"js/module"}]} |