{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":94,"index":94}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util-crypto","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":95},"end":{"line":2,"column":362,"index":457}}],"key":"i6n5nZx9jV9OWiqinE0v9Jgj+DA=","exportNames":["*"],"imports":1}},{"name":"./decode.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":458},"end":{"line":3,"column":41,"index":499}}],"key":"TmkOQYXGsJWDYt+2Zv46gtCcFf0=","exportNames":["*"],"imports":1}},{"name":"./encode.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":4,"column":0,"index":500},"end":{"line":4,"column":41,"index":541}}],"key":"9UNrGXgjM0id6VNQizMAH8E53gM=","exportNames":["*"],"imports":1}},{"name":"./toJson.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":5,"column":0,"index":542},"end":{"line":5,"column":41,"index":583}}],"key":"IOv4iddbSddcqW5oe5FTdipN5ek=","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 _polkadotUtil = require(_dependencyMap[0], \"@polkadot/util\");\n var _polkadotUtilCrypto = require(_dependencyMap[1], \"@polkadot/util-crypto\");\n var _decodeJs = require(_dependencyMap[2], \"./decode.js\");\n var _encodeJs = require(_dependencyMap[3], \"./encode.js\");\n var _toJsonJs = require(_dependencyMap[4], \"./toJson.js\");\n const SIG_TYPE_NONE = new Uint8Array();\n const TYPE_FROM_SEED = {\n ecdsa: _polkadotUtilCrypto.secp256k1PairFromSeed,\n ed25519: _polkadotUtilCrypto.ed25519PairFromSeed,\n ethereum: _polkadotUtilCrypto.secp256k1PairFromSeed,\n sr25519: _polkadotUtilCrypto.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, _polkadotUtilCrypto.secp256k1Sign)(m, p, 'blake2'),\n ed25519: _polkadotUtilCrypto.ed25519Sign,\n ethereum: (m, p) => (0, _polkadotUtilCrypto.secp256k1Sign)(m, p, 'keccak'),\n sr25519: _polkadotUtilCrypto.sr25519Sign\n };\n const TYPE_ADDRESS = {\n ecdsa: p => p.length > 32 ? (0, _polkadotUtilCrypto.blake2AsU8a)(p) : p,\n ed25519: p => p,\n ethereum: p => p.length === 20 ? p : (0, _polkadotUtilCrypto.keccakAsU8a)((0, _polkadotUtilCrypto.secp256k1Expand)(p)),\n sr25519: p => p\n };\n function isLocked(secretKey) {\n return !secretKey || (0, _polkadotUtil.u8aEmpty)(secretKey);\n }\n function vrfHash(proof, context, extra) {\n return (0, _polkadotUtilCrypto.blake2AsU8a)((0, _polkadotUtil.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, _decodeJs.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, _encodeJs.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, _polkadotUtilCrypto.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, _polkadotUtilCrypto.keyExtractPath)(suri);\n const derived = (0, _polkadotUtilCrypto.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, _polkadotUtil.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, _polkadotUtil.u8aConcat)(options.withType ? TYPE_PREFIX[type] : SIG_TYPE_NONE, TYPE_SIGNATURE[type]((0, _polkadotUtil.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, _polkadotUtil.u8aToHex)(publicKey) : (0, _polkadotUtil.u8aToHex)((0, _polkadotUtilCrypto.secp256k1Compress)(publicKey)) : encodeAddress();\n return (0, _toJsonJs.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, _polkadotUtilCrypto.signatureVerify)(message, signature, TYPE_ADDRESS[type]((0, _polkadotUtil.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, _polkadotUtilCrypto.sr25519VrfSign)(message, {\n secretKey\n }, context, extra);\n }\n const proof = TYPE_SIGNATURE[type]((0, _polkadotUtil.u8aToU8a)(message), {\n publicKey,\n secretKey\n });\n return (0, _polkadotUtil.u8aConcat)(vrfHash(proof, context, extra), proof);\n },\n vrfVerify: (message, vrfResult, signerPublic, context, extra) => {\n if (type === 'sr25519') {\n return (0, _polkadotUtilCrypto.sr25519VrfVerify)(message, vrfResult, publicKey, context, extra);\n }\n const result = (0, _polkadotUtilCrypto.signatureVerify)(message, (0, _polkadotUtil.u8aConcat)(TYPE_PREFIX[type], vrfResult.subarray(32)), TYPE_ADDRESS[type]((0, _polkadotUtil.u8aToU8a)(signerPublic)));\n return result.isValid && (0, _polkadotUtil.u8aEq)(vrfResult.subarray(0, 32), vrfHash(vrfResult.subarray(32), context, extra));\n }\n };\n }\n});","lineCount":204,"map":[[7,2,68,0,"exports"],[7,9,68,0],[7,10,68,0,"createPair"],[7,20,68,0],[7,23,68,0,"createPair"],[7,33,68,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,6,2,0,"_polkadotUtilCrypto"],[9,25,2,0],[9,28,2,0,"require"],[9,35,2,0],[9,36,2,0,"_dependencyMap"],[9,50,2,0],[10,2,3,0],[10,6,3,0,"_decodeJs"],[10,15,3,0],[10,18,3,0,"require"],[10,25,3,0],[10,26,3,0,"_dependencyMap"],[10,40,3,0],[11,2,4,0],[11,6,4,0,"_encodeJs"],[11,15,4,0],[11,18,4,0,"require"],[11,25,4,0],[11,26,4,0,"_dependencyMap"],[11,40,4,0],[12,2,5,0],[12,6,5,0,"_toJsonJs"],[12,15,5,0],[12,18,5,0,"require"],[12,25,5,0],[12,26,5,0,"_dependencyMap"],[12,40,5,0],[13,2,6,0],[13,8,6,6,"SIG_TYPE_NONE"],[13,21,6,19],[13,24,6,22],[13,28,6,26,"Uint8Array"],[13,38,6,36],[13,39,6,37],[13,40,6,38],[14,2,7,0],[14,8,7,6,"TYPE_FROM_SEED"],[14,22,7,20],[14,25,7,23],[15,4,8,4,"ecdsa"],[15,9,8,9],[15,11,8,11,"secp256k1FromSeed"],[15,30,8,28],[15,31,8,28,"secp256k1PairFromSeed"],[15,52,8,28],[16,4,9,4,"ed25519"],[16,11,9,11],[16,13,9,13,"ed25519FromSeed"],[16,32,9,28],[16,33,9,28,"ed25519PairFromSeed"],[16,52,9,28],[17,4,10,4,"ethereum"],[17,12,10,12],[17,14,10,14,"secp256k1FromSeed"],[17,33,10,31],[17,34,10,31,"secp256k1PairFromSeed"],[17,55,10,31],[18,4,11,4,"sr25519"],[18,11,11,11],[18,13,11,13,"sr25519FromSeed"],[18,32,11,28],[18,33,11,28,"sr25519PairFromSeed"],[19,2,12,0],[19,3,12,1],[20,2,13,0],[20,8,13,6,"TYPE_PREFIX"],[20,19,13,17],[20,22,13,20],[21,4,14,4,"ecdsa"],[21,9,14,9],[21,11,14,11],[21,15,14,15,"Uint8Array"],[21,25,14,25],[21,26,14,26],[21,27,14,27],[21,28,14,28],[21,29,14,29],[21,30,14,30],[22,4,15,4,"ed25519"],[22,11,15,11],[22,13,15,13],[22,17,15,17,"Uint8Array"],[22,27,15,27],[22,28,15,28],[22,29,15,29],[22,30,15,30],[22,31,15,31],[22,32,15,32],[23,4,16,4,"ethereum"],[23,12,16,12],[23,14,16,14],[23,18,16,18,"Uint8Array"],[23,28,16,28],[23,29,16,29],[23,30,16,30],[23,31,16,31],[23,32,16,32],[23,33,16,33],[24,4,17,4,"sr25519"],[24,11,17,11],[24,13,17,13],[24,17,17,17,"Uint8Array"],[24,27,17,27],[24,28,17,28],[24,29,17,29],[24,30,17,30],[24,31,17,31],[25,2,18,0],[25,3,18,1],[26,2,19,0],[26,8,19,6,"TYPE_SIGNATURE"],[26,22,19,20],[26,25,19,23],[27,4,20,4,"ecdsa"],[27,9,20,9],[27,11,20,11,"ecdsa"],[27,12,20,12,"m"],[27,13,20,13],[27,15,20,15,"p"],[27,16,20,16],[27,21,20,21],[27,25,20,21,"secp256k1Sign"],[27,44,20,34],[27,45,20,34,"secp256k1Sign"],[27,58,20,34],[27,60,20,35,"m"],[27,61,20,36],[27,63,20,38,"p"],[27,64,20,39],[27,66,20,41],[27,74,20,49],[27,75,20,50],[28,4,21,4,"ed25519"],[28,11,21,11],[28,13,21,13,"ed25519Sign"],[28,32,21,24],[28,33,21,24,"ed25519Sign"],[28,44,21,24],[29,4,22,4,"ethereum"],[29,12,22,12],[29,14,22,14,"ethereum"],[29,15,22,15,"m"],[29,16,22,16],[29,18,22,18,"p"],[29,19,22,19],[29,24,22,24],[29,28,22,24,"secp256k1Sign"],[29,47,22,37],[29,48,22,37,"secp256k1Sign"],[29,61,22,37],[29,63,22,38,"m"],[29,64,22,39],[29,66,22,41,"p"],[29,67,22,42],[29,69,22,44],[29,77,22,52],[29,78,22,53],[30,4,23,4,"sr25519"],[30,11,23,11],[30,13,23,13,"sr25519Sign"],[30,32,23,24],[30,33,23,24,"sr25519Sign"],[31,2,24,0],[31,3,24,1],[32,2,25,0],[32,8,25,6,"TYPE_ADDRESS"],[32,20,25,18],[32,23,25,21],[33,4,26,4,"ecdsa"],[33,9,26,9],[33,11,26,12,"p"],[33,12,26,13],[33,16,26,18,"p"],[33,17,26,19],[33,18,26,20,"length"],[33,24,26,26],[33,27,26,29],[33,29,26,31],[33,32,26,34],[33,36,26,34,"blake2AsU8a"],[33,55,26,45],[33,56,26,45,"blake2AsU8a"],[33,67,26,45],[33,69,26,46,"p"],[33,70,26,47],[33,71,26,48],[33,74,26,51,"p"],[33,75,26,52],[34,4,27,4,"ed25519"],[34,11,27,11],[34,13,27,14,"p"],[34,14,27,15],[34,18,27,20,"p"],[34,19,27,21],[35,4,28,4,"ethereum"],[35,12,28,12],[35,14,28,15,"p"],[35,15,28,16],[35,19,28,21,"p"],[35,20,28,22],[35,21,28,23,"length"],[35,27,28,29],[35,32,28,34],[35,34,28,36],[35,37,28,39,"p"],[35,38,28,40],[35,41,28,43],[35,45,28,43,"keccakAsU8a"],[35,64,28,54],[35,65,28,54,"keccakAsU8a"],[35,76,28,54],[35,78,28,55],[35,82,28,55,"secp256k1Expand"],[35,101,28,70],[35,102,28,70,"secp256k1Expand"],[35,117,28,70],[35,119,28,71,"p"],[35,120,28,72],[35,121,28,73],[35,122,28,74],[36,4,29,4,"sr25519"],[36,11,29,11],[36,13,29,14,"p"],[36,14,29,15],[36,18,29,20,"p"],[37,2,30,0],[37,3,30,1],[38,2,31,0],[38,11,31,9,"isLocked"],[38,19,31,17,"isLocked"],[38,20,31,18,"secretKey"],[38,29,31,27],[38,31,31,29],[39,4,32,4],[39,11,32,11],[39,12,32,12,"secretKey"],[39,21,32,21],[39,25,32,25],[39,29,32,25,"u8aEmpty"],[39,42,32,33],[39,43,32,33,"u8aEmpty"],[39,51,32,33],[39,53,32,34,"secretKey"],[39,62,32,43],[39,63,32,44],[40,2,33,0],[41,2,34,0],[41,11,34,9,"vrfHash"],[41,18,34,16,"vrfHash"],[41,19,34,17,"proof"],[41,24,34,22],[41,26,34,24,"context"],[41,33,34,31],[41,35,34,33,"extra"],[41,40,34,38],[41,42,34,40],[42,4,35,4],[42,11,35,11],[42,15,35,11,"blake2AsU8a"],[42,34,35,22],[42,35,35,22,"blake2AsU8a"],[42,46,35,22],[42,48,35,23],[42,52,35,23,"u8aConcat"],[42,65,35,32],[42,66,35,32,"u8aConcat"],[42,75,35,32],[42,77,35,33,"context"],[42,84,35,40],[42,88,35,44],[42,90,35,46],[42,92,35,48,"extra"],[42,97,35,53],[42,101,35,57],[42,103,35,59],[42,105,35,61,"proof"],[42,110,35,66],[42,111,35,67],[42,112,35,68],[43,2,36,0],[44,2,37,0],[45,0,38,0],[46,0,39,0],[47,0,40,0],[48,0,41,0],[49,0,42,0],[50,0,43,0],[51,0,44,0],[52,0,45,0],[53,0,46,0],[54,0,47,0],[55,0,48,0],[56,0,49,0],[57,0,50,0],[58,0,51,0],[59,0,52,0],[60,0,53,0],[61,0,54,0],[62,0,55,0],[63,0,56,0],[64,0,57,0],[65,0,58,0],[66,0,59,0],[67,0,60,0],[68,0,61,0],[69,0,62,0],[70,0,63,0],[71,0,64,0],[72,0,65,0],[73,0,66,0],[74,0,67,0],[75,2,68,7],[75,11,68,16,"createPair"],[75,21,68,26,"createPair"],[75,22,68,27],[76,4,68,29,"toSS58"],[76,10,68,35],[77,4,68,37,"type"],[78,2,68,42],[78,3,68,43],[78,5,68,45],[79,4,68,47,"publicKey"],[79,13,68,56],[80,4,68,58,"secretKey"],[81,2,68,68],[81,3,68,69],[81,5,68,71,"meta"],[81,9,68,75],[81,12,68,78],[81,13,68,79],[81,14,68,80],[81,16,68,82,"encoded"],[81,23,68,89],[81,26,68,92],[81,30,68,96],[81,32,68,98,"encTypes"],[81,40,68,106],[81,42,68,108],[82,4,69,4],[82,10,69,10,"decodePkcs8"],[82,21,69,21],[82,24,69,24,"decodePkcs8"],[82,25,69,25,"passphrase"],[82,35,69,35],[82,37,69,37,"userEncoded"],[82,48,69,48],[82,53,69,53],[83,6,70,8],[83,12,70,14,"decoded"],[83,19,70,21],[83,22,70,24],[83,26,70,24,"decodePair"],[83,35,70,34],[83,36,70,34,"decodePair"],[83,46,70,34],[83,48,70,35,"passphrase"],[83,58,70,45],[83,60,70,47,"userEncoded"],[83,71,70,58],[83,75,70,62,"encoded"],[83,82,70,69],[83,84,70,71,"encTypes"],[83,92,70,79],[83,93,70,80],[84,6,71,8],[84,10,71,12,"decoded"],[84,17,71,19],[84,18,71,20,"secretKey"],[84,27,71,29],[84,28,71,30,"length"],[84,34,71,36],[84,39,71,41],[84,41,71,43],[84,43,71,45],[85,8,72,12,"publicKey"],[85,17,72,21],[85,20,72,24,"decoded"],[85,27,72,31],[85,28,72,32,"publicKey"],[85,37,72,41],[86,8,73,12,"secretKey"],[86,17,73,21],[86,20,73,24,"decoded"],[86,27,73,31],[86,28,73,32,"secretKey"],[86,37,73,41],[87,6,74,8],[87,7,74,9],[87,13,75,13],[88,8,76,12],[88,14,76,18,"pair"],[88,18,76,22],[88,21,76,25,"TYPE_FROM_SEED"],[88,35,76,39],[88,36,76,40,"type"],[88,40,76,44],[88,41,76,45],[88,42,76,46,"decoded"],[88,49,76,53],[88,50,76,54,"secretKey"],[88,59,76,63],[88,60,76,64],[89,8,77,12,"publicKey"],[89,17,77,21],[89,20,77,24,"pair"],[89,24,77,28],[89,25,77,29,"publicKey"],[89,34,77,38],[90,8,78,12,"secretKey"],[90,17,78,21],[90,20,78,24,"pair"],[90,24,78,28],[90,25,78,29,"secretKey"],[90,34,78,38],[91,6,79,8],[92,4,80,4],[92,5,80,5],[93,4,81,4],[93,10,81,10,"recode"],[93,16,81,16],[93,19,81,20,"passphrase"],[93,29,81,30],[93,33,81,35],[94,6,82,8,"isLocked"],[94,14,82,16],[94,15,82,17,"secretKey"],[94,24,82,26],[94,25,82,27],[94,29,82,31,"encoded"],[94,36,82,38],[94,40,82,42,"decodePkcs8"],[94,51,82,53],[94,52,82,54,"passphrase"],[94,62,82,64],[94,64,82,66,"encoded"],[94,71,82,73],[94,72,82,74],[95,6,83,8,"encoded"],[95,13,83,15],[95,16,83,18],[95,20,83,18,"encodePair"],[95,29,83,28],[95,30,83,28,"encodePair"],[95,40,83,28],[95,42,83,29],[96,8,83,31,"publicKey"],[96,17,83,40],[97,8,83,42,"secretKey"],[98,6,83,52],[98,7,83,53],[98,9,83,55,"passphrase"],[98,19,83,65],[98,20,83,66],[98,21,83,67],[98,22,83,68],[99,6,84,8,"encTypes"],[99,14,84,16],[99,17,84,19,"undefined"],[99,26,84,28],[99,27,84,29],[99,28,84,30],[100,6,85,8],[100,13,85,15,"encoded"],[100,20,85,22],[101,4,86,4],[101,5,86,5],[102,4,87,4],[102,10,87,10,"encodeAddress"],[102,23,87,23],[102,26,87,26,"encodeAddress"],[102,27,87,26],[102,32,87,32],[103,6,88,8],[103,12,88,14,"raw"],[103,15,88,17],[103,18,88,20,"TYPE_ADDRESS"],[103,30,88,32],[103,31,88,33,"type"],[103,35,88,37],[103,36,88,38],[103,37,88,39,"publicKey"],[103,46,88,48],[103,47,88,49],[104,6,89,8],[104,13,89,15,"type"],[104,17,89,19],[104,22,89,24],[104,32,89,34],[104,35,90,14],[104,39,90,14,"ethereumEncode"],[104,58,90,28],[104,59,90,28,"ethereumEncode"],[104,73,90,28],[104,75,90,29,"raw"],[104,78,90,32],[104,79,90,33],[104,82,91,14,"toSS58"],[104,88,91,20],[104,89,91,21,"raw"],[104,92,91,24],[104,93,91,25],[105,4,92,4],[105,5,92,5],[106,4,93,4],[106,11,93,11],[107,6,94,8],[107,10,94,12,"address"],[107,17,94,19,"address"],[107,18,94,19],[107,20,94,22],[108,8,95,12],[108,15,95,19,"encodeAddress"],[108,28,95,32],[108,29,95,33],[108,30,95,34],[109,6,96,8],[109,7,96,9],[110,6,97,8],[110,10,97,12,"addressRaw"],[110,20,97,22,"addressRaw"],[110,21,97,22],[110,23,97,25],[111,8,98,12],[111,14,98,18,"raw"],[111,17,98,21],[111,20,98,24,"TYPE_ADDRESS"],[111,32,98,36],[111,33,98,37,"type"],[111,37,98,41],[111,38,98,42],[111,39,98,43,"publicKey"],[111,48,98,52],[111,49,98,53],[112,8,99,12],[112,15,99,19,"type"],[112,19,99,23],[112,24,99,28],[112,34,99,38],[112,37,100,18,"raw"],[112,40,100,21],[112,41,100,22,"slice"],[112,46,100,27],[112,47,100,28],[112,48,100,29],[112,50,100,31],[112,51,100,32],[112,54,101,18,"raw"],[112,57,101,21],[113,6,102,8],[113,7,102,9],[114,6,103,8],[114,10,103,12,"isLocked"],[114,18,103,20,"isLocked"],[114,19,103,20],[114,21,103,23],[115,8,104,12],[115,15,104,19,"isLocked"],[115,23,104,27],[115,24,104,28,"secretKey"],[115,33,104,37],[115,34,104,38],[116,6,105,8],[116,7,105,9],[117,6,106,8],[117,10,106,12,"meta"],[117,14,106,16,"meta"],[117,15,106,16],[117,17,106,19],[118,8,107,12],[118,15,107,19,"meta"],[118,19,107,23],[119,6,108,8],[119,7,108,9],[120,6,109,8],[120,10,109,12,"publicKey"],[120,19,109,21,"publicKey"],[120,20,109,21],[120,22,109,24],[121,8,110,12],[121,15,110,19,"publicKey"],[121,24,110,28],[122,6,111,8],[122,7,111,9],[123,6,112,8],[123,10,112,12,"type"],[123,14,112,16,"type"],[123,15,112,16],[123,17,112,19],[124,8,113,12],[124,15,113,19,"type"],[124,19,113,23],[125,6,114,8],[125,7,114,9],[126,6,115,8],[127,6,116,8,"decodePkcs8"],[127,17,116,19],[128,6,117,8,"derive"],[128,12,117,14],[128,14,117,16,"derive"],[128,15,117,17,"suri"],[128,19,117,21],[128,21,117,23,"meta"],[128,25,117,27],[128,30,117,32],[129,8,118,12],[129,12,118,16,"type"],[129,16,118,20],[129,21,118,25],[129,31,118,35],[129,33,118,37],[130,10,119,16],[130,16,119,22],[130,20,119,26,"Error"],[130,25,119,31],[130,26,119,32],[130,60,119,66],[130,61,119,67],[131,8,120,12],[131,9,120,13],[131,15,121,17],[131,19,121,21,"isLocked"],[131,27,121,29],[131,28,121,30,"secretKey"],[131,37,121,39],[131,38,121,40],[131,40,121,42],[132,10,122,16],[132,16,122,22],[132,20,122,26,"Error"],[132,25,122,31],[132,26,122,32],[132,61,122,67],[132,62,122,68],[133,8,123,12],[134,8,124,12],[134,14,124,18],[135,10,124,20,"path"],[136,8,124,25],[136,9,124,26],[136,12,124,29],[136,16,124,29,"keyExtractPath"],[136,35,124,43],[136,36,124,43,"keyExtractPath"],[136,50,124,43],[136,52,124,44,"suri"],[136,56,124,48],[136,57,124,49],[137,8,125,12],[137,14,125,18,"derived"],[137,21,125,25],[137,24,125,28],[137,28,125,28,"keyFromPath"],[137,47,125,39],[137,48,125,39,"keyFromPath"],[137,59,125,39],[137,61,125,40],[138,10,125,42,"publicKey"],[138,19,125,51],[139,10,125,53,"secretKey"],[140,8,125,63],[140,9,125,64],[140,11,125,66,"path"],[140,15,125,70],[140,17,125,72,"type"],[140,21,125,76],[140,22,125,77],[141,8,126,12],[141,15,126,19,"createPair"],[141,25,126,29],[141,26,126,30],[142,10,126,32,"toSS58"],[142,16,126,38],[143,10,126,40,"type"],[144,8,126,45],[144,9,126,46],[144,11,126,48,"derived"],[144,18,126,55],[144,20,126,57,"meta"],[144,24,126,61],[144,26,126,63],[144,30,126,67],[144,31,126,68],[145,6,127,8],[145,7,127,9],[146,6,128,8,"encodePkcs8"],[146,17,128,19],[146,19,128,22,"passphrase"],[146,29,128,32],[146,33,128,37],[147,8,129,12],[147,15,129,19,"recode"],[147,21,129,25],[147,22,129,26,"passphrase"],[147,32,129,36],[147,33,129,37],[148,6,130,8],[148,7,130,9],[149,6,131,8,"lock"],[149,10,131,12],[149,12,131,14,"lock"],[149,13,131,14],[149,18,131,20],[150,8,132,12,"secretKey"],[150,17,132,21],[150,20,132,24],[150,24,132,28,"Uint8Array"],[150,34,132,38],[150,35,132,39],[150,36,132,40],[151,6,133,8],[151,7,133,9],[152,6,134,8,"setMeta"],[152,13,134,15],[152,15,134,18,"additional"],[152,25,134,28],[152,29,134,33],[153,8,135,12,"meta"],[153,12,135,16],[153,15,135,19],[153,19,135,19,"objectSpread"],[153,32,135,31],[153,33,135,31,"objectSpread"],[153,45,135,31],[153,47,135,32],[153,48,135,33],[153,49,135,34],[153,51,135,36,"meta"],[153,55,135,40],[153,57,135,42,"additional"],[153,67,135,52],[153,68,135,53],[154,6,136,8],[154,7,136,9],[155,6,137,8,"sign"],[155,10,137,12],[155,12,137,14,"sign"],[155,13,137,15,"message"],[155,20,137,22],[155,22,137,24,"options"],[155,29,137,31],[155,32,137,34],[155,33,137,35],[155,34,137,36],[155,39,137,41],[156,8,138,12],[156,12,138,16,"isLocked"],[156,20,138,24],[156,21,138,25,"secretKey"],[156,30,138,34],[156,31,138,35],[156,33,138,37],[157,10,139,16],[157,16,139,22],[157,20,139,26,"Error"],[157,25,139,31],[157,26,139,32],[157,62,139,68],[157,63,139,69],[158,8,140,12],[159,8,141,12],[159,15,141,19],[159,19,141,19,"u8aConcat"],[159,32,141,28],[159,33,141,28,"u8aConcat"],[159,42,141,28],[159,44,141,29,"options"],[159,51,141,36],[159,52,141,37,"withType"],[159,60,141,45],[159,63,142,18,"TYPE_PREFIX"],[159,74,142,29],[159,75,142,30,"type"],[159,79,142,34],[159,80,142,35],[159,83,143,18,"SIG_TYPE_NONE"],[159,96,143,31],[159,98,143,33,"TYPE_SIGNATURE"],[159,112,143,47],[159,113,143,48,"type"],[159,117,143,52],[159,118,143,53],[159,119,143,54],[159,123,143,54,"u8aToU8a"],[159,136,143,62],[159,137,143,62,"u8aToU8a"],[159,145,143,62],[159,147,143,63,"message"],[159,154,143,70],[159,155,143,71],[159,157,143,73],[160,10,143,75,"publicKey"],[160,19,143,84],[161,10,143,86,"secretKey"],[162,8,143,96],[162,9,143,97],[162,10,143,98],[162,11,143,99],[163,6,144,8],[163,7,144,9],[164,6,145,8,"toJson"],[164,12,145,14],[164,14,145,17,"passphrase"],[164,24,145,27],[164,28,145,32],[165,8,146,12],[166,8,147,12],[167,8,148,12],[168,8,149,12],[168,14,149,18,"address"],[168,21,149,25],[168,24,149,28],[168,25,149,29],[168,32,149,36],[168,34,149,38],[168,44,149,48],[168,45,149,49],[168,46,149,50,"includes"],[168,54,149,58],[168,55,149,59,"type"],[168,59,149,63],[168,60,149,64],[168,63,150,18,"publicKey"],[168,72,150,27],[168,73,150,28,"length"],[168,79,150,34],[168,84,150,39],[168,86,150,41],[168,89,151,22],[168,93,151,22,"u8aToHex"],[168,106,151,30],[168,107,151,30,"u8aToHex"],[168,115,151,30],[168,117,151,31,"publicKey"],[168,126,151,40],[168,127,151,41],[168,130,152,22],[168,134,152,22,"u8aToHex"],[168,147,152,30],[168,148,152,30,"u8aToHex"],[168,156,152,30],[168,158,152,31],[168,162,152,31,"secp256k1Compress"],[168,181,152,48],[168,182,152,48,"secp256k1Compress"],[168,199,152,48],[168,201,152,49,"publicKey"],[168,210,152,58],[168,211,152,59],[168,212,152,60],[168,215,153,18,"encodeAddress"],[168,228,153,31],[168,229,153,32],[168,230,153,33],[169,8,154,12],[169,15,154,19],[169,19,154,19,"pairToJson"],[169,28,154,29],[169,29,154,29,"pairToJson"],[169,39,154,29],[169,41,154,30,"type"],[169,45,154,34],[169,47,154,36],[170,10,154,38,"address"],[170,17,154,45],[171,10,154,47,"meta"],[172,8,154,52],[172,9,154,53],[172,11,154,55,"recode"],[172,17,154,61],[172,18,154,62,"passphrase"],[172,28,154,72],[172,29,154,73],[172,31,154,75],[172,32,154,76],[172,33,154,77,"passphrase"],[172,43,154,87],[172,44,154,88],[173,6,155,8],[173,7,155,9],[174,6,156,8,"unlock"],[174,12,156,14],[174,14,156,17,"passphrase"],[174,24,156,27],[174,28,156,32],[175,8,157,12],[175,15,157,19,"decodePkcs8"],[175,26,157,30],[175,27,157,31,"passphrase"],[175,37,157,41],[175,38,157,42],[176,6,158,8],[176,7,158,9],[177,6,159,8,"verify"],[177,12,159,14],[177,14,159,16,"verify"],[177,15,159,17,"message"],[177,22,159,24],[177,24,159,26,"signature"],[177,33,159,35],[177,35,159,37,"signerPublic"],[177,47,159,49],[177,52,159,54],[178,8,160,12],[178,15,160,19],[178,19,160,19,"signatureVerify"],[178,38,160,34],[178,39,160,34,"signatureVerify"],[178,54,160,34],[178,56,160,35,"message"],[178,63,160,42],[178,65,160,44,"signature"],[178,74,160,53],[178,76,160,55,"TYPE_ADDRESS"],[178,88,160,67],[178,89,160,68,"type"],[178,93,160,72],[178,94,160,73],[178,95,160,74],[178,99,160,74,"u8aToU8a"],[178,112,160,82],[178,113,160,82,"u8aToU8a"],[178,121,160,82],[178,123,160,83,"signerPublic"],[178,135,160,95],[178,136,160,96],[178,137,160,97],[178,138,160,98],[178,139,160,99,"isValid"],[178,146,160,106],[179,6,161,8],[179,7,161,9],[180,6,162,8,"vrfSign"],[180,13,162,15],[180,15,162,17,"vrfSign"],[180,16,162,18,"message"],[180,23,162,25],[180,25,162,27,"context"],[180,32,162,34],[180,34,162,36,"extra"],[180,39,162,41],[180,44,162,46],[181,8,163,12],[181,12,163,16,"isLocked"],[181,20,163,24],[181,21,163,25,"secretKey"],[181,30,163,34],[181,31,163,35],[181,33,163,37],[182,10,164,16],[182,16,164,22],[182,20,164,26,"Error"],[182,25,164,31],[182,26,164,32],[182,62,164,68],[182,63,164,69],[183,8,165,12],[184,8,166,12],[184,12,166,16,"type"],[184,16,166,20],[184,21,166,25],[184,30,166,34],[184,32,166,36],[185,10,167,16],[185,17,167,23],[185,21,167,23,"sr25519VrfSign"],[185,40,167,37],[185,41,167,37,"sr25519VrfSign"],[185,55,167,37],[185,57,167,38,"message"],[185,64,167,45],[185,66,167,47],[186,12,167,49,"secretKey"],[187,10,167,59],[187,11,167,60],[187,13,167,62,"context"],[187,20,167,69],[187,22,167,71,"extra"],[187,27,167,76],[187,28,167,77],[188,8,168,12],[189,8,169,12],[189,14,169,18,"proof"],[189,19,169,23],[189,22,169,26,"TYPE_SIGNATURE"],[189,36,169,40],[189,37,169,41,"type"],[189,41,169,45],[189,42,169,46],[189,43,169,47],[189,47,169,47,"u8aToU8a"],[189,60,169,55],[189,61,169,55,"u8aToU8a"],[189,69,169,55],[189,71,169,56,"message"],[189,78,169,63],[189,79,169,64],[189,81,169,66],[190,10,169,68,"publicKey"],[190,19,169,77],[191,10,169,79,"secretKey"],[192,8,169,89],[192,9,169,90],[192,10,169,91],[193,8,170,12],[193,15,170,19],[193,19,170,19,"u8aConcat"],[193,32,170,28],[193,33,170,28,"u8aConcat"],[193,42,170,28],[193,44,170,29,"vrfHash"],[193,51,170,36],[193,52,170,37,"proof"],[193,57,170,42],[193,59,170,44,"context"],[193,66,170,51],[193,68,170,53,"extra"],[193,73,170,58],[193,74,170,59],[193,76,170,61,"proof"],[193,81,170,66],[193,82,170,67],[194,6,171,8],[194,7,171,9],[195,6,172,8,"vrfVerify"],[195,15,172,17],[195,17,172,19,"vrfVerify"],[195,18,172,20,"message"],[195,25,172,27],[195,27,172,29,"vrfResult"],[195,36,172,38],[195,38,172,40,"signerPublic"],[195,50,172,52],[195,52,172,54,"context"],[195,59,172,61],[195,61,172,63,"extra"],[195,66,172,68],[195,71,172,73],[196,8,173,12],[196,12,173,16,"type"],[196,16,173,20],[196,21,173,25],[196,30,173,34],[196,32,173,36],[197,10,174,16],[197,17,174,23],[197,21,174,23,"sr25519VrfVerify"],[197,40,174,39],[197,41,174,39,"sr25519VrfVerify"],[197,57,174,39],[197,59,174,40,"message"],[197,66,174,47],[197,68,174,49,"vrfResult"],[197,77,174,58],[197,79,174,60,"publicKey"],[197,88,174,69],[197,90,174,71,"context"],[197,97,174,78],[197,99,174,80,"extra"],[197,104,174,85],[197,105,174,86],[198,8,175,12],[199,8,176,12],[199,14,176,18,"result"],[199,20,176,24],[199,23,176,27],[199,27,176,27,"signatureVerify"],[199,46,176,42],[199,47,176,42,"signatureVerify"],[199,62,176,42],[199,64,176,43,"message"],[199,71,176,50],[199,73,176,52],[199,77,176,52,"u8aConcat"],[199,90,176,61],[199,91,176,61,"u8aConcat"],[199,100,176,61],[199,102,176,62,"TYPE_PREFIX"],[199,113,176,73],[199,114,176,74,"type"],[199,118,176,78],[199,119,176,79],[199,121,176,81,"vrfResult"],[199,130,176,90],[199,131,176,91,"subarray"],[199,139,176,99],[199,140,176,100],[199,142,176,102],[199,143,176,103],[199,144,176,104],[199,146,176,106,"TYPE_ADDRESS"],[199,158,176,118],[199,159,176,119,"type"],[199,163,176,123],[199,164,176,124],[199,165,176,125],[199,169,176,125,"u8aToU8a"],[199,182,176,133],[199,183,176,133,"u8aToU8a"],[199,191,176,133],[199,193,176,134,"signerPublic"],[199,205,176,146],[199,206,176,147],[199,207,176,148],[199,208,176,149],[200,8,177,12],[200,15,177,19,"result"],[200,21,177,25],[200,22,177,26,"isValid"],[200,29,177,33],[200,33,177,37],[200,37,177,37,"u8aEq"],[200,50,177,42],[200,51,177,42,"u8aEq"],[200,56,177,42],[200,58,177,43,"vrfResult"],[200,67,177,52],[200,68,177,53,"subarray"],[200,76,177,61],[200,77,177,62],[200,78,177,63],[200,80,177,65],[200,82,177,67],[200,83,177,68],[200,85,177,70,"vrfHash"],[200,92,177,77],[200,93,177,78,"vrfResult"],[200,102,177,87],[200,103,177,88,"subarray"],[200,111,177,96],[200,112,177,97],[200,114,177,99],[200,115,177,100],[200,117,177,102,"context"],[200,124,177,109],[200,126,177,111,"extra"],[200,131,177,116],[200,132,177,117],[200,133,177,118],[201,6,178,8],[202,4,179,4],[202,5,179,5],[203,2,180,0],[204,0,180,1],[204,3]],"functionMap":{"names":["","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;WCmB,uCD;cEE,uCF;WGI,yCH;aIC,QJ;cKC,4DL;aMC,QN;AOE;CPE;AQC;CRE;OSgC;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":false},"type":"js/module"}]}