mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 16:51:02 +00:00
1 line
33 KiB
Plaintext
1 line
33 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 const util_1 = require(_dependencyMap[0], \"@polkadot/util\");\n const util_crypto_1 = require(_dependencyMap[1], \"@polkadot/util-crypto\");\n const decode_js_1 = require(_dependencyMap[2], \"./decode.js\");\n const encode_js_1 = require(_dependencyMap[3], \"./encode.js\");\n const toJson_js_1 = require(_dependencyMap[4], \"./toJson.js\");\n const SIG_TYPE_NONE = new Uint8Array();\n const 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 const TYPE_PREFIX = {\n ecdsa: new Uint8Array([2]),\n ed25519: new Uint8Array([0]),\n ethereum: new Uint8Array([2]),\n sr25519: new Uint8Array([1])\n };\n const 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 const 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({\n toSS58,\n type\n }, {\n publicKey,\n secretKey\n }, meta = {}, encoded = null, encTypes) {\n const decodePkcs8 = (passphrase, userEncoded) => {\n const 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 const pair = TYPE_FROM_SEED[type](decoded.secretKey);\n publicKey = pair.publicKey;\n secretKey = pair.secretKey;\n }\n };\n const 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 const encodeAddress = () => {\n const 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 const 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 const {\n path\n } = (0, util_crypto_1.keyExtractPath)(suri);\n const 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: (message, options = {}) => {\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 const 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 const 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 const 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":204,"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,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,"util_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],[10,8,6,6,"decode_js_1"],[10,19,6,17],[10,22,6,20,"require"],[10,29,6,27],[10,30,6,27,"_dependencyMap"],[10,44,6,27],[10,62,6,41],[10,63,6,42],[11,2,7,0],[11,8,7,6,"encode_js_1"],[11,19,7,17],[11,22,7,20,"require"],[11,29,7,27],[11,30,7,27,"_dependencyMap"],[11,44,7,27],[11,62,7,41],[11,63,7,42],[12,2,8,0],[12,8,8,6,"toJson_js_1"],[12,19,8,17],[12,22,8,20,"require"],[12,29,8,27],[12,30,8,27,"_dependencyMap"],[12,44,8,27],[12,62,8,41],[12,63,8,42],[13,2,9,0],[13,8,9,6,"SIG_TYPE_NONE"],[13,21,9,19],[13,24,9,22],[13,28,9,26,"Uint8Array"],[13,38,9,36],[13,39,9,37],[13,40,9,38],[14,2,10,0],[14,8,10,6,"TYPE_FROM_SEED"],[14,22,10,20],[14,25,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,8,16,6,"TYPE_PREFIX"],[20,19,16,17],[20,22,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,8,22,6,"TYPE_SIGNATURE"],[26,22,22,20],[26,25,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,8,28,6,"TYPE_ADDRESS"],[32,20,28,18],[32,23,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,20],[76,4,71,22,"toSS58"],[76,10,71,28],[77,4,71,30,"type"],[78,2,71,35],[78,3,71,36],[78,5,71,38],[79,4,71,40,"publicKey"],[79,13,71,49],[80,4,71,51,"secretKey"],[81,2,71,61],[81,3,71,62],[81,5,71,64,"meta"],[81,9,71,68],[81,12,71,71],[81,13,71,72],[81,14,71,73],[81,16,71,75,"encoded"],[81,23,71,82],[81,26,71,85],[81,30,71,89],[81,32,71,91,"encTypes"],[81,40,71,99],[81,42,71,101],[82,4,72,4],[82,10,72,10,"decodePkcs8"],[82,21,72,21],[82,24,72,24,"decodePkcs8"],[82,25,72,25,"passphrase"],[82,35,72,35],[82,37,72,37,"userEncoded"],[82,48,72,48],[82,53,72,53],[83,6,73,8],[83,12,73,14,"decoded"],[83,19,73,21],[83,22,73,24],[83,23,73,25],[83,24,73,26],[83,26,73,28,"decode_js_1"],[83,37,73,39],[83,38,73,40,"decodePair"],[83,48,73,50],[83,50,73,52,"passphrase"],[83,60,73,62],[83,62,73,64,"userEncoded"],[83,73,73,75],[83,77,73,79,"encoded"],[83,84,73,86],[83,86,73,88,"encTypes"],[83,94,73,96],[83,95,73,97],[84,6,74,8],[84,10,74,12,"decoded"],[84,17,74,19],[84,18,74,20,"secretKey"],[84,27,74,29],[84,28,74,30,"length"],[84,34,74,36],[84,39,74,41],[84,41,74,43],[84,43,74,45],[85,8,75,12,"publicKey"],[85,17,75,21],[85,20,75,24,"decoded"],[85,27,75,31],[85,28,75,32,"publicKey"],[85,37,75,41],[86,8,76,12,"secretKey"],[86,17,76,21],[86,20,76,24,"decoded"],[86,27,76,31],[86,28,76,32,"secretKey"],[86,37,76,41],[87,6,77,8],[87,7,77,9],[87,13,78,13],[88,8,79,12],[88,14,79,18,"pair"],[88,18,79,22],[88,21,79,25,"TYPE_FROM_SEED"],[88,35,79,39],[88,36,79,40,"type"],[88,40,79,44],[88,41,79,45],[88,42,79,46,"decoded"],[88,49,79,53],[88,50,79,54,"secretKey"],[88,59,79,63],[88,60,79,64],[89,8,80,12,"publicKey"],[89,17,80,21],[89,20,80,24,"pair"],[89,24,80,28],[89,25,80,29,"publicKey"],[89,34,80,38],[90,8,81,12,"secretKey"],[90,17,81,21],[90,20,81,24,"pair"],[90,24,81,28],[90,25,81,29,"secretKey"],[90,34,81,38],[91,6,82,8],[92,4,83,4],[92,5,83,5],[93,4,84,4],[93,10,84,10,"recode"],[93,16,84,16],[93,19,84,20,"passphrase"],[93,29,84,30],[93,33,84,35],[94,6,85,8,"isLocked"],[94,14,85,16],[94,15,85,17,"secretKey"],[94,24,85,26],[94,25,85,27],[94,29,85,31,"encoded"],[94,36,85,38],[94,40,85,42,"decodePkcs8"],[94,51,85,53],[94,52,85,54,"passphrase"],[94,62,85,64],[94,64,85,66,"encoded"],[94,71,85,73],[94,72,85,74],[95,6,86,8,"encoded"],[95,13,86,15],[95,16,86,18],[95,17,86,19],[95,18,86,20],[95,20,86,22,"encode_js_1"],[95,31,86,33],[95,32,86,34,"encodePair"],[95,42,86,44],[95,44,86,46],[96,8,86,48,"publicKey"],[96,17,86,57],[97,8,86,59,"secretKey"],[98,6,86,69],[98,7,86,70],[98,9,86,72,"passphrase"],[98,19,86,82],[98,20,86,83],[98,21,86,84],[98,22,86,85],[99,6,87,8,"encTypes"],[99,14,87,16],[99,17,87,19,"undefined"],[99,26,87,28],[99,27,87,29],[99,28,87,30],[100,6,88,8],[100,13,88,15,"encoded"],[100,20,88,22],[101,4,89,4],[101,5,89,5],[102,4,90,4],[102,10,90,10,"encodeAddress"],[102,23,90,23],[102,26,90,26,"encodeAddress"],[102,27,90,26],[102,32,90,32],[103,6,91,8],[103,12,91,14,"raw"],[103,15,91,17],[103,18,91,20,"TYPE_ADDRESS"],[103,30,91,32],[103,31,91,33,"type"],[103,35,91,37],[103,36,91,38],[103,37,91,39,"publicKey"],[103,46,91,48],[103,47,91,49],[104,6,92,8],[104,13,92,15,"type"],[104,17,92,19],[104,22,92,24],[104,32,92,34],[104,35,93,14],[104,36,93,15],[104,37,93,16],[104,39,93,18,"util_crypto_1"],[104,52,93,31],[104,53,93,32,"ethereumEncode"],[104,67,93,46],[104,69,93,48,"raw"],[104,72,93,51],[104,73,93,52],[104,76,94,14,"toSS58"],[104,82,94,20],[104,83,94,21,"raw"],[104,86,94,24],[104,87,94,25],[105,4,95,4],[105,5,95,5],[106,4,96,4],[106,11,96,11],[107,6,97,8],[107,10,97,12,"address"],[107,17,97,19,"address"],[107,18,97,19],[107,20,97,22],[108,8,98,12],[108,15,98,19,"encodeAddress"],[108,28,98,32],[108,29,98,33],[108,30,98,34],[109,6,99,8],[109,7,99,9],[110,6,100,8],[110,10,100,12,"addressRaw"],[110,20,100,22,"addressRaw"],[110,21,100,22],[110,23,100,25],[111,8,101,12],[111,14,101,18,"raw"],[111,17,101,21],[111,20,101,24,"TYPE_ADDRESS"],[111,32,101,36],[111,33,101,37,"type"],[111,37,101,41],[111,38,101,42],[111,39,101,43,"publicKey"],[111,48,101,52],[111,49,101,53],[112,8,102,12],[112,15,102,19,"type"],[112,19,102,23],[112,24,102,28],[112,34,102,38],[112,37,103,18,"raw"],[112,40,103,21],[112,41,103,22,"slice"],[112,46,103,27],[112,47,103,28],[112,48,103,29],[112,50,103,31],[112,51,103,32],[112,54,104,18,"raw"],[112,57,104,21],[113,6,105,8],[113,7,105,9],[114,6,106,8],[114,10,106,12,"isLocked"],[114,18,106,20,"isLocked"],[114,19,106,20],[114,21,106,23],[115,8,107,12],[115,15,107,19,"isLocked"],[115,23,107,27],[115,24,107,28,"secretKey"],[115,33,107,37],[115,34,107,38],[116,6,108,8],[116,7,108,9],[117,6,109,8],[117,10,109,12,"meta"],[117,14,109,16,"meta"],[117,15,109,16],[117,17,109,19],[118,8,110,12],[118,15,110,19,"meta"],[118,19,110,23],[119,6,111,8],[119,7,111,9],[120,6,112,8],[120,10,112,12,"publicKey"],[120,19,112,21,"publicKey"],[120,20,112,21],[120,22,112,24],[121,8,113,12],[121,15,113,19,"publicKey"],[121,24,113,28],[122,6,114,8],[122,7,114,9],[123,6,115,8],[123,10,115,12,"type"],[123,14,115,16,"type"],[123,15,115,16],[123,17,115,19],[124,8,116,12],[124,15,116,19,"type"],[124,19,116,23],[125,6,117,8],[125,7,117,9],[126,6,118,8],[127,6,119,8,"decodePkcs8"],[127,17,119,19],[128,6,120,8,"derive"],[128,12,120,14],[128,14,120,16,"derive"],[128,15,120,17,"suri"],[128,19,120,21],[128,21,120,23,"meta"],[128,25,120,27],[128,30,120,32],[129,8,121,12],[129,12,121,16,"type"],[129,16,121,20],[129,21,121,25],[129,31,121,35],[129,33,121,37],[130,10,122,16],[130,16,122,22],[130,20,122,26,"Error"],[130,25,122,31],[130,26,122,32],[130,60,122,66],[130,61,122,67],[131,8,123,12],[131,9,123,13],[131,15,124,17],[131,19,124,21,"isLocked"],[131,27,124,29],[131,28,124,30,"secretKey"],[131,37,124,39],[131,38,124,40],[131,40,124,42],[132,10,125,16],[132,16,125,22],[132,20,125,26,"Error"],[132,25,125,31],[132,26,125,32],[132,61,125,67],[132,62,125,68],[133,8,126,12],[134,8,127,12],[134,14,127,18],[135,10,127,20,"path"],[136,8,127,25],[136,9,127,26],[136,12,127,29],[136,13,127,30],[136,14,127,31],[136,16,127,33,"util_crypto_1"],[136,29,127,46],[136,30,127,47,"keyExtractPath"],[136,44,127,61],[136,46,127,63,"suri"],[136,50,127,67],[136,51,127,68],[137,8,128,12],[137,14,128,18,"derived"],[137,21,128,25],[137,24,128,28],[137,25,128,29],[137,26,128,30],[137,28,128,32,"util_crypto_1"],[137,41,128,45],[137,42,128,46,"keyFromPath"],[137,53,128,57],[137,55,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,"sign"],[155,13,140,15,"message"],[155,20,140,22],[155,22,140,24,"options"],[155,29,140,31],[155,32,140,34],[155,33,140,35],[155,34,140,36],[155,39,140,41],[156,8,141,12],[156,12,141,16,"isLocked"],[156,20,141,24],[156,21,141,25,"secretKey"],[156,30,141,34],[156,31,141,35],[156,33,141,37],[157,10,142,16],[157,16,142,22],[157,20,142,26,"Error"],[157,25,142,31],[157,26,142,32],[157,62,142,68],[157,63,142,69],[158,8,143,12],[159,8,144,12],[159,15,144,19],[159,16,144,20],[159,17,144,21],[159,19,144,23,"util_1"],[159,25,144,29],[159,26,144,30,"u8aConcat"],[159,35,144,39],[159,37,144,41,"options"],[159,44,144,48],[159,45,144,49,"withType"],[159,53,144,57],[159,56,145,18,"TYPE_PREFIX"],[159,67,145,29],[159,68,145,30,"type"],[159,72,145,34],[159,73,145,35],[159,76,146,18,"SIG_TYPE_NONE"],[159,89,146,31],[159,91,146,33,"TYPE_SIGNATURE"],[159,105,146,47],[159,106,146,48,"type"],[159,110,146,52],[159,111,146,53],[159,112,146,54],[159,113,146,55],[159,114,146,56],[159,116,146,58,"util_1"],[159,122,146,64],[159,123,146,65,"u8aToU8a"],[159,131,146,73],[159,133,146,75,"message"],[159,140,146,82],[159,141,146,83],[159,143,146,85],[160,10,146,87,"publicKey"],[160,19,146,96],[161,10,146,98,"secretKey"],[162,8,146,108],[162,9,146,109],[162,10,146,110],[162,11,146,111],[163,6,147,8],[163,7,147,9],[164,6,148,8,"toJson"],[164,12,148,14],[164,14,148,17,"passphrase"],[164,24,148,27],[164,28,148,32],[165,8,149,12],[166,8,150,12],[167,8,151,12],[168,8,152,12],[168,14,152,18,"address"],[168,21,152,25],[168,24,152,28],[168,25,152,29],[168,32,152,36],[168,34,152,38],[168,44,152,48],[168,45,152,49],[168,46,152,50,"includes"],[168,54,152,58],[168,55,152,59,"type"],[168,59,152,63],[168,60,152,64],[168,63,153,18,"publicKey"],[168,72,153,27],[168,73,153,28,"length"],[168,79,153,34],[168,84,153,39],[168,86,153,41],[168,89,154,22],[168,90,154,23],[168,91,154,24],[168,93,154,26,"util_1"],[168,99,154,32],[168,100,154,33,"u8aToHex"],[168,108,154,41],[168,110,154,43,"publicKey"],[168,119,154,52],[168,120,154,53],[168,123,155,22],[168,124,155,23],[168,125,155,24],[168,127,155,26,"util_1"],[168,133,155,32],[168,134,155,33,"u8aToHex"],[168,142,155,41],[168,144,155,43],[168,145,155,44],[168,146,155,45],[168,148,155,47,"util_crypto_1"],[168,161,155,60],[168,162,155,61,"secp256k1Compress"],[168,179,155,78],[168,181,155,80,"publicKey"],[168,190,155,89],[168,191,155,90],[168,192,155,91],[168,195,156,18,"encodeAddress"],[168,208,156,31],[168,209,156,32],[168,210,156,33],[169,8,157,12],[169,15,157,19],[169,16,157,20],[169,17,157,21],[169,19,157,23,"toJson_js_1"],[169,30,157,34],[169,31,157,35,"pairToJson"],[169,41,157,45],[169,43,157,47,"type"],[169,47,157,51],[169,49,157,53],[170,10,157,55,"address"],[170,17,157,62],[171,10,157,64,"meta"],[172,8,157,69],[172,9,157,70],[172,11,157,72,"recode"],[172,17,157,78],[172,18,157,79,"passphrase"],[172,28,157,89],[172,29,157,90],[172,31,157,92],[172,32,157,93],[172,33,157,94,"passphrase"],[172,43,157,104],[172,44,157,105],[173,6,158,8],[173,7,158,9],[174,6,159,8,"unlock"],[174,12,159,14],[174,14,159,17,"passphrase"],[174,24,159,27],[174,28,159,32],[175,8,160,12],[175,15,160,19,"decodePkcs8"],[175,26,160,30],[175,27,160,31,"passphrase"],[175,37,160,41],[175,38,160,42],[176,6,161,8],[176,7,161,9],[177,6,162,8,"verify"],[177,12,162,14],[177,14,162,16,"verify"],[177,15,162,17,"message"],[177,22,162,24],[177,24,162,26,"signature"],[177,33,162,35],[177,35,162,37,"signerPublic"],[177,47,162,49],[177,52,162,54],[178,8,163,12],[178,15,163,19],[178,16,163,20],[178,17,163,21],[178,19,163,23,"util_crypto_1"],[178,32,163,36],[178,33,163,37,"signatureVerify"],[178,48,163,52],[178,50,163,54,"message"],[178,57,163,61],[178,59,163,63,"signature"],[178,68,163,72],[178,70,163,74,"TYPE_ADDRESS"],[178,82,163,86],[178,83,163,87,"type"],[178,87,163,91],[178,88,163,92],[178,89,163,93],[178,90,163,94],[178,91,163,95],[178,93,163,97,"util_1"],[178,99,163,103],[178,100,163,104,"u8aToU8a"],[178,108,163,112],[178,110,163,114,"signerPublic"],[178,122,163,126],[178,123,163,127],[178,124,163,128],[178,125,163,129],[178,126,163,130,"isValid"],[178,133,163,137],[179,6,164,8],[179,7,164,9],[180,6,165,8,"vrfSign"],[180,13,165,15],[180,15,165,17,"vrfSign"],[180,16,165,18,"message"],[180,23,165,25],[180,25,165,27,"context"],[180,32,165,34],[180,34,165,36,"extra"],[180,39,165,41],[180,44,165,46],[181,8,166,12],[181,12,166,16,"isLocked"],[181,20,166,24],[181,21,166,25,"secretKey"],[181,30,166,34],[181,31,166,35],[181,33,166,37],[182,10,167,16],[182,16,167,22],[182,20,167,26,"Error"],[182,25,167,31],[182,26,167,32],[182,62,167,68],[182,63,167,69],[183,8,168,12],[184,8,169,12],[184,12,169,16,"type"],[184,16,169,20],[184,21,169,25],[184,30,169,34],[184,32,169,36],[185,10,170,16],[185,17,170,23],[185,18,170,24],[185,19,170,25],[185,21,170,27,"util_crypto_1"],[185,34,170,40],[185,35,170,41,"sr25519VrfSign"],[185,49,170,55],[185,51,170,57,"message"],[185,58,170,64],[185,60,170,66],[186,12,170,68,"secretKey"],[187,10,170,78],[187,11,170,79],[187,13,170,81,"context"],[187,20,170,88],[187,22,170,90,"extra"],[187,27,170,95],[187,28,170,96],[188,8,171,12],[189,8,172,12],[189,14,172,18,"proof"],[189,19,172,23],[189,22,172,26,"TYPE_SIGNATURE"],[189,36,172,40],[189,37,172,41,"type"],[189,41,172,45],[189,42,172,46],[189,43,172,47],[189,44,172,48],[189,45,172,49],[189,47,172,51,"util_1"],[189,53,172,57],[189,54,172,58,"u8aToU8a"],[189,62,172,66],[189,64,172,68,"message"],[189,71,172,75],[189,72,172,76],[189,74,172,78],[190,10,172,80,"publicKey"],[190,19,172,89],[191,10,172,91,"secretKey"],[192,8,172,101],[192,9,172,102],[192,10,172,103],[193,8,173,12],[193,15,173,19],[193,16,173,20],[193,17,173,21],[193,19,173,23,"util_1"],[193,25,173,29],[193,26,173,30,"u8aConcat"],[193,35,173,39],[193,37,173,41,"vrfHash"],[193,44,173,48],[193,45,173,49,"proof"],[193,50,173,54],[193,52,173,56,"context"],[193,59,173,63],[193,61,173,65,"extra"],[193,66,173,70],[193,67,173,71],[193,69,173,73,"proof"],[193,74,173,78],[193,75,173,79],[194,6,174,8],[194,7,174,9],[195,6,175,8,"vrfVerify"],[195,15,175,17],[195,17,175,19,"vrfVerify"],[195,18,175,20,"message"],[195,25,175,27],[195,27,175,29,"vrfResult"],[195,36,175,38],[195,38,175,40,"signerPublic"],[195,50,175,52],[195,52,175,54,"context"],[195,59,175,61],[195,61,175,63,"extra"],[195,66,175,68],[195,71,175,73],[196,8,176,12],[196,12,176,16,"type"],[196,16,176,20],[196,21,176,25],[196,30,176,34],[196,32,176,36],[197,10,177,16],[197,17,177,23],[197,18,177,24],[197,19,177,25],[197,21,177,27,"util_crypto_1"],[197,34,177,40],[197,35,177,41,"sr25519VrfVerify"],[197,51,177,57],[197,53,177,59,"message"],[197,60,177,66],[197,62,177,68,"vrfResult"],[197,71,177,77],[197,73,177,79,"publicKey"],[197,82,177,88],[197,84,177,90,"context"],[197,91,177,97],[197,93,177,99,"extra"],[197,98,177,104],[197,99,177,105],[198,8,178,12],[199,8,179,12],[199,14,179,18,"result"],[199,20,179,24],[199,23,179,27],[199,24,179,28],[199,25,179,29],[199,27,179,31,"util_crypto_1"],[199,40,179,44],[199,41,179,45,"signatureVerify"],[199,56,179,60],[199,58,179,62,"message"],[199,65,179,69],[199,67,179,71],[199,68,179,72],[199,69,179,73],[199,71,179,75,"util_1"],[199,77,179,81],[199,78,179,82,"u8aConcat"],[199,87,179,91],[199,89,179,93,"TYPE_PREFIX"],[199,100,179,104],[199,101,179,105,"type"],[199,105,179,109],[199,106,179,110],[199,108,179,112,"vrfResult"],[199,117,179,121],[199,118,179,122,"subarray"],[199,126,179,130],[199,127,179,131],[199,129,179,133],[199,130,179,134],[199,131,179,135],[199,133,179,137,"TYPE_ADDRESS"],[199,145,179,149],[199,146,179,150,"type"],[199,150,179,154],[199,151,179,155],[199,152,179,156],[199,153,179,157],[199,154,179,158],[199,156,179,160,"util_1"],[199,162,179,166],[199,163,179,167,"u8aToU8a"],[199,171,179,175],[199,173,179,177,"signerPublic"],[199,185,179,189],[199,186,179,190],[199,187,179,191],[199,188,179,192],[200,8,180,12],[200,15,180,19,"result"],[200,21,180,25],[200,22,180,26,"isValid"],[200,29,180,33],[200,33,180,37],[200,34,180,38],[200,35,180,39],[200,37,180,41,"util_1"],[200,43,180,47],[200,44,180,48,"u8aEq"],[200,49,180,53],[200,51,180,55,"vrfResult"],[200,60,180,64],[200,61,180,65,"subarray"],[200,69,180,73],[200,70,180,74],[200,71,180,75],[200,73,180,77],[200,75,180,79],[200,76,180,80],[200,78,180,82,"vrfHash"],[200,85,180,89],[200,86,180,90,"vrfResult"],[200,95,180,99],[200,96,180,100,"subarray"],[200,104,180,108],[200,105,180,109],[200,107,180,111],[200,108,180,112],[200,110,180,114,"context"],[200,117,180,121],[200,119,180,123,"extra"],[200,124,180,128],[200,125,180,129],[200,126,180,130],[201,6,181,8],[202,4,182,4],[202,5,182,5],[203,2,183,0],[204,0,183,1],[204,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"}]} |