mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-29 22:21:05 +00:00
1 line
2.7 KiB
Plaintext
1 line
2.7 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","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.sr25519PairFromU8a = sr25519PairFromU8a;\n var _polkadotUtil = require(_dependencyMap[0], \"@polkadot/util\");\n const SEC_LEN = 64;\n const PUB_LEN = 32;\n const TOT_LEN = SEC_LEN + PUB_LEN;\n function sr25519PairFromU8a(full) {\n const fullU8a = (0, _polkadotUtil.u8aToU8a)(full);\n if (fullU8a.length !== TOT_LEN) {\n throw new Error(`Expected keypair with ${TOT_LEN} bytes, found ${fullU8a.length}`);\n }\n return {\n publicKey: fullU8a.slice(SEC_LEN, TOT_LEN),\n secretKey: fullU8a.slice(0, SEC_LEN)\n };\n }\n});","lineCount":22,"map":[[7,2,5,0,"exports"],[7,9,5,0],[7,10,5,0,"sr25519PairFromU8a"],[7,28,5,0],[7,31,5,0,"sr25519PairFromU8a"],[7,49,5,0],[8,2,1,0],[8,6,1,0,"_polkadotUtil"],[8,19,1,0],[8,22,1,0,"require"],[8,29,1,0],[8,30,1,0,"_dependencyMap"],[8,44,1,0],[9,2,2,0],[9,8,2,6,"SEC_LEN"],[9,15,2,13],[9,18,2,16],[9,20,2,18],[10,2,3,0],[10,8,3,6,"PUB_LEN"],[10,15,3,13],[10,18,3,16],[10,20,3,18],[11,2,4,0],[11,8,4,6,"TOT_LEN"],[11,15,4,13],[11,18,4,16,"SEC_LEN"],[11,25,4,23],[11,28,4,26,"PUB_LEN"],[11,35,4,33],[12,2,5,7],[12,11,5,16,"sr25519PairFromU8a"],[12,29,5,34,"sr25519PairFromU8a"],[12,30,5,35,"full"],[12,34,5,39],[12,36,5,41],[13,4,6,4],[13,10,6,10,"fullU8a"],[13,17,6,17],[13,20,6,20],[13,24,6,20,"u8aToU8a"],[13,37,6,28],[13,38,6,28,"u8aToU8a"],[13,46,6,28],[13,48,6,29,"full"],[13,52,6,33],[13,53,6,34],[14,4,7,4],[14,8,7,8,"fullU8a"],[14,15,7,15],[14,16,7,16,"length"],[14,22,7,22],[14,27,7,27,"TOT_LEN"],[14,34,7,34],[14,36,7,36],[15,6,8,8],[15,12,8,14],[15,16,8,18,"Error"],[15,21,8,23],[15,22,8,24],[15,47,8,49,"TOT_LEN"],[15,54,8,56],[15,71,8,73,"fullU8a"],[15,78,8,80],[15,79,8,81,"length"],[15,85,8,87],[15,87,8,89],[15,88,8,90],[16,4,9,4],[17,4,10,4],[17,11,10,11],[18,6,11,8,"publicKey"],[18,15,11,17],[18,17,11,19,"fullU8a"],[18,24,11,26],[18,25,11,27,"slice"],[18,30,11,32],[18,31,11,33,"SEC_LEN"],[18,38,11,40],[18,40,11,42,"TOT_LEN"],[18,47,11,49],[18,48,11,50],[19,6,12,8,"secretKey"],[19,15,12,17],[19,17,12,19,"fullU8a"],[19,24,12,26],[19,25,12,27,"slice"],[19,30,12,32],[19,31,12,33],[19,32,12,34],[19,34,12,36,"SEC_LEN"],[19,41,12,43],[20,4,13,4],[20,5,13,5],[21,2,14,0],[22,0,14,1],[22,3]],"functionMap":{"names":["<global>","sr25519PairFromU8a"],"mappings":"AAA;OCI;CDS"},"hasCjsExports":false},"type":"js/module"}]} |