mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 19:11:02 +00:00
1 line
35 KiB
Plaintext
1 line
35 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":125},"end":{"line":4,"column":40,"index":150}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util-crypto","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":22,"index":174},"end":{"line":5,"column":54,"index":206}}],"key":"ZJJnwX+B+oj5JQmnkWFMF+4Lj2M=","exportNames":["*"],"imports":1}},{"name":"./decode.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":20,"index":228},"end":{"line":6,"column":42,"index":250}}],"key":"NjDZuONZNxCfNbNOGpYxcMs1w6o=","exportNames":["*"],"imports":1}},{"name":"./encode.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":20,"index":272},"end":{"line":7,"column":42,"index":294}}],"key":"6FztT/DfTVBhkTe+9OSAQ47EebM=","exportNames":["*"],"imports":1}},{"name":"./toJson.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":8,"column":20,"index":316},"end":{"line":8,"column":42,"index":338}}],"key":"QIuXZ7hwIx6zzuwYLg1TCEdtUgo=","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.createPair = createPair;\n var util_1 = require(_dependencyMap[0], \"@polkadot/util\");\n var util_crypto_1 = require(_dependencyMap[1], \"@polkadot/util-crypto\");\n var decode_js_1 = require(_dependencyMap[2], \"./decode.js\");\n var encode_js_1 = require(_dependencyMap[3], \"./encode.js\");\n var toJson_js_1 = require(_dependencyMap[4], \"./toJson.js\");\n var SIG_TYPE_NONE = new Uint8Array();\n var TYPE_FROM_SEED = {\n ecdsa: util_crypto_1.secp256k1PairFromSeed,\n ed25519: util_crypto_1.ed25519PairFromSeed,\n ethereum: util_crypto_1.secp256k1PairFromSeed,\n sr25519: util_crypto_1.sr25519PairFromSeed\n };\n var TYPE_PREFIX = {\n ecdsa: new Uint8Array([2]),\n ed25519: new Uint8Array([0]),\n ethereum: new Uint8Array([2]),\n sr25519: new Uint8Array([1])\n };\n var TYPE_SIGNATURE = {\n ecdsa: (m, p) => (0, util_crypto_1.secp256k1Sign)(m, p, 'blake2'),\n ed25519: util_crypto_1.ed25519Sign,\n ethereum: (m, p) => (0, util_crypto_1.secp256k1Sign)(m, p, 'keccak'),\n sr25519: util_crypto_1.sr25519Sign\n };\n var TYPE_ADDRESS = {\n ecdsa: p => p.length > 32 ? (0, util_crypto_1.blake2AsU8a)(p) : p,\n ed25519: p => p,\n ethereum: p => p.length === 20 ? p : (0, util_crypto_1.keccakAsU8a)((0, util_crypto_1.secp256k1Expand)(p)),\n sr25519: p => p\n };\n function isLocked(secretKey) {\n return !secretKey || (0, util_1.u8aEmpty)(secretKey);\n }\n function vrfHash(proof, context, extra) {\n return (0, util_crypto_1.blake2AsU8a)((0, util_1.u8aConcat)(context || '', extra || '', proof));\n }\n /**\n * @name createPair\n * @summary Creates a keyring pair object\n * @description Creates a keyring pair object with provided account public key, metadata, and encoded arguments.\n * The keyring pair stores the account state including the encoded address and associated metadata.\n *\n * It has properties whose values are functions that may be called to perform account actions:\n *\n * - `address` function retrieves the address associated with the account.\n * - `decodedPkcs8` function is called with the account passphrase and account encoded public key.\n * It decodes the encoded public key using the passphrase provided to obtain the decoded account public key\n * and associated secret key that are then available in memory, and changes the account address stored in the\n * state of the pair to correspond to the address of the decoded public key.\n * - `encodePkcs8` function when provided with the correct passphrase associated with the account pair\n * and when the secret key is in memory (when the account pair is not locked) it returns an encoded\n * public key of the account.\n * - `meta` is the metadata that is stored in the state of the pair, either when it was originally\n * created or set via `setMeta`.\n * - `publicKey` returns the public key stored in memory for the pair.\n * - `sign` may be used to return a signature by signing a provided message with the secret\n * key (if it is in memory) using Nacl.\n * - `toJson` calls another `toJson` function and provides the state of the pair,\n * it generates arguments to be passed to the other `toJson` function including an encoded public key of the account\n * that it generates using the secret key from memory (if it has been made available in memory)\n * and the optionally provided passphrase argument. It passes a third boolean argument to `toJson`\n * indicating whether the public key has been encoded or not (if a passphrase argument was provided then it is encoded).\n * The `toJson` function that it calls returns a JSON object with properties including the `address`\n * and `meta` that are assigned with the values stored in the corresponding state variables of the account pair,\n * an `encoded` property that is assigned with the encoded public key in hex format, and an `encoding`\n * property that indicates whether the public key value of the `encoded` property is encoded or not.\n */\n function createPair(_ref, _ref2) {\n var toSS58 = _ref.toSS58,\n type = _ref.type;\n var publicKey = _ref2.publicKey,\n secretKey = _ref2.secretKey;\n var meta = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var encoded = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;\n var encTypes = arguments.length > 4 ? arguments[4] : undefined;\n var decodePkcs8 = (passphrase, userEncoded) => {\n var decoded = (0, decode_js_1.decodePair)(passphrase, userEncoded || encoded, encTypes);\n if (decoded.secretKey.length === 64) {\n publicKey = decoded.publicKey;\n secretKey = decoded.secretKey;\n } else {\n var pair = TYPE_FROM_SEED[type](decoded.secretKey);\n publicKey = pair.publicKey;\n secretKey = pair.secretKey;\n }\n };\n var recode = passphrase => {\n isLocked(secretKey) && encoded && decodePkcs8(passphrase, encoded);\n encoded = (0, encode_js_1.encodePair)({\n publicKey,\n secretKey\n }, passphrase); // re-encode, latest version\n encTypes = undefined; // swap to defaults, latest version follows\n return encoded;\n };\n var encodeAddress = () => {\n var raw = TYPE_ADDRESS[type](publicKey);\n return type === 'ethereum' ? (0, util_crypto_1.ethereumEncode)(raw) : toSS58(raw);\n };\n return {\n get address() {\n return encodeAddress();\n },\n get addressRaw() {\n var raw = TYPE_ADDRESS[type](publicKey);\n return type === 'ethereum' ? raw.slice(-20) : raw;\n },\n get isLocked() {\n return isLocked(secretKey);\n },\n get meta() {\n return meta;\n },\n get publicKey() {\n return publicKey;\n },\n get type() {\n return type;\n },\n // eslint-disable-next-line sort-keys\n decodePkcs8,\n derive: (suri, meta) => {\n if (type === 'ethereum') {\n throw new Error('Unable to derive on this keypair');\n } else if (isLocked(secretKey)) {\n throw new Error('Cannot derive on a locked keypair');\n }\n var _ref3 = (0, util_crypto_1.keyExtractPath)(suri),\n path = _ref3.path;\n var derived = (0, util_crypto_1.keyFromPath)({\n publicKey,\n secretKey\n }, path, type);\n return createPair({\n toSS58,\n type\n }, derived, meta, null);\n },\n encodePkcs8: passphrase => {\n return recode(passphrase);\n },\n lock: () => {\n secretKey = new Uint8Array();\n },\n setMeta: additional => {\n meta = (0, util_1.objectSpread)({}, meta, additional);\n },\n sign: function (message) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n if (isLocked(secretKey)) {\n throw new Error('Cannot sign with a locked key pair');\n }\n return (0, util_1.u8aConcat)(options.withType ? TYPE_PREFIX[type] : SIG_TYPE_NONE, TYPE_SIGNATURE[type]((0, util_1.u8aToU8a)(message), {\n publicKey,\n secretKey\n }));\n },\n toJson: passphrase => {\n // NOTE: For ecdsa and ethereum, the publicKey cannot be extracted from the address. For these\n // pass the hex-encoded publicKey through to the address portion of the JSON (before decoding)\n // unless the publicKey is already an address\n var address = ['ecdsa', 'ethereum'].includes(type) ? publicKey.length === 20 ? (0, util_1.u8aToHex)(publicKey) : (0, util_1.u8aToHex)((0, util_crypto_1.secp256k1Compress)(publicKey)) : encodeAddress();\n return (0, toJson_js_1.pairToJson)(type, {\n address,\n meta\n }, recode(passphrase), !!passphrase);\n },\n unlock: passphrase => {\n return decodePkcs8(passphrase);\n },\n verify: (message, signature, signerPublic) => {\n return (0, util_crypto_1.signatureVerify)(message, signature, TYPE_ADDRESS[type]((0, util_1.u8aToU8a)(signerPublic))).isValid;\n },\n vrfSign: (message, context, extra) => {\n if (isLocked(secretKey)) {\n throw new Error('Cannot sign with a locked key pair');\n }\n if (type === 'sr25519') {\n return (0, util_crypto_1.sr25519VrfSign)(message, {\n secretKey\n }, context, extra);\n }\n var proof = TYPE_SIGNATURE[type]((0, util_1.u8aToU8a)(message), {\n publicKey,\n secretKey\n });\n return (0, util_1.u8aConcat)(vrfHash(proof, context, extra), proof);\n },\n vrfVerify: (message, vrfResult, signerPublic, context, extra) => {\n if (type === 'sr25519') {\n return (0, util_crypto_1.sr25519VrfVerify)(message, vrfResult, publicKey, context, extra);\n }\n var result = (0, util_crypto_1.signatureVerify)(message, (0, util_1.u8aConcat)(TYPE_PREFIX[type], vrfResult.subarray(32)), TYPE_ADDRESS[type]((0, util_1.u8aToU8a)(signerPublic)));\n return result.isValid && (0, util_1.u8aEq)(vrfResult.subarray(0, 32), vrfHash(vrfResult.subarray(32), context, extra));\n }\n };\n }\n});","lineCount":205,"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,"createPair"],[7,20,3,18],[7,23,3,21,"createPair"],[7,33,3,31],[8,2,4,0],[8,6,4,6,"util_1"],[8,12,4,12],[8,15,4,15,"require"],[8,22,4,22],[8,23,4,22,"_dependencyMap"],[8,37,4,22],[8,58,4,39],[8,59,4,40],[9,2,5,0],[9,6,5,6,"util_crypto_1"],[9,19,5,19],[9,22,5,22,"require"],[9,29,5,29],[9,30,5,29,"_dependencyMap"],[9,44,5,29],[9,72,5,53],[9,73,5,54],[10,2,6,0],[10,6,6,6,"decode_js_1"],[10,17,6,17],[10,20,6,20,"require"],[10,27,6,27],[10,28,6,27,"_dependencyMap"],[10,42,6,27],[10,60,6,41],[10,61,6,42],[11,2,7,0],[11,6,7,6,"encode_js_1"],[11,17,7,17],[11,20,7,20,"require"],[11,27,7,27],[11,28,7,27,"_dependencyMap"],[11,42,7,27],[11,60,7,41],[11,61,7,42],[12,2,8,0],[12,6,8,6,"toJson_js_1"],[12,17,8,17],[12,20,8,20,"require"],[12,27,8,27],[12,28,8,27,"_dependencyMap"],[12,42,8,27],[12,60,8,41],[12,61,8,42],[13,2,9,0],[13,6,9,6,"SIG_TYPE_NONE"],[13,19,9,19],[13,22,9,22],[13,26,9,26,"Uint8Array"],[13,36,9,36],[13,37,9,37],[13,38,9,38],[14,2,10,0],[14,6,10,6,"TYPE_FROM_SEED"],[14,20,10,20],[14,23,10,23],[15,4,11,4,"ecdsa"],[15,9,11,9],[15,11,11,11,"util_crypto_1"],[15,24,11,24],[15,25,11,25,"secp256k1PairFromSeed"],[15,46,11,46],[16,4,12,4,"ed25519"],[16,11,12,11],[16,13,12,13,"util_crypto_1"],[16,26,12,26],[16,27,12,27,"ed25519PairFromSeed"],[16,46,12,46],[17,4,13,4,"ethereum"],[17,12,13,12],[17,14,13,14,"util_crypto_1"],[17,27,13,27],[17,28,13,28,"secp256k1PairFromSeed"],[17,49,13,49],[18,4,14,4,"sr25519"],[18,11,14,11],[18,13,14,13,"util_crypto_1"],[18,26,14,26],[18,27,14,27,"sr25519PairFromSeed"],[19,2,15,0],[19,3,15,1],[20,2,16,0],[20,6,16,6,"TYPE_PREFIX"],[20,17,16,17],[20,20,16,20],[21,4,17,4,"ecdsa"],[21,9,17,9],[21,11,17,11],[21,15,17,15,"Uint8Array"],[21,25,17,25],[21,26,17,26],[21,27,17,27],[21,28,17,28],[21,29,17,29],[21,30,17,30],[22,4,18,4,"ed25519"],[22,11,18,11],[22,13,18,13],[22,17,18,17,"Uint8Array"],[22,27,18,27],[22,28,18,28],[22,29,18,29],[22,30,18,30],[22,31,18,31],[22,32,18,32],[23,4,19,4,"ethereum"],[23,12,19,12],[23,14,19,14],[23,18,19,18,"Uint8Array"],[23,28,19,28],[23,29,19,29],[23,30,19,30],[23,31,19,31],[23,32,19,32],[23,33,19,33],[24,4,20,4,"sr25519"],[24,11,20,11],[24,13,20,13],[24,17,20,17,"Uint8Array"],[24,27,20,27],[24,28,20,28],[24,29,20,29],[24,30,20,30],[24,31,20,31],[25,2,21,0],[25,3,21,1],[26,2,22,0],[26,6,22,6,"TYPE_SIGNATURE"],[26,20,22,20],[26,23,22,23],[27,4,23,4,"ecdsa"],[27,9,23,9],[27,11,23,11,"ecdsa"],[27,12,23,12,"m"],[27,13,23,13],[27,15,23,15,"p"],[27,16,23,16],[27,21,23,21],[27,22,23,22],[27,23,23,23],[27,25,23,25,"util_crypto_1"],[27,38,23,38],[27,39,23,39,"secp256k1Sign"],[27,52,23,52],[27,54,23,54,"m"],[27,55,23,55],[27,57,23,57,"p"],[27,58,23,58],[27,60,23,60],[27,68,23,68],[27,69,23,69],[28,4,24,4,"ed25519"],[28,11,24,11],[28,13,24,13,"util_crypto_1"],[28,26,24,26],[28,27,24,27,"ed25519Sign"],[28,38,24,38],[29,4,25,4,"ethereum"],[29,12,25,12],[29,14,25,14,"ethereum"],[29,15,25,15,"m"],[29,16,25,16],[29,18,25,18,"p"],[29,19,25,19],[29,24,25,24],[29,25,25,25],[29,26,25,26],[29,28,25,28,"util_crypto_1"],[29,41,25,41],[29,42,25,42,"secp256k1Sign"],[29,55,25,55],[29,57,25,57,"m"],[29,58,25,58],[29,60,25,60,"p"],[29,61,25,61],[29,63,25,63],[29,71,25,71],[29,72,25,72],[30,4,26,4,"sr25519"],[30,11,26,11],[30,13,26,13,"util_crypto_1"],[30,26,26,26],[30,27,26,27,"sr25519Sign"],[31,2,27,0],[31,3,27,1],[32,2,28,0],[32,6,28,6,"TYPE_ADDRESS"],[32,18,28,18],[32,21,28,21],[33,4,29,4,"ecdsa"],[33,9,29,9],[33,11,29,12,"p"],[33,12,29,13],[33,16,29,18,"p"],[33,17,29,19],[33,18,29,20,"length"],[33,24,29,26],[33,27,29,29],[33,29,29,31],[33,32,29,34],[33,33,29,35],[33,34,29,36],[33,36,29,38,"util_crypto_1"],[33,49,29,51],[33,50,29,52,"blake2AsU8a"],[33,61,29,63],[33,63,29,65,"p"],[33,64,29,66],[33,65,29,67],[33,68,29,70,"p"],[33,69,29,71],[34,4,30,4,"ed25519"],[34,11,30,11],[34,13,30,14,"p"],[34,14,30,15],[34,18,30,20,"p"],[34,19,30,21],[35,4,31,4,"ethereum"],[35,12,31,12],[35,14,31,15,"p"],[35,15,31,16],[35,19,31,21,"p"],[35,20,31,22],[35,21,31,23,"length"],[35,27,31,29],[35,32,31,34],[35,34,31,36],[35,37,31,39,"p"],[35,38,31,40],[35,41,31,43],[35,42,31,44],[35,43,31,45],[35,45,31,47,"util_crypto_1"],[35,58,31,60],[35,59,31,61,"keccakAsU8a"],[35,70,31,72],[35,72,31,74],[35,73,31,75],[35,74,31,76],[35,76,31,78,"util_crypto_1"],[35,89,31,91],[35,90,31,92,"secp256k1Expand"],[35,105,31,107],[35,107,31,109,"p"],[35,108,31,110],[35,109,31,111],[35,110,31,112],[36,4,32,4,"sr25519"],[36,11,32,11],[36,13,32,14,"p"],[36,14,32,15],[36,18,32,20,"p"],[37,2,33,0],[37,3,33,1],[38,2,34,0],[38,11,34,9,"isLocked"],[38,19,34,17,"isLocked"],[38,20,34,18,"secretKey"],[38,29,34,27],[38,31,34,29],[39,4,35,4],[39,11,35,11],[39,12,35,12,"secretKey"],[39,21,35,21],[39,25,35,25],[39,26,35,26],[39,27,35,27],[39,29,35,29,"util_1"],[39,35,35,35],[39,36,35,36,"u8aEmpty"],[39,44,35,44],[39,46,35,46,"secretKey"],[39,55,35,55],[39,56,35,56],[40,2,36,0],[41,2,37,0],[41,11,37,9,"vrfHash"],[41,18,37,16,"vrfHash"],[41,19,37,17,"proof"],[41,24,37,22],[41,26,37,24,"context"],[41,33,37,31],[41,35,37,33,"extra"],[41,40,37,38],[41,42,37,40],[42,4,38,4],[42,11,38,11],[42,12,38,12],[42,13,38,13],[42,15,38,15,"util_crypto_1"],[42,28,38,28],[42,29,38,29,"blake2AsU8a"],[42,40,38,40],[42,42,38,42],[42,43,38,43],[42,44,38,44],[42,46,38,46,"util_1"],[42,52,38,52],[42,53,38,53,"u8aConcat"],[42,62,38,62],[42,64,38,64,"context"],[42,71,38,71],[42,75,38,75],[42,77,38,77],[42,79,38,79,"extra"],[42,84,38,84],[42,88,38,88],[42,90,38,90],[42,92,38,92,"proof"],[42,97,38,97],[42,98,38,98],[42,99,38,99],[43,2,39,0],[44,2,40,0],[45,0,41,0],[46,0,42,0],[47,0,43,0],[48,0,44,0],[49,0,45,0],[50,0,46,0],[51,0,47,0],[52,0,48,0],[53,0,49,0],[54,0,50,0],[55,0,51,0],[56,0,52,0],[57,0,53,0],[58,0,54,0],[59,0,55,0],[60,0,56,0],[61,0,57,0],[62,0,58,0],[63,0,59,0],[64,0,60,0],[65,0,61,0],[66,0,62,0],[67,0,63,0],[68,0,64,0],[69,0,65,0],[70,0,66,0],[71,0,67,0],[72,0,68,0],[73,0,69,0],[74,0,70,0],[75,2,71,0],[75,11,71,9,"createPair"],[75,21,71,19,"createPair"],[75,22,71,19,"_ref"],[75,26,71,19],[75,28,71,19,"_ref2"],[75,33,71,19],[75,35,71,101],[76,4,71,101],[76,8,71,22,"toSS58"],[76,14,71,28],[76,17,71,28,"_ref"],[76,21,71,28],[76,22,71,22,"toSS58"],[76,28,71,28],[77,6,71,30,"type"],[77,10,71,34],[77,13,71,34,"_ref"],[77,17,71,34],[77,18,71,30,"type"],[77,22,71,34],[78,4,71,34],[78,8,71,40,"publicKey"],[78,17,71,49],[78,20,71,49,"_ref2"],[78,25,71,49],[78,26,71,40,"publicKey"],[78,35,71,49],[79,6,71,51,"secretKey"],[79,15,71,60],[79,18,71,60,"_ref2"],[79,23,71,60],[79,24,71,51,"secretKey"],[79,33,71,60],[80,4,71,60],[80,8,71,64,"meta"],[80,12,71,68],[80,15,71,68,"arguments"],[80,24,71,68],[80,25,71,68,"length"],[80,31,71,68],[80,39,71,68,"arguments"],[80,48,71,68],[80,56,71,68,"undefined"],[80,65,71,68],[80,68,71,68,"arguments"],[80,77,71,68],[80,83,71,71],[80,84,71,72],[80,85,71,73],[81,4,71,73],[81,8,71,75,"encoded"],[81,15,71,82],[81,18,71,82,"arguments"],[81,27,71,82],[81,28,71,82,"length"],[81,34,71,82],[81,42,71,82,"arguments"],[81,51,71,82],[81,59,71,82,"undefined"],[81,68,71,82],[81,71,71,82,"arguments"],[81,80,71,82],[81,86,71,85],[81,90,71,89],[82,4,71,89],[82,8,71,91,"encTypes"],[82,16,71,99],[82,19,71,99,"arguments"],[82,28,71,99],[82,29,71,99,"length"],[82,35,71,99],[82,42,71,99,"arguments"],[82,51,71,99],[82,57,71,99,"undefined"],[82,66,71,99],[83,4,72,4],[83,8,72,10,"decodePkcs8"],[83,19,72,21],[83,22,72,24,"decodePkcs8"],[83,23,72,25,"passphrase"],[83,33,72,35],[83,35,72,37,"userEncoded"],[83,46,72,48],[83,51,72,53],[84,6,73,8],[84,10,73,14,"decoded"],[84,17,73,21],[84,20,73,24],[84,21,73,25],[84,22,73,26],[84,24,73,28,"decode_js_1"],[84,35,73,39],[84,36,73,40,"decodePair"],[84,46,73,50],[84,48,73,52,"passphrase"],[84,58,73,62],[84,60,73,64,"userEncoded"],[84,71,73,75],[84,75,73,79,"encoded"],[84,82,73,86],[84,84,73,88,"encTypes"],[84,92,73,96],[84,93,73,97],[85,6,74,8],[85,10,74,12,"decoded"],[85,17,74,19],[85,18,74,20,"secretKey"],[85,27,74,29],[85,28,74,30,"length"],[85,34,74,36],[85,39,74,41],[85,41,74,43],[85,43,74,45],[86,8,75,12,"publicKey"],[86,17,75,21],[86,20,75,24,"decoded"],[86,27,75,31],[86,28,75,32,"publicKey"],[86,37,75,41],[87,8,76,12,"secretKey"],[87,17,76,21],[87,20,76,24,"decoded"],[87,27,76,31],[87,28,76,32,"secretKey"],[87,37,76,41],[88,6,77,8],[88,7,77,9],[88,13,78,13],[89,8,79,12],[89,12,79,18,"pair"],[89,16,79,22],[89,19,79,25,"TYPE_FROM_SEED"],[89,33,79,39],[89,34,79,40,"type"],[89,38,79,44],[89,39,79,45],[89,40,79,46,"decoded"],[89,47,79,53],[89,48,79,54,"secretKey"],[89,57,79,63],[89,58,79,64],[90,8,80,12,"publicKey"],[90,17,80,21],[90,20,80,24,"pair"],[90,24,80,28],[90,25,80,29,"publicKey"],[90,34,80,38],[91,8,81,12,"secretKey"],[91,17,81,21],[91,20,81,24,"pair"],[91,24,81,28],[91,25,81,29,"secretKey"],[91,34,81,38],[92,6,82,8],[93,4,83,4],[93,5,83,5],[94,4,84,4],[94,8,84,10,"recode"],[94,14,84,16],[94,17,84,20,"passphrase"],[94,27,84,30],[94,31,84,35],[95,6,85,8,"isLocked"],[95,14,85,16],[95,15,85,17,"secretKey"],[95,24,85,26],[95,25,85,27],[95,29,85,31,"encoded"],[95,36,85,38],[95,40,85,42,"decodePkcs8"],[95,51,85,53],[95,52,85,54,"passphrase"],[95,62,85,64],[95,64,85,66,"encoded"],[95,71,85,73],[95,72,85,74],[96,6,86,8,"encoded"],[96,13,86,15],[96,16,86,18],[96,17,86,19],[96,18,86,20],[96,20,86,22,"encode_js_1"],[96,31,86,33],[96,32,86,34,"encodePair"],[96,42,86,44],[96,44,86,46],[97,8,86,48,"publicKey"],[97,17,86,57],[98,8,86,59,"secretKey"],[99,6,86,69],[99,7,86,70],[99,9,86,72,"passphrase"],[99,19,86,82],[99,20,86,83],[99,21,86,84],[99,22,86,85],[100,6,87,8,"encTypes"],[100,14,87,16],[100,17,87,19,"undefined"],[100,26,87,28],[100,27,87,29],[100,28,87,30],[101,6,88,8],[101,13,88,15,"encoded"],[101,20,88,22],[102,4,89,4],[102,5,89,5],[103,4,90,4],[103,8,90,10,"encodeAddress"],[103,21,90,23],[103,24,90,26,"encodeAddress"],[103,25,90,26],[103,30,90,32],[104,6,91,8],[104,10,91,14,"raw"],[104,13,91,17],[104,16,91,20,"TYPE_ADDRESS"],[104,28,91,32],[104,29,91,33,"type"],[104,33,91,37],[104,34,91,38],[104,35,91,39,"publicKey"],[104,44,91,48],[104,45,91,49],[105,6,92,8],[105,13,92,15,"type"],[105,17,92,19],[105,22,92,24],[105,32,92,34],[105,35,93,14],[105,36,93,15],[105,37,93,16],[105,39,93,18,"util_crypto_1"],[105,52,93,31],[105,53,93,32,"ethereumEncode"],[105,67,93,46],[105,69,93,48,"raw"],[105,72,93,51],[105,73,93,52],[105,76,94,14,"toSS58"],[105,82,94,20],[105,83,94,21,"raw"],[105,86,94,24],[105,87,94,25],[106,4,95,4],[106,5,95,5],[107,4,96,4],[107,11,96,11],[108,6,97,8],[108,10,97,12,"address"],[108,17,97,19,"address"],[108,18,97,19],[108,20,97,22],[109,8,98,12],[109,15,98,19,"encodeAddress"],[109,28,98,32],[109,29,98,33],[109,30,98,34],[110,6,99,8],[110,7,99,9],[111,6,100,8],[111,10,100,12,"addressRaw"],[111,20,100,22,"addressRaw"],[111,21,100,22],[111,23,100,25],[112,8,101,12],[112,12,101,18,"raw"],[112,15,101,21],[112,18,101,24,"TYPE_ADDRESS"],[112,30,101,36],[112,31,101,37,"type"],[112,35,101,41],[112,36,101,42],[112,37,101,43,"publicKey"],[112,46,101,52],[112,47,101,53],[113,8,102,12],[113,15,102,19,"type"],[113,19,102,23],[113,24,102,28],[113,34,102,38],[113,37,103,18,"raw"],[113,40,103,21],[113,41,103,22,"slice"],[113,46,103,27],[113,47,103,28],[113,48,103,29],[113,50,103,31],[113,51,103,32],[113,54,104,18,"raw"],[113,57,104,21],[114,6,105,8],[114,7,105,9],[115,6,106,8],[115,10,106,12,"isLocked"],[115,18,106,20,"isLocked"],[115,19,106,20],[115,21,106,23],[116,8,107,12],[116,15,107,19,"isLocked"],[116,23,107,27],[116,24,107,28,"secretKey"],[116,33,107,37],[116,34,107,38],[117,6,108,8],[117,7,108,9],[118,6,109,8],[118,10,109,12,"meta"],[118,14,109,16,"meta"],[118,15,109,16],[118,17,109,19],[119,8,110,12],[119,15,110,19,"meta"],[119,19,110,23],[120,6,111,8],[120,7,111,9],[121,6,112,8],[121,10,112,12,"publicKey"],[121,19,112,21,"publicKey"],[121,20,112,21],[121,22,112,24],[122,8,113,12],[122,15,113,19,"publicKey"],[122,24,113,28],[123,6,114,8],[123,7,114,9],[124,6,115,8],[124,10,115,12,"type"],[124,14,115,16,"type"],[124,15,115,16],[124,17,115,19],[125,8,116,12],[125,15,116,19,"type"],[125,19,116,23],[126,6,117,8],[126,7,117,9],[127,6,118,8],[128,6,119,8,"decodePkcs8"],[128,17,119,19],[129,6,120,8,"derive"],[129,12,120,14],[129,14,120,16,"derive"],[129,15,120,17,"suri"],[129,19,120,21],[129,21,120,23,"meta"],[129,25,120,27],[129,30,120,32],[130,8,121,12],[130,12,121,16,"type"],[130,16,121,20],[130,21,121,25],[130,31,121,35],[130,33,121,37],[131,10,122,16],[131,16,122,22],[131,20,122,26,"Error"],[131,25,122,31],[131,26,122,32],[131,60,122,66],[131,61,122,67],[132,8,123,12],[132,9,123,13],[132,15,124,17],[132,19,124,21,"isLocked"],[132,27,124,29],[132,28,124,30,"secretKey"],[132,37,124,39],[132,38,124,40],[132,40,124,42],[133,10,125,16],[133,16,125,22],[133,20,125,26,"Error"],[133,25,125,31],[133,26,125,32],[133,61,125,67],[133,62,125,68],[134,8,126,12],[135,8,127,12],[135,12,127,12,"_ref3"],[135,17,127,12],[135,20,127,29],[135,21,127,30],[135,22,127,31],[135,24,127,33,"util_crypto_1"],[135,37,127,46],[135,38,127,47,"keyExtractPath"],[135,52,127,61],[135,54,127,63,"suri"],[135,58,127,67],[135,59,127,68],[136,10,127,20,"path"],[136,14,127,24],[136,17,127,24,"_ref3"],[136,22,127,24],[136,23,127,20,"path"],[136,27,127,24],[137,8,128,12],[137,12,128,18,"derived"],[137,19,128,25],[137,22,128,28],[137,23,128,29],[137,24,128,30],[137,26,128,32,"util_crypto_1"],[137,39,128,45],[137,40,128,46,"keyFromPath"],[137,51,128,57],[137,53,128,59],[138,10,128,61,"publicKey"],[138,19,128,70],[139,10,128,72,"secretKey"],[140,8,128,82],[140,9,128,83],[140,11,128,85,"path"],[140,15,128,89],[140,17,128,91,"type"],[140,21,128,95],[140,22,128,96],[141,8,129,12],[141,15,129,19,"createPair"],[141,25,129,29],[141,26,129,30],[142,10,129,32,"toSS58"],[142,16,129,38],[143,10,129,40,"type"],[144,8,129,45],[144,9,129,46],[144,11,129,48,"derived"],[144,18,129,55],[144,20,129,57,"meta"],[144,24,129,61],[144,26,129,63],[144,30,129,67],[144,31,129,68],[145,6,130,8],[145,7,130,9],[146,6,131,8,"encodePkcs8"],[146,17,131,19],[146,19,131,22,"passphrase"],[146,29,131,32],[146,33,131,37],[147,8,132,12],[147,15,132,19,"recode"],[147,21,132,25],[147,22,132,26,"passphrase"],[147,32,132,36],[147,33,132,37],[148,6,133,8],[148,7,133,9],[149,6,134,8,"lock"],[149,10,134,12],[149,12,134,14,"lock"],[149,13,134,14],[149,18,134,20],[150,8,135,12,"secretKey"],[150,17,135,21],[150,20,135,24],[150,24,135,28,"Uint8Array"],[150,34,135,38],[150,35,135,39],[150,36,135,40],[151,6,136,8],[151,7,136,9],[152,6,137,8,"setMeta"],[152,13,137,15],[152,15,137,18,"additional"],[152,25,137,28],[152,29,137,33],[153,8,138,12,"meta"],[153,12,138,16],[153,15,138,19],[153,16,138,20],[153,17,138,21],[153,19,138,23,"util_1"],[153,25,138,29],[153,26,138,30,"objectSpread"],[153,38,138,42],[153,40,138,44],[153,41,138,45],[153,42,138,46],[153,44,138,48,"meta"],[153,48,138,52],[153,50,138,54,"additional"],[153,60,138,64],[153,61,138,65],[154,6,139,8],[154,7,139,9],[155,6,140,8,"sign"],[155,10,140,12],[155,12,140,14],[155,21,140,14,"sign"],[155,22,140,15,"message"],[155,29,140,22],[155,31,140,41],[156,8,140,41],[156,12,140,24,"options"],[156,19,140,31],[156,22,140,31,"arguments"],[156,31,140,31],[156,32,140,31,"length"],[156,38,140,31],[156,46,140,31,"arguments"],[156,55,140,31],[156,63,140,31,"undefined"],[156,72,140,31],[156,75,140,31,"arguments"],[156,84,140,31],[156,90,140,34],[156,91,140,35],[156,92,140,36],[157,8,141,12],[157,12,141,16,"isLocked"],[157,20,141,24],[157,21,141,25,"secretKey"],[157,30,141,34],[157,31,141,35],[157,33,141,37],[158,10,142,16],[158,16,142,22],[158,20,142,26,"Error"],[158,25,142,31],[158,26,142,32],[158,62,142,68],[158,63,142,69],[159,8,143,12],[160,8,144,12],[160,15,144,19],[160,16,144,20],[160,17,144,21],[160,19,144,23,"util_1"],[160,25,144,29],[160,26,144,30,"u8aConcat"],[160,35,144,39],[160,37,144,41,"options"],[160,44,144,48],[160,45,144,49,"withType"],[160,53,144,57],[160,56,145,18,"TYPE_PREFIX"],[160,67,145,29],[160,68,145,30,"type"],[160,72,145,34],[160,73,145,35],[160,76,146,18,"SIG_TYPE_NONE"],[160,89,146,31],[160,91,146,33,"TYPE_SIGNATURE"],[160,105,146,47],[160,106,146,48,"type"],[160,110,146,52],[160,111,146,53],[160,112,146,54],[160,113,146,55],[160,114,146,56],[160,116,146,58,"util_1"],[160,122,146,64],[160,123,146,65,"u8aToU8a"],[160,131,146,73],[160,133,146,75,"message"],[160,140,146,82],[160,141,146,83],[160,143,146,85],[161,10,146,87,"publicKey"],[161,19,146,96],[162,10,146,98,"secretKey"],[163,8,146,108],[163,9,146,109],[163,10,146,110],[163,11,146,111],[164,6,147,8],[164,7,147,9],[165,6,148,8,"toJson"],[165,12,148,14],[165,14,148,17,"passphrase"],[165,24,148,27],[165,28,148,32],[166,8,149,12],[167,8,150,12],[168,8,151,12],[169,8,152,12],[169,12,152,18,"address"],[169,19,152,25],[169,22,152,28],[169,23,152,29],[169,30,152,36],[169,32,152,38],[169,42,152,48],[169,43,152,49],[169,44,152,50,"includes"],[169,52,152,58],[169,53,152,59,"type"],[169,57,152,63],[169,58,152,64],[169,61,153,18,"publicKey"],[169,70,153,27],[169,71,153,28,"length"],[169,77,153,34],[169,82,153,39],[169,84,153,41],[169,87,154,22],[169,88,154,23],[169,89,154,24],[169,91,154,26,"util_1"],[169,97,154,32],[169,98,154,33,"u8aToHex"],[169,106,154,41],[169,108,154,43,"publicKey"],[169,117,154,52],[169,118,154,53],[169,121,155,22],[169,122,155,23],[169,123,155,24],[169,125,155,26,"util_1"],[169,131,155,32],[169,132,155,33,"u8aToHex"],[169,140,155,41],[169,142,155,43],[169,143,155,44],[169,144,155,45],[169,146,155,47,"util_crypto_1"],[169,159,155,60],[169,160,155,61,"secp256k1Compress"],[169,177,155,78],[169,179,155,80,"publicKey"],[169,188,155,89],[169,189,155,90],[169,190,155,91],[169,193,156,18,"encodeAddress"],[169,206,156,31],[169,207,156,32],[169,208,156,33],[170,8,157,12],[170,15,157,19],[170,16,157,20],[170,17,157,21],[170,19,157,23,"toJson_js_1"],[170,30,157,34],[170,31,157,35,"pairToJson"],[170,41,157,45],[170,43,157,47,"type"],[170,47,157,51],[170,49,157,53],[171,10,157,55,"address"],[171,17,157,62],[172,10,157,64,"meta"],[173,8,157,69],[173,9,157,70],[173,11,157,72,"recode"],[173,17,157,78],[173,18,157,79,"passphrase"],[173,28,157,89],[173,29,157,90],[173,31,157,92],[173,32,157,93],[173,33,157,94,"passphrase"],[173,43,157,104],[173,44,157,105],[174,6,158,8],[174,7,158,9],[175,6,159,8,"unlock"],[175,12,159,14],[175,14,159,17,"passphrase"],[175,24,159,27],[175,28,159,32],[176,8,160,12],[176,15,160,19,"decodePkcs8"],[176,26,160,30],[176,27,160,31,"passphrase"],[176,37,160,41],[176,38,160,42],[177,6,161,8],[177,7,161,9],[178,6,162,8,"verify"],[178,12,162,14],[178,14,162,16,"verify"],[178,15,162,17,"message"],[178,22,162,24],[178,24,162,26,"signature"],[178,33,162,35],[178,35,162,37,"signerPublic"],[178,47,162,49],[178,52,162,54],[179,8,163,12],[179,15,163,19],[179,16,163,20],[179,17,163,21],[179,19,163,23,"util_crypto_1"],[179,32,163,36],[179,33,163,37,"signatureVerify"],[179,48,163,52],[179,50,163,54,"message"],[179,57,163,61],[179,59,163,63,"signature"],[179,68,163,72],[179,70,163,74,"TYPE_ADDRESS"],[179,82,163,86],[179,83,163,87,"type"],[179,87,163,91],[179,88,163,92],[179,89,163,93],[179,90,163,94],[179,91,163,95],[179,93,163,97,"util_1"],[179,99,163,103],[179,100,163,104,"u8aToU8a"],[179,108,163,112],[179,110,163,114,"signerPublic"],[179,122,163,126],[179,123,163,127],[179,124,163,128],[179,125,163,129],[179,126,163,130,"isValid"],[179,133,163,137],[180,6,164,8],[180,7,164,9],[181,6,165,8,"vrfSign"],[181,13,165,15],[181,15,165,17,"vrfSign"],[181,16,165,18,"message"],[181,23,165,25],[181,25,165,27,"context"],[181,32,165,34],[181,34,165,36,"extra"],[181,39,165,41],[181,44,165,46],[182,8,166,12],[182,12,166,16,"isLocked"],[182,20,166,24],[182,21,166,25,"secretKey"],[182,30,166,34],[182,31,166,35],[182,33,166,37],[183,10,167,16],[183,16,167,22],[183,20,167,26,"Error"],[183,25,167,31],[183,26,167,32],[183,62,167,68],[183,63,167,69],[184,8,168,12],[185,8,169,12],[185,12,169,16,"type"],[185,16,169,20],[185,21,169,25],[185,30,169,34],[185,32,169,36],[186,10,170,16],[186,17,170,23],[186,18,170,24],[186,19,170,25],[186,21,170,27,"util_crypto_1"],[186,34,170,40],[186,35,170,41,"sr25519VrfSign"],[186,49,170,55],[186,51,170,57,"message"],[186,58,170,64],[186,60,170,66],[187,12,170,68,"secretKey"],[188,10,170,78],[188,11,170,79],[188,13,170,81,"context"],[188,20,170,88],[188,22,170,90,"extra"],[188,27,170,95],[188,28,170,96],[189,8,171,12],[190,8,172,12],[190,12,172,18,"proof"],[190,17,172,23],[190,20,172,26,"TYPE_SIGNATURE"],[190,34,172,40],[190,35,172,41,"type"],[190,39,172,45],[190,40,172,46],[190,41,172,47],[190,42,172,48],[190,43,172,49],[190,45,172,51,"util_1"],[190,51,172,57],[190,52,172,58,"u8aToU8a"],[190,60,172,66],[190,62,172,68,"message"],[190,69,172,75],[190,70,172,76],[190,72,172,78],[191,10,172,80,"publicKey"],[191,19,172,89],[192,10,172,91,"secretKey"],[193,8,172,101],[193,9,172,102],[193,10,172,103],[194,8,173,12],[194,15,173,19],[194,16,173,20],[194,17,173,21],[194,19,173,23,"util_1"],[194,25,173,29],[194,26,173,30,"u8aConcat"],[194,35,173,39],[194,37,173,41,"vrfHash"],[194,44,173,48],[194,45,173,49,"proof"],[194,50,173,54],[194,52,173,56,"context"],[194,59,173,63],[194,61,173,65,"extra"],[194,66,173,70],[194,67,173,71],[194,69,173,73,"proof"],[194,74,173,78],[194,75,173,79],[195,6,174,8],[195,7,174,9],[196,6,175,8,"vrfVerify"],[196,15,175,17],[196,17,175,19,"vrfVerify"],[196,18,175,20,"message"],[196,25,175,27],[196,27,175,29,"vrfResult"],[196,36,175,38],[196,38,175,40,"signerPublic"],[196,50,175,52],[196,52,175,54,"context"],[196,59,175,61],[196,61,175,63,"extra"],[196,66,175,68],[196,71,175,73],[197,8,176,12],[197,12,176,16,"type"],[197,16,176,20],[197,21,176,25],[197,30,176,34],[197,32,176,36],[198,10,177,16],[198,17,177,23],[198,18,177,24],[198,19,177,25],[198,21,177,27,"util_crypto_1"],[198,34,177,40],[198,35,177,41,"sr25519VrfVerify"],[198,51,177,57],[198,53,177,59,"message"],[198,60,177,66],[198,62,177,68,"vrfResult"],[198,71,177,77],[198,73,177,79,"publicKey"],[198,82,177,88],[198,84,177,90,"context"],[198,91,177,97],[198,93,177,99,"extra"],[198,98,177,104],[198,99,177,105],[199,8,178,12],[200,8,179,12],[200,12,179,18,"result"],[200,18,179,24],[200,21,179,27],[200,22,179,28],[200,23,179,29],[200,25,179,31,"util_crypto_1"],[200,38,179,44],[200,39,179,45,"signatureVerify"],[200,54,179,60],[200,56,179,62,"message"],[200,63,179,69],[200,65,179,71],[200,66,179,72],[200,67,179,73],[200,69,179,75,"util_1"],[200,75,179,81],[200,76,179,82,"u8aConcat"],[200,85,179,91],[200,87,179,93,"TYPE_PREFIX"],[200,98,179,104],[200,99,179,105,"type"],[200,103,179,109],[200,104,179,110],[200,106,179,112,"vrfResult"],[200,115,179,121],[200,116,179,122,"subarray"],[200,124,179,130],[200,125,179,131],[200,127,179,133],[200,128,179,134],[200,129,179,135],[200,131,179,137,"TYPE_ADDRESS"],[200,143,179,149],[200,144,179,150,"type"],[200,148,179,154],[200,149,179,155],[200,150,179,156],[200,151,179,157],[200,152,179,158],[200,154,179,160,"util_1"],[200,160,179,166],[200,161,179,167,"u8aToU8a"],[200,169,179,175],[200,171,179,177,"signerPublic"],[200,183,179,189],[200,184,179,190],[200,185,179,191],[200,186,179,192],[201,8,180,12],[201,15,180,19,"result"],[201,21,180,25],[201,22,180,26,"isValid"],[201,29,180,33],[201,33,180,37],[201,34,180,38],[201,35,180,39],[201,37,180,41,"util_1"],[201,43,180,47],[201,44,180,48,"u8aEq"],[201,49,180,53],[201,51,180,55,"vrfResult"],[201,60,180,64],[201,61,180,65,"subarray"],[201,69,180,73],[201,70,180,74],[201,71,180,75],[201,73,180,77],[201,75,180,79],[201,76,180,80],[201,78,180,82,"vrfHash"],[201,85,180,89],[201,86,180,90,"vrfResult"],[201,95,180,99],[201,96,180,100,"subarray"],[201,104,180,108],[201,105,180,109],[201,107,180,111],[201,108,180,112],[201,110,180,114,"context"],[201,117,180,121],[201,119,180,123,"extra"],[201,124,180,128],[201,125,180,129],[201,126,180,130],[202,6,181,8],[203,4,182,4],[203,5,182,5],[204,2,183,0],[205,0,183,1],[205,3]],"functionMap":{"names":["<global>","TYPE_SIGNATURE.ecdsa","TYPE_SIGNATURE.ethereum","TYPE_ADDRESS.ecdsa","TYPE_ADDRESS.ed25519","TYPE_ADDRESS.ethereum","TYPE_ADDRESS.sr25519","isLocked","vrfHash","createPair","decodePkcs8","recode","encodeAddress","get__address","get__addressRaw","get__isLocked","get__meta","get__publicKey","get__type","derive","encodePkcs8","lock","setMeta","sign","toJson","unlock","verify","vrfSign","vrfVerify"],"mappings":"AAA;WCsB,0DD;cEE,0DF;WGI,4DH;aIC,QJ;cKC,kGL;aMC,QN;AOE;CPE;AQC;CRE;ASgC;wBCC;KDW;mBEC;KFK;0BGC;KHK;QIE;SJE;QKC;SLK;QMC;SNE;QOC;SPE;QQC;SRE;QSC;STE;gBUG;SVU;qBWC;SXE;cYC;SZE;iBaC;SbE;ccC;SdO;gBeC;SfU;gBgBC;ShBE;gBiBC;SjBE;iBkBC;SlBS;mBmBC;SnBM;CTE"},"hasCjsExports":true},"type":"js/module"}]} |