[CI Skip] 0.34.2
This commit is contained in:
@@ -27,7 +27,7 @@ Overview
|
||||
|
||||
⊕ **new Keyring**(options: *[KeyringOptions](../modules/_types_.md#keyringoptions)*): [Keyring](_index_.keyring.md)
|
||||
|
||||
*Defined in [index.ts:32](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/index.ts#L32)*
|
||||
*Defined in [index.ts:32](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/index.ts#L32)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -49,7 +49,7 @@ ___
|
||||
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[decodeAddress](../interfaces/_types_.keyringinstance.md#decodeaddress)*
|
||||
|
||||
*Defined in [index.ts:43](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/index.ts#L43)*
|
||||
*Defined in [index.ts:43](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/index.ts#L43)*
|
||||
|
||||
___
|
||||
<a id="encodeaddress"></a>
|
||||
@@ -60,7 +60,7 @@ ___
|
||||
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[encodeAddress](../interfaces/_types_.keyringinstance.md#encodeaddress)*
|
||||
|
||||
*Defined in [index.ts:44](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/index.ts#L44)*
|
||||
*Defined in [index.ts:44](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/index.ts#L44)*
|
||||
|
||||
___
|
||||
<a id="setaddressprefix"></a>
|
||||
@@ -71,7 +71,23 @@ ___
|
||||
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[setAddressPrefix](../interfaces/_types_.keyringinstance.md#setaddressprefix)*
|
||||
|
||||
*Defined in [index.ts:45](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/index.ts#L45)*
|
||||
*Defined in [index.ts:45](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/index.ts#L45)*
|
||||
|
||||
___
|
||||
|
||||
# Accessors
|
||||
|
||||
<a id="type"></a>
|
||||
|
||||
## type
|
||||
|
||||
gettype(): [PairType](../modules/_types_.md#pairtype)
|
||||
|
||||
*Defined in [index.ts:50](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/index.ts#L50)*
|
||||
|
||||
*__description__*: Returns the type of the keyring, either ed25519 of sr25519
|
||||
|
||||
**Returns:** [PairType](../modules/_types_.md#pairtype)
|
||||
|
||||
___
|
||||
|
||||
@@ -85,7 +101,7 @@ ___
|
||||
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[addFromAddress](../interfaces/_types_.keyringinstance.md#addfromaddress)*
|
||||
|
||||
*Defined in [index.ts:65](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/index.ts#L65)*
|
||||
*Defined in [index.ts:72](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/index.ts#L72)*
|
||||
|
||||
*__name__*: addFromAddress
|
||||
|
||||
@@ -112,7 +128,7 @@ ___
|
||||
|
||||
▸ **addFromJson**(__namedParameters: *`object`*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [index.ts:77](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/index.ts#L77)*
|
||||
*Defined in [index.ts:84](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/index.ts#L84)*
|
||||
|
||||
*__name__*: addFromJson
|
||||
|
||||
@@ -139,7 +155,7 @@ ___
|
||||
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[addFromMnemonic](../interfaces/_types_.keyringinstance.md#addfrommnemonic)*
|
||||
|
||||
*Defined in [index.ts:90](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/index.ts#L90)*
|
||||
*Defined in [index.ts:97](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/index.ts#L97)*
|
||||
|
||||
*__name__*: addFromMnemonic
|
||||
|
||||
@@ -167,7 +183,7 @@ ___
|
||||
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[addFromSeed](../interfaces/_types_.keyringinstance.md#addfromseed)*
|
||||
|
||||
*Defined in [index.ts:102](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/index.ts#L102)*
|
||||
*Defined in [index.ts:109](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/index.ts#L109)*
|
||||
|
||||
*__name__*: addFromSeed
|
||||
|
||||
@@ -195,7 +211,7 @@ ___
|
||||
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[addPair](../interfaces/_types_.keyringinstance.md#addpair)*
|
||||
|
||||
*Defined in [index.ts:52](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/index.ts#L52)*
|
||||
*Defined in [index.ts:59](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/index.ts#L59)*
|
||||
|
||||
*__name__*: addPair
|
||||
|
||||
@@ -220,7 +236,7 @@ ___
|
||||
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[getPair](../interfaces/_types_.keyringinstance.md#getpair)*
|
||||
|
||||
*Defined in [index.ts:117](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/index.ts#L117)*
|
||||
*Defined in [index.ts:124](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/index.ts#L124)*
|
||||
|
||||
*__name__*: getPair
|
||||
|
||||
@@ -247,7 +263,7 @@ ___
|
||||
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[getPairs](../interfaces/_types_.keyringinstance.md#getpairs)*
|
||||
|
||||
*Defined in [index.ts:127](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/index.ts#L127)*
|
||||
*Defined in [index.ts:134](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/index.ts#L134)*
|
||||
|
||||
*__name__*: getPairs
|
||||
|
||||
@@ -268,7 +284,7 @@ ___
|
||||
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[getPublicKeys](../interfaces/_types_.keyringinstance.md#getpublickeys)*
|
||||
|
||||
*Defined in [index.ts:137](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/index.ts#L137)*
|
||||
*Defined in [index.ts:144](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/index.ts#L144)*
|
||||
|
||||
*__name__*: getPublicKeys
|
||||
|
||||
@@ -289,7 +305,7 @@ ___
|
||||
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[removePair](../interfaces/_types_.keyringinstance.md#removepair)*
|
||||
|
||||
*Defined in [index.ts:150](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/index.ts#L150)*
|
||||
*Defined in [index.ts:157](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/index.ts#L157)*
|
||||
|
||||
*__name__*: removePair
|
||||
|
||||
@@ -314,7 +330,7 @@ ___
|
||||
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[toJson](../interfaces/_types_.keyringinstance.md#tojson)*
|
||||
|
||||
*Defined in [index.ts:163](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/index.ts#L163)*
|
||||
*Defined in [index.ts:170](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/index.ts#L170)*
|
||||
|
||||
*__name__*: toJson
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
⊕ **new Pairs**(): [Pairs](_pairs_.pairs.md)
|
||||
|
||||
*Defined in [pairs.ts:17](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/pairs.ts#L17)*
|
||||
*Defined in [pairs.ts:17](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/pairs.ts#L17)*
|
||||
|
||||
**Returns:** [Pairs](_pairs_.pairs.md)
|
||||
|
||||
@@ -30,7 +30,7 @@ ___
|
||||
|
||||
▸ **add**(pair: *[KeyringPair](../modules/_types_.md#keyringpair)*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [pairs.ts:23](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/pairs.ts#L23)*
|
||||
*Defined in [pairs.ts:23](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/pairs.ts#L23)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -47,7 +47,7 @@ ___
|
||||
|
||||
▸ **all**(): `Array`<[KeyringPair](../modules/_types_.md#keyringpair)>
|
||||
|
||||
*Defined in [pairs.ts:30](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/pairs.ts#L30)*
|
||||
*Defined in [pairs.ts:30](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/pairs.ts#L30)*
|
||||
|
||||
**Returns:** `Array`<[KeyringPair](../modules/_types_.md#keyringpair)>
|
||||
|
||||
@@ -58,7 +58,7 @@ ___
|
||||
|
||||
▸ **get**(address: *`string` | `Uint8Array`*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [pairs.ts:34](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/pairs.ts#L34)*
|
||||
*Defined in [pairs.ts:34](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/pairs.ts#L34)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -75,7 +75,7 @@ ___
|
||||
|
||||
▸ **remove**(address: *`string` | `Uint8Array`*): `void`
|
||||
|
||||
*Defined in [pairs.ts:49](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/pairs.ts#L49)*
|
||||
*Defined in [pairs.ts:49](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/pairs.ts#L49)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -397,7 +397,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"keyring","level":"1.2","depth":1,"next":{"title":"trie-db","level":"1.3","depth":1,"path":"trie-db/README.md","ref":"trie-db/README.md","articles":[]},"previous":{"title":"Introduction","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"keyring/README.md","mtime":"2019-02-13T15:50:09.308Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-02-13T15:51:24.854Z"},"basePath":"..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"keyring","level":"1.2","depth":1,"next":{"title":"trie-db","level":"1.3","depth":1,"path":"trie-db/README.md","ref":"trie-db/README.md","articles":[]},"previous":{"title":"Introduction","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"keyring/README.md","mtime":"2019-02-13T16:37:36.582Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-02-13T16:38:52.140Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
▸ **addFromAddress**(address: *`string` | `Uint8Array`*, meta: *[KeyringPair$Meta](../modules/_types_.md#keyringpair_meta)*, encoded: *`Uint8Array` | `null`*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [types.ts:60](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L60)*
|
||||
*Defined in [types.ts:60](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L60)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -35,7 +35,7 @@ ___
|
||||
|
||||
▸ **addFromJson**(pair: *[KeyringPair$Json](../modules/_types_.md#keyringpair_json)*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [types.ts:63](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L63)*
|
||||
*Defined in [types.ts:63](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L63)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -52,7 +52,7 @@ ___
|
||||
|
||||
▸ **addFromMnemonic**(mnemonic: *`string`*, meta: *[KeyringPair$Meta](../modules/_types_.md#keyringpair_meta)*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [types.ts:61](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L61)*
|
||||
*Defined in [types.ts:61](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L61)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -70,7 +70,7 @@ ___
|
||||
|
||||
▸ **addFromSeed**(seed: *`Uint8Array`*, meta: *[KeyringPair$Meta](../modules/_types_.md#keyringpair_meta)*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [types.ts:62](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L62)*
|
||||
*Defined in [types.ts:62](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L62)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -88,7 +88,7 @@ ___
|
||||
|
||||
▸ **addPair**(pair: *[KeyringPair](../modules/_types_.md#keyringpair)*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [types.ts:59](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L59)*
|
||||
*Defined in [types.ts:59](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L59)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -105,7 +105,7 @@ ___
|
||||
|
||||
▸ **decodeAddress**(encoded: *`string` | `Uint8Array`*): `Uint8Array`
|
||||
|
||||
*Defined in [types.ts:55](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L55)*
|
||||
*Defined in [types.ts:55](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L55)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -122,7 +122,7 @@ ___
|
||||
|
||||
▸ **encodeAddress**(key: *`Uint8Array` | `string`*): `string`
|
||||
|
||||
*Defined in [types.ts:56](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L56)*
|
||||
*Defined in [types.ts:56](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L56)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -139,7 +139,7 @@ ___
|
||||
|
||||
▸ **getPair**(address: *`string` | `Uint8Array`*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [types.ts:64](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L64)*
|
||||
*Defined in [types.ts:64](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L64)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -156,7 +156,7 @@ ___
|
||||
|
||||
▸ **getPairs**(): `Array`<[KeyringPair](../modules/_types_.md#keyringpair)>
|
||||
|
||||
*Defined in [types.ts:65](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L65)*
|
||||
*Defined in [types.ts:65](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L65)*
|
||||
|
||||
**Returns:** `Array`<[KeyringPair](../modules/_types_.md#keyringpair)>
|
||||
|
||||
@@ -167,7 +167,7 @@ ___
|
||||
|
||||
▸ **getPublicKeys**(): `Array`<`Uint8Array`>
|
||||
|
||||
*Defined in [types.ts:66](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L66)*
|
||||
*Defined in [types.ts:66](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L66)*
|
||||
|
||||
**Returns:** `Array`<`Uint8Array`>
|
||||
|
||||
@@ -178,7 +178,7 @@ ___
|
||||
|
||||
▸ **removePair**(address: *`string` | `Uint8Array`*): `void`
|
||||
|
||||
*Defined in [types.ts:67](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L67)*
|
||||
*Defined in [types.ts:67](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L67)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -195,7 +195,7 @@ ___
|
||||
|
||||
▸ **setAddressPrefix**(prefix: *[Prefix](../modules/_address_types_.md#prefix)*): `void`
|
||||
|
||||
*Defined in [types.ts:57](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L57)*
|
||||
*Defined in [types.ts:57](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L57)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -212,7 +212,7 @@ ___
|
||||
|
||||
▸ **toJson**(address: *`string` | `Uint8Array`*, passphrase?: *`undefined` | `string`*): [KeyringPair$Json](../modules/_types_.md#keyringpair_json)
|
||||
|
||||
*Defined in [types.ts:68](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L68)*
|
||||
*Defined in [types.ts:68](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L68)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
**● add**: *`function`*
|
||||
|
||||
*Defined in [types.ts:48](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L48)*
|
||||
*Defined in [types.ts:48](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L48)*
|
||||
|
||||
#### Type declaration
|
||||
▸(pair: *[KeyringPair](../modules/_types_.md#keyringpair)*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
@@ -36,7 +36,7 @@ ___
|
||||
|
||||
**● all**: *`function`*
|
||||
|
||||
*Defined in [types.ts:49](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L49)*
|
||||
*Defined in [types.ts:49](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L49)*
|
||||
|
||||
#### Type declaration
|
||||
▸(): `Array`<[KeyringPair](../modules/_types_.md#keyringpair)>
|
||||
@@ -50,7 +50,7 @@ ___
|
||||
|
||||
**● get**: *`function`*
|
||||
|
||||
*Defined in [types.ts:50](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L50)*
|
||||
*Defined in [types.ts:50](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L50)*
|
||||
|
||||
#### Type declaration
|
||||
▸(address: *`string` | `Uint8Array`*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
@@ -70,7 +70,7 @@ ___
|
||||
|
||||
**● remove**: *`function`*
|
||||
|
||||
*Defined in [types.ts:51](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L51)*
|
||||
*Defined in [types.ts:51](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L51)*
|
||||
|
||||
#### Type declaration
|
||||
▸(address: *`string` | `Uint8Array`*): `void`
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **decode**(encoded: *`string` | `Uint8Array`*, prefix?: *[Prefix](_address_types_.md#prefix)*): `Uint8Array`
|
||||
|
||||
*Defined in [address/decode.ts:15](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/address/decode.ts#L15)*
|
||||
*Defined in [address/decode.ts:15](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/address/decode.ts#L15)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **encode**(_key: *`Uint8Array` | `string`*, prefix?: *[Prefix](_address_types_.md#prefix)*): `string`
|
||||
|
||||
*Defined in [address/encode.ts:15](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/address/encode.ts#L15)*
|
||||
*Defined in [address/encode.ts:15](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/address/encode.ts#L15)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **setPrefix**(prefix: *[Prefix](_address_types_.md#prefix)*): `void`
|
||||
|
||||
*Defined in [address/setPrefix.ts:9](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/address/setPrefix.ts#L9)*
|
||||
*Defined in [address/setPrefix.ts:9](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/address/setPrefix.ts#L9)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
**Ƭ Prefix**: *`0` | `1` | `3` | `42` | `43` | `68` | `69`*
|
||||
|
||||
*Defined in [address/types.ts:5](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/address/types.ts#L5)*
|
||||
*Defined in [address/types.ts:5](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/address/types.ts#L5)*
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **decode**(passphrase?: *`undefined` | `string`*, _encrypted?: *`Uint8Array` | `null`*): `DecodeResult`
|
||||
|
||||
*Defined in [pair/decode.ts:19](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/pair/decode.ts#L19)*
|
||||
*Defined in [pair/decode.ts:19](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/pair/decode.ts#L19)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **encode**(publicKey: *`Uint8Array`*, seed?: *`Uint8Array` | `null`*, passphrase?: *`undefined` | `string`*): `Uint8Array`
|
||||
|
||||
*Defined in [pair/encode.ts:10](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/pair/encode.ts#L10)*
|
||||
*Defined in [pair/encode.ts:10](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/pair/encode.ts#L10)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **pair**(type: *[PairType](_types_.md#pairtype)*, __namedParameters: *`object`*, meta?: *[KeyringPair$Meta](_types_.md#keyringpair_meta)*, encoded: *`Uint8Array` | `null`*): [KeyringPair](_types_.md#keyringpair)
|
||||
|
||||
*Defined in [pair/index.ts:47](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/pair/index.ts#L47)*
|
||||
*Defined in [pair/index.ts:47](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/pair/index.ts#L47)*
|
||||
|
||||
*__name__*: pair
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **everybody**(): [KeyringPair](_types_.md#keyringpair)
|
||||
|
||||
*Defined in [pair/nobody.ts:25](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/pair/nobody.ts#L25)*
|
||||
*Defined in [pair/nobody.ts:25](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/pair/nobody.ts#L25)*
|
||||
|
||||
**Returns:** [KeyringPair](_types_.md#keyringpair)
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **toJson**(__namedParameters: *`object`*, encoded: *`Uint8Array`*, isEncrypted: *`boolean`*): [KeyringPair$Json](_types_.md#keyringpair_json)
|
||||
|
||||
*Defined in [pair/toJson.ts:15](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/pair/toJson.ts#L15)*
|
||||
*Defined in [pair/toJson.ts:15](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/pair/toJson.ts#L15)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
**Ƭ PairInfo**: *`object`*
|
||||
|
||||
*Defined in [pair/types.ts:5](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/pair/types.ts#L5)*
|
||||
*Defined in [pair/types.ts:5](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/pair/types.ts#L5)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **testKeyring**(options: *[KeyringOptions](_types_.md#keyringoptions)*): [KeyringInstance](../interfaces/_types_.keyringinstance.md)
|
||||
|
||||
*Defined in [testing.ts:42](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/testing.ts#L42)*
|
||||
*Defined in [testing.ts:42](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/testing.ts#L42)*
|
||||
|
||||
*__name__*: testKeyring
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **testKeyringPairs**(options: *[KeyringOptions](_types_.md#keyringoptions)*): `TestKeyringMap`
|
||||
|
||||
*Defined in [testingPairs.ts:14](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/testingPairs.ts#L14)*
|
||||
*Defined in [testingPairs.ts:14](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/testingPairs.ts#L14)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
**Ƭ KeyringOptions**: *`object`*
|
||||
|
||||
*Defined in [types.ts:9](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L9)*
|
||||
*Defined in [types.ts:9](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L9)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -38,7 +38,7 @@ ___
|
||||
|
||||
**Ƭ KeyringPair**: *`object`*
|
||||
|
||||
*Defined in [types.ts:33](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L33)*
|
||||
*Defined in [types.ts:33](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L33)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -49,7 +49,7 @@ ___
|
||||
|
||||
**Ƭ KeyringPair$Json**: *`object`*
|
||||
|
||||
*Defined in [types.ts:26](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L26)*
|
||||
*Defined in [types.ts:26](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L26)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -60,7 +60,7 @@ ___
|
||||
|
||||
**Ƭ KeyringPair$JsonEncoding**: *`object`*
|
||||
|
||||
*Defined in [types.ts:20](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L20)*
|
||||
*Defined in [types.ts:20](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L20)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -71,7 +71,7 @@ ___
|
||||
|
||||
**Ƭ KeyringPair$JsonVersion**: *"0" | "1"*
|
||||
|
||||
*Defined in [types.ts:18](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L18)*
|
||||
*Defined in [types.ts:18](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L18)*
|
||||
|
||||
___
|
||||
<a id="keyringpair_meta"></a>
|
||||
@@ -80,7 +80,7 @@ ___
|
||||
|
||||
**Ƭ KeyringPair$Meta**: *`object`*
|
||||
|
||||
*Defined in [types.ts:14](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L14)*
|
||||
*Defined in [types.ts:14](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L14)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -93,7 +93,7 @@ ___
|
||||
|
||||
**Ƭ PairType**: *"ed25519" | "sr25519"*
|
||||
|
||||
*Defined in [types.ts:7](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L7)*
|
||||
*Defined in [types.ts:7](https://github.com/polkadot-js/common/blob/294c255/packages/keyring/src/types.ts#L7)*
|
||||
|
||||
___
|
||||
|
||||
|
||||
Reference in New Issue
Block a user