[CI Skip] 0.32.21
This commit is contained in:
+1
-1
@@ -359,7 +359,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"dir":"neutral"},"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":"GLOSSARY.md","mtime":"2018-11-14T12:49:43.760Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T12:53:16.755Z"},"basePath":".","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"dir":"neutral"},"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":"GLOSSARY.md","mtime":"2018-11-14T13:17:44.808Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T13:21:39.912Z"},"basePath":".","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -74,11 +74,11 @@ diskDb.close();
|
||||
|
||||
*Overrides [TransactionDb](_engines_transactiondb_.transactiondb.md).[constructor](_engines_transactiondb_.transactiondb.md#constructor)*
|
||||
|
||||
*Defined in [Disk.ts:66](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/Disk.ts#L66)*
|
||||
*Defined in [Disk.ts:66](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/Disk.ts#L66)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| base | `string` |
|
||||
| name | `string` |
|
||||
@@ -98,7 +98,7 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[close](_engines_transactiondb_.transactiondb.md#close)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:51](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L51)*
|
||||
*Defined in [engines/TransactionDb.ts:51](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L51)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -111,11 +111,11 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[del](_engines_transactiondb_.transactiondb.md#del)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:81](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L81)*
|
||||
*Defined in [engines/TransactionDb.ts:81](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L81)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
@@ -130,7 +130,7 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[drop](_engines_transactiondb_.transactiondb.md#drop)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:59](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L59)*
|
||||
*Defined in [engines/TransactionDb.ts:59](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L59)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -143,7 +143,7 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[empty](_engines_transactiondb_.transactiondb.md#empty)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:63](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L63)*
|
||||
*Defined in [engines/TransactionDb.ts:63](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L63)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -156,11 +156,11 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[get](_engines_transactiondb_.transactiondb.md#get)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:93](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L93)*
|
||||
*Defined in [engines/TransactionDb.ts:93](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L93)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
@@ -175,11 +175,11 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[maintain](_engines_transactiondb_.transactiondb.md#maintain)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:71](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L71)*
|
||||
*Defined in [engines/TransactionDb.ts:71](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L71)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `ProgressCb` |
|
||||
|
||||
@@ -194,7 +194,7 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[open](_engines_transactiondb_.transactiondb.md#open)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:55](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L55)*
|
||||
*Defined in [engines/TransactionDb.ts:55](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L55)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -207,11 +207,11 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[put](_engines_transactiondb_.transactiondb.md#put)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:107](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L107)*
|
||||
*Defined in [engines/TransactionDb.ts:107](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L107)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
| value | `Uint8Array` |
|
||||
@@ -227,11 +227,11 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[rename](_engines_transactiondb_.transactiondb.md#rename)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:67](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L67)*
|
||||
*Defined in [engines/TransactionDb.ts:67](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L67)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| base | `string` |
|
||||
| file | `string` |
|
||||
@@ -247,7 +247,7 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[size](_engines_transactiondb_.transactiondb.md#size)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:77](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L77)*
|
||||
*Defined in [engines/TransactionDb.ts:77](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L77)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
@@ -260,11 +260,11 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[transaction](_engines_transactiondb_.transactiondb.md#transaction)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:29](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L29)*
|
||||
*Defined in [engines/TransactionDb.ts:29](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L29)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `function` |
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
|
||||
⊕ **new FileTreeDb**(location: *`string`*): [FileTreeDb](_engines_filetreedb_.filetreedb.md)
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:21](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/FileTreeDb.ts#L21)*
|
||||
*Defined in [engines/FileTreeDb.ts:21](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/FileTreeDb.ts#L21)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| location | `string` |
|
||||
|
||||
@@ -36,7 +36,7 @@ ___
|
||||
|
||||
**● _location**: *`string`*
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:21](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/FileTreeDb.ts#L21)*
|
||||
*Defined in [engines/FileTreeDb.ts:21](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/FileTreeDb.ts#L21)*
|
||||
|
||||
___
|
||||
|
||||
@@ -48,7 +48,7 @@ ___
|
||||
|
||||
▸ **close**(): `void`
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:46](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/FileTreeDb.ts#L46)*
|
||||
*Defined in [engines/FileTreeDb.ts:46](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/FileTreeDb.ts#L46)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -59,11 +59,11 @@ ___
|
||||
|
||||
▸ **del**(key: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:76](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/FileTreeDb.ts#L76)*
|
||||
*Defined in [engines/FileTreeDb.ts:76](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/FileTreeDb.ts#L76)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
@@ -76,7 +76,7 @@ ___
|
||||
|
||||
▸ **drop**(): `void`
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:50](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/FileTreeDb.ts#L50)*
|
||||
*Defined in [engines/FileTreeDb.ts:50](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/FileTreeDb.ts#L50)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -87,7 +87,7 @@ ___
|
||||
|
||||
▸ **empty**(): `void`
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:54](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/FileTreeDb.ts#L54)*
|
||||
*Defined in [engines/FileTreeDb.ts:54](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/FileTreeDb.ts#L54)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -98,11 +98,11 @@ ___
|
||||
|
||||
▸ **get**(key: *`Uint8Array`*): `Uint8Array` | `null`
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:86](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/FileTreeDb.ts#L86)*
|
||||
*Defined in [engines/FileTreeDb.ts:86](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/FileTreeDb.ts#L86)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
@@ -115,11 +115,11 @@ ___
|
||||
|
||||
▸ **maintain**(fn: *`ProgressCb`*): `void`
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:68](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/FileTreeDb.ts#L68)*
|
||||
*Defined in [engines/FileTreeDb.ts:68](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/FileTreeDb.ts#L68)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `ProgressCb` |
|
||||
|
||||
@@ -132,7 +132,7 @@ ___
|
||||
|
||||
▸ **open**(): `void`
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:42](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/FileTreeDb.ts#L42)*
|
||||
*Defined in [engines/FileTreeDb.ts:42](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/FileTreeDb.ts#L42)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -143,11 +143,11 @@ ___
|
||||
|
||||
▸ **put**(key: *`Uint8Array`*, value: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:100](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/FileTreeDb.ts#L100)*
|
||||
*Defined in [engines/FileTreeDb.ts:100](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/FileTreeDb.ts#L100)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
| value | `Uint8Array` |
|
||||
@@ -161,11 +161,11 @@ ___
|
||||
|
||||
▸ **rename**(base: *`string`*, file: *`string`*): `void`
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:58](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/FileTreeDb.ts#L58)*
|
||||
*Defined in [engines/FileTreeDb.ts:58](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/FileTreeDb.ts#L58)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| base | `string` |
|
||||
| file | `string` |
|
||||
@@ -179,7 +179,7 @@ ___
|
||||
|
||||
▸ **size**(): `number`
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:62](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/FileTreeDb.ts#L62)*
|
||||
*Defined in [engines/FileTreeDb.ts:62](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/FileTreeDb.ts#L62)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
|
||||
⊕ **new LruDb**(backing: *`BaseDb`*, itemCount?: *`number`*): [LruDb](_engines_lrudb_.lrudb.md)
|
||||
|
||||
*Defined in [engines/LruDb.ts:20](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/LruDb.ts#L20)*
|
||||
*Defined in [engines/LruDb.ts:20](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/LruDb.ts#L20)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Default value |
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| backing | `BaseDb` | - |
|
||||
| `Default value` itemCount | `number` | DEFAULT_ITEM_COUNT |
|
||||
@@ -37,11 +37,11 @@ ___
|
||||
|
||||
▸ **_getLru**(key: *`Uint8Array`*): `CachedValue` | `undefined`
|
||||
|
||||
*Defined in [engines/LruDb.ts:87](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/LruDb.ts#L87)*
|
||||
*Defined in [engines/LruDb.ts:87](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/LruDb.ts#L87)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
@@ -54,7 +54,7 @@ ___
|
||||
|
||||
▸ **close**(): `void`
|
||||
|
||||
*Defined in [engines/LruDb.ts:27](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/LruDb.ts#L27)*
|
||||
*Defined in [engines/LruDb.ts:27](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/LruDb.ts#L27)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -65,11 +65,11 @@ ___
|
||||
|
||||
▸ **del**(key: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [engines/LruDb.ts:64](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/LruDb.ts#L64)*
|
||||
*Defined in [engines/LruDb.ts:64](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/LruDb.ts#L64)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
@@ -82,7 +82,7 @@ ___
|
||||
|
||||
▸ **drop**(): `void`
|
||||
|
||||
*Defined in [engines/LruDb.ts:41](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/LruDb.ts#L41)*
|
||||
*Defined in [engines/LruDb.ts:41](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/LruDb.ts#L41)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -93,7 +93,7 @@ ___
|
||||
|
||||
▸ **empty**(): `void`
|
||||
|
||||
*Defined in [engines/LruDb.ts:45](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/LruDb.ts#L45)*
|
||||
*Defined in [engines/LruDb.ts:45](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/LruDb.ts#L45)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -104,11 +104,11 @@ ___
|
||||
|
||||
▸ **get**(key: *`Uint8Array`*): `Uint8Array` | `null`
|
||||
|
||||
*Defined in [engines/LruDb.ts:71](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/LruDb.ts#L71)*
|
||||
*Defined in [engines/LruDb.ts:71](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/LruDb.ts#L71)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
@@ -121,11 +121,11 @@ ___
|
||||
|
||||
▸ **maintain**(fn: *`ProgressCb`*): `void`
|
||||
|
||||
*Defined in [engines/LruDb.ts:56](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/LruDb.ts#L56)*
|
||||
*Defined in [engines/LruDb.ts:56](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/LruDb.ts#L56)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `ProgressCb` |
|
||||
|
||||
@@ -138,7 +138,7 @@ ___
|
||||
|
||||
▸ **open**(): `void`
|
||||
|
||||
*Defined in [engines/LruDb.ts:34](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/LruDb.ts#L34)*
|
||||
*Defined in [engines/LruDb.ts:34](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/LruDb.ts#L34)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -149,11 +149,11 @@ ___
|
||||
|
||||
▸ **put**(key: *`Uint8Array`*, value: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [engines/LruDb.ts:91](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/LruDb.ts#L91)*
|
||||
*Defined in [engines/LruDb.ts:91](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/LruDb.ts#L91)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
| value | `Uint8Array` |
|
||||
@@ -167,11 +167,11 @@ ___
|
||||
|
||||
▸ **rename**(base: *`string`*, file: *`string`*): `void`
|
||||
|
||||
*Defined in [engines/LruDb.ts:52](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/LruDb.ts#L52)*
|
||||
*Defined in [engines/LruDb.ts:52](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/LruDb.ts#L52)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| base | `string` |
|
||||
| file | `string` |
|
||||
@@ -185,7 +185,7 @@ ___
|
||||
|
||||
▸ **size**(): `number`
|
||||
|
||||
*Defined in [engines/LruDb.ts:60](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/LruDb.ts#L60)*
|
||||
*Defined in [engines/LruDb.ts:60](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/LruDb.ts#L60)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
|
||||
⊕ **new MemoryDb**(options?: *`BaseDbOptions`*): [MemoryDb](_engines_memorydb_.memorydb.md)
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:16](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/MemoryDb.ts#L16)*
|
||||
*Defined in [engines/MemoryDb.ts:16](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/MemoryDb.ts#L16)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| `Optional` options | `BaseDbOptions` |
|
||||
|
||||
@@ -36,7 +36,7 @@ ___
|
||||
|
||||
▸ **close**(): `void`
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/MemoryDb.ts#L22)*
|
||||
*Defined in [engines/MemoryDb.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/MemoryDb.ts#L22)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -47,11 +47,11 @@ ___
|
||||
|
||||
▸ **del**(key: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:56](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/MemoryDb.ts#L56)*
|
||||
*Defined in [engines/MemoryDb.ts:56](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/MemoryDb.ts#L56)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
@@ -64,7 +64,7 @@ ___
|
||||
|
||||
▸ **drop**(): `void`
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:30](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/MemoryDb.ts#L30)*
|
||||
*Defined in [engines/MemoryDb.ts:30](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/MemoryDb.ts#L30)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -75,7 +75,7 @@ ___
|
||||
|
||||
▸ **empty**(): `void`
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:34](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/MemoryDb.ts#L34)*
|
||||
*Defined in [engines/MemoryDb.ts:34](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/MemoryDb.ts#L34)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -86,11 +86,11 @@ ___
|
||||
|
||||
▸ **get**(key: *`Uint8Array`*): `Uint8Array` | `null`
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:62](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/MemoryDb.ts#L62)*
|
||||
*Defined in [engines/MemoryDb.ts:62](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/MemoryDb.ts#L62)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
@@ -103,11 +103,11 @@ ___
|
||||
|
||||
▸ **maintain**(fn: *`ProgressCb`*): `void`
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:42](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/MemoryDb.ts#L42)*
|
||||
*Defined in [engines/MemoryDb.ts:42](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/MemoryDb.ts#L42)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `ProgressCb` |
|
||||
|
||||
@@ -120,7 +120,7 @@ ___
|
||||
|
||||
▸ **open**(): `void`
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:26](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/MemoryDb.ts#L26)*
|
||||
*Defined in [engines/MemoryDb.ts:26](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/MemoryDb.ts#L26)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -131,11 +131,11 @@ ___
|
||||
|
||||
▸ **put**(key: *`Uint8Array`*, value: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:68](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/MemoryDb.ts#L68)*
|
||||
*Defined in [engines/MemoryDb.ts:68](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/MemoryDb.ts#L68)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
| value | `Uint8Array` |
|
||||
@@ -149,11 +149,11 @@ ___
|
||||
|
||||
▸ **rename**(base: *`string`*, file: *`string`*): `void`
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:38](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/MemoryDb.ts#L38)*
|
||||
*Defined in [engines/MemoryDb.ts:38](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/MemoryDb.ts#L38)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| base | `string` |
|
||||
| file | `string` |
|
||||
@@ -167,7 +167,7 @@ ___
|
||||
|
||||
▸ **size**(): `number`
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:50](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/MemoryDb.ts#L50)*
|
||||
*Defined in [engines/MemoryDb.ts:50](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/MemoryDb.ts#L50)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
|
||||
@@ -20,11 +20,11 @@
|
||||
|
||||
⊕ **new TransactionDb**(backing: *`BaseDb`*): [TransactionDb](_engines_transactiondb_.transactiondb.md)
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:21](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L21)*
|
||||
*Defined in [engines/TransactionDb.ts:21](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L21)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| backing | `BaseDb` |
|
||||
|
||||
@@ -40,7 +40,7 @@ ___
|
||||
|
||||
▸ **close**(): `void`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:51](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L51)*
|
||||
*Defined in [engines/TransactionDb.ts:51](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L51)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -51,11 +51,11 @@ ___
|
||||
|
||||
▸ **del**(key: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:81](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L81)*
|
||||
*Defined in [engines/TransactionDb.ts:81](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L81)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
@@ -68,7 +68,7 @@ ___
|
||||
|
||||
▸ **drop**(): `void`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:59](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L59)*
|
||||
*Defined in [engines/TransactionDb.ts:59](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L59)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -79,7 +79,7 @@ ___
|
||||
|
||||
▸ **empty**(): `void`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:63](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L63)*
|
||||
*Defined in [engines/TransactionDb.ts:63](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L63)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -90,11 +90,11 @@ ___
|
||||
|
||||
▸ **get**(key: *`Uint8Array`*): `Uint8Array` | `null`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:93](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L93)*
|
||||
*Defined in [engines/TransactionDb.ts:93](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L93)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
@@ -107,11 +107,11 @@ ___
|
||||
|
||||
▸ **maintain**(fn: *`ProgressCb`*): `void`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:71](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L71)*
|
||||
*Defined in [engines/TransactionDb.ts:71](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L71)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `ProgressCb` |
|
||||
|
||||
@@ -124,7 +124,7 @@ ___
|
||||
|
||||
▸ **open**(): `void`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:55](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L55)*
|
||||
*Defined in [engines/TransactionDb.ts:55](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L55)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -135,11 +135,11 @@ ___
|
||||
|
||||
▸ **put**(key: *`Uint8Array`*, value: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:107](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L107)*
|
||||
*Defined in [engines/TransactionDb.ts:107](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L107)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
| value | `Uint8Array` |
|
||||
@@ -153,11 +153,11 @@ ___
|
||||
|
||||
▸ **rename**(base: *`string`*, file: *`string`*): `void`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:67](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L67)*
|
||||
*Defined in [engines/TransactionDb.ts:67](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L67)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| base | `string` |
|
||||
| file | `string` |
|
||||
@@ -171,7 +171,7 @@ ___
|
||||
|
||||
▸ **size**(): `number`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:77](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L77)*
|
||||
*Defined in [engines/TransactionDb.ts:77](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L77)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
@@ -182,11 +182,11 @@ ___
|
||||
|
||||
▸ **transaction**(fn: *`function`*): `boolean`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:29](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L29)*
|
||||
*Defined in [engines/TransactionDb.ts:29](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L29)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `function` |
|
||||
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
|
||||
⊕ **new Compact**(file: *`string`*): [Compact](_fileflatdb_compact_.compact.md)
|
||||
|
||||
*Defined in [FileFlatDb/Compact.ts:17](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/FileFlatDb/Compact.ts#L17)*
|
||||
*Defined in [FileFlatDb/Compact.ts:17](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/FileFlatDb/Compact.ts#L17)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| file | `string` |
|
||||
|
||||
@@ -32,11 +32,11 @@ ___
|
||||
|
||||
▸ **maintain**(fn: *`ProgressCb`*): `void`
|
||||
|
||||
*Defined in [FileFlatDb/Compact.ts:24](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/FileFlatDb/Compact.ts#L24)*
|
||||
*Defined in [FileFlatDb/Compact.ts:24](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/FileFlatDb/Compact.ts#L24)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `ProgressCb` |
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
|
||||
⊕ **new FileFlatDb**(base: *`string`*, file?: *`string`*, options?: *`BaseDbOptions`*): [FileFlatDb](_fileflatdb_index_.fileflatdb.md)
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:32](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/FileFlatDb/index.ts#L32)*
|
||||
*Defined in [FileFlatDb/index.ts:32](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/FileFlatDb/index.ts#L32)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Default value |
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| base | `string` | - |
|
||||
| `Default value` file | `string` | defaults.DEFAULT_FILE |
|
||||
@@ -38,7 +38,7 @@ ___
|
||||
|
||||
▸ **close**(): `void`
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:58](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/FileFlatDb/index.ts#L58)*
|
||||
*Defined in [FileFlatDb/index.ts:58](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/FileFlatDb/index.ts#L58)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -49,11 +49,11 @@ ___
|
||||
|
||||
▸ **del**(key: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:105](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/FileFlatDb/index.ts#L105)*
|
||||
*Defined in [FileFlatDb/index.ts:105](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/FileFlatDb/index.ts#L105)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
@@ -66,7 +66,7 @@ ___
|
||||
|
||||
▸ **drop**(): `void`
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:68](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/FileFlatDb/index.ts#L68)*
|
||||
*Defined in [FileFlatDb/index.ts:68](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/FileFlatDb/index.ts#L68)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -77,7 +77,7 @@ ___
|
||||
|
||||
▸ **empty**(): `void`
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:74](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/FileFlatDb/index.ts#L74)*
|
||||
*Defined in [FileFlatDb/index.ts:74](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/FileFlatDb/index.ts#L74)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -88,11 +88,11 @@ ___
|
||||
|
||||
▸ **get**(key: *`Uint8Array`*): `Uint8Array` | `null`
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:109](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/FileFlatDb/index.ts#L109)*
|
||||
*Defined in [FileFlatDb/index.ts:109](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/FileFlatDb/index.ts#L109)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
@@ -105,11 +105,11 @@ ___
|
||||
|
||||
▸ **maintain**(fn: *`ProgressCb`*): `void`
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:97](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/FileFlatDb/index.ts#L97)*
|
||||
*Defined in [FileFlatDb/index.ts:97](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/FileFlatDb/index.ts#L97)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `ProgressCb` |
|
||||
|
||||
@@ -122,7 +122,7 @@ ___
|
||||
|
||||
▸ **open**(): `void`
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:48](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/FileFlatDb/index.ts#L48)*
|
||||
*Defined in [FileFlatDb/index.ts:48](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/FileFlatDb/index.ts#L48)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -133,11 +133,11 @@ ___
|
||||
|
||||
▸ **put**(key: *`Uint8Array`*, value: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:127](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/FileFlatDb/index.ts#L127)*
|
||||
*Defined in [FileFlatDb/index.ts:127](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/FileFlatDb/index.ts#L127)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
| value | `Uint8Array` |
|
||||
@@ -151,11 +151,11 @@ ___
|
||||
|
||||
▸ **rename**(base: *`string`*, file: *`string`*): `void`
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:85](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/FileFlatDb/index.ts#L85)*
|
||||
*Defined in [FileFlatDb/index.ts:85](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/FileFlatDb/index.ts#L85)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| base | `string` |
|
||||
| file | `string` |
|
||||
@@ -169,7 +169,7 @@ ___
|
||||
|
||||
▸ **size**(): `number`
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:81](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/FileFlatDb/index.ts#L81)*
|
||||
*Defined in [FileFlatDb/index.ts:81](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/FileFlatDb/index.ts#L81)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
|
||||
@@ -72,11 +72,11 @@ memoryDb.close();
|
||||
|
||||
*Overrides [TransactionDb](_engines_transactiondb_.transactiondb.md).[constructor](_engines_transactiondb_.transactiondb.md#constructor)*
|
||||
|
||||
*Defined in [Memory.ts:66](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/Memory.ts#L66)*
|
||||
*Defined in [Memory.ts:66](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/Memory.ts#L66)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| `Optional` options | `BaseDbOptions` |
|
||||
|
||||
@@ -94,7 +94,7 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[close](_engines_transactiondb_.transactiondb.md#close)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:51](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L51)*
|
||||
*Defined in [engines/TransactionDb.ts:51](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L51)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -107,11 +107,11 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[del](_engines_transactiondb_.transactiondb.md#del)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:81](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L81)*
|
||||
*Defined in [engines/TransactionDb.ts:81](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L81)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
@@ -126,7 +126,7 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[drop](_engines_transactiondb_.transactiondb.md#drop)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:59](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L59)*
|
||||
*Defined in [engines/TransactionDb.ts:59](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L59)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -139,7 +139,7 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[empty](_engines_transactiondb_.transactiondb.md#empty)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:63](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L63)*
|
||||
*Defined in [engines/TransactionDb.ts:63](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L63)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -152,11 +152,11 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[get](_engines_transactiondb_.transactiondb.md#get)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:93](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L93)*
|
||||
*Defined in [engines/TransactionDb.ts:93](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L93)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
@@ -171,11 +171,11 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[maintain](_engines_transactiondb_.transactiondb.md#maintain)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:71](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L71)*
|
||||
*Defined in [engines/TransactionDb.ts:71](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L71)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `ProgressCb` |
|
||||
|
||||
@@ -190,7 +190,7 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[open](_engines_transactiondb_.transactiondb.md#open)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:55](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L55)*
|
||||
*Defined in [engines/TransactionDb.ts:55](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L55)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -203,11 +203,11 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[put](_engines_transactiondb_.transactiondb.md#put)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:107](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L107)*
|
||||
*Defined in [engines/TransactionDb.ts:107](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L107)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
| value | `Uint8Array` |
|
||||
@@ -223,11 +223,11 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[rename](_engines_transactiondb_.transactiondb.md#rename)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:67](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L67)*
|
||||
*Defined in [engines/TransactionDb.ts:67](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L67)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| base | `string` |
|
||||
| file | `string` |
|
||||
@@ -243,7 +243,7 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[size](_engines_transactiondb_.transactiondb.md#size)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:77](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L77)*
|
||||
*Defined in [engines/TransactionDb.ts:77](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L77)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
@@ -256,11 +256,11 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[transaction](_engines_transactiondb_.transactiondb.md#transaction)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:29](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/engines/TransactionDb.ts#L29)*
|
||||
*Defined in [engines/TransactionDb.ts:29](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/engines/TransactionDb.ts#L29)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `function` |
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
**BRANCH**: = 1
|
||||
|
||||
*Defined in [FileFlatDb/types.ts:7](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/FileFlatDb/types.ts#L7)*
|
||||
*Defined in [FileFlatDb/types.ts:7](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/FileFlatDb/types.ts#L7)*
|
||||
|
||||
___
|
||||
<a id="empty"></a>
|
||||
@@ -27,7 +27,7 @@ ___
|
||||
|
||||
**EMPTY**: = 0
|
||||
|
||||
*Defined in [FileFlatDb/types.ts:6](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/FileFlatDb/types.ts#L6)*
|
||||
*Defined in [FileFlatDb/types.ts:6](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/FileFlatDb/types.ts#L6)*
|
||||
|
||||
___
|
||||
<a id="leaf"></a>
|
||||
@@ -36,7 +36,7 @@ ___
|
||||
|
||||
**LEAF**: = 2
|
||||
|
||||
*Defined in [FileFlatDb/types.ts:8](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/FileFlatDb/types.ts#L8)*
|
||||
*Defined in [FileFlatDb/types.ts:8](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/FileFlatDb/types.ts#L8)*
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
**Ƭ Key**: *`object`*
|
||||
|
||||
*Defined in [FileFlatDb/types.ts:16](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/FileFlatDb/types.ts#L16)*
|
||||
*Defined in [FileFlatDb/types.ts:16](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/FileFlatDb/types.ts#L16)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -33,7 +33,7 @@ ___
|
||||
|
||||
**Ƭ NibbleBuffer**: *`object`*
|
||||
|
||||
*Defined in [FileFlatDb/types.ts:11](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/FileFlatDb/types.ts#L11)*
|
||||
*Defined in [FileFlatDb/types.ts:11](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/FileFlatDb/types.ts#L11)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -44,7 +44,7 @@ ___
|
||||
|
||||
**Ƭ Value**: *`object`*
|
||||
|
||||
*Defined in [FileFlatDb/types.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/FileFlatDb/types.ts#L22)*
|
||||
*Defined in [FileFlatDb/types.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/FileFlatDb/types.ts#L22)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
|
||||
@@ -393,7 +393,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Create Account","level":"2.1.1","depth":2,"next":{"title":"Load Accounts","level":"2.1.2","depth":2,"path":"examples/keyring/02_load_accounts/README.md","ref":"examples/keyring/02_load_accounts/README.md","articles":[]},"previous":{"title":"Keyring","level":"2.1","depth":1,"path":"examples/keyring/README.md","ref":"examples/keyring/README.md","articles":[{"title":"Create Account","level":"2.1.1","depth":2,"path":"examples/keyring/01_create_account/README.md","ref":"examples/keyring/01_create_account/README.md","articles":[]},{"title":"Load Accounts","level":"2.1.2","depth":2,"path":"examples/keyring/02_load_accounts/README.md","ref":"examples/keyring/02_load_accounts/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":"examples/keyring/01_create_account/README.md","mtime":"2018-11-14T12:49:43.764Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T12:53:16.755Z"},"basePath":"../../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Create Account","level":"2.1.1","depth":2,"next":{"title":"Load Accounts","level":"2.1.2","depth":2,"path":"examples/keyring/02_load_accounts/README.md","ref":"examples/keyring/02_load_accounts/README.md","articles":[]},"previous":{"title":"Keyring","level":"2.1","depth":1,"path":"examples/keyring/README.md","ref":"examples/keyring/README.md","articles":[{"title":"Create Account","level":"2.1.1","depth":2,"path":"examples/keyring/01_create_account/README.md","ref":"examples/keyring/01_create_account/README.md","articles":[]},{"title":"Load Accounts","level":"2.1.2","depth":2,"path":"examples/keyring/02_load_accounts/README.md","ref":"examples/keyring/02_load_accounts/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":"examples/keyring/01_create_account/README.md","mtime":"2018-11-14T13:17:44.812Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T13:21:39.912Z"},"basePath":"../../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -405,7 +405,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Load Accounts","level":"2.1.2","depth":2,"next":{"title":"Util-Crypto","level":"2.2","depth":1,"path":"examples/util-crypto/README.md","ref":"examples/util-crypto/README.md","articles":[{"title":"Encrypt & Decrypt Message","level":"2.2.1","depth":2,"path":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","ref":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","articles":[]},{"title":"Sign & Verify Message","level":"2.2.2","depth":2,"path":"examples/util-crypto/02_sign_verify_message_nacl/README.md","ref":"examples/util-crypto/02_sign_verify_message_nacl/README.md","articles":[]},{"title":"Create & Validate Mnemonic","level":"2.2.3","depth":2,"path":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","ref":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","articles":[]}]},"previous":{"title":"Create Account","level":"2.1.1","depth":2,"path":"examples/keyring/01_create_account/README.md","ref":"examples/keyring/01_create_account/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":"examples/keyring/02_load_accounts/README.md","mtime":"2018-11-14T12:49:43.764Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T12:53:16.755Z"},"basePath":"../../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Load Accounts","level":"2.1.2","depth":2,"next":{"title":"Util-Crypto","level":"2.2","depth":1,"path":"examples/util-crypto/README.md","ref":"examples/util-crypto/README.md","articles":[{"title":"Encrypt & Decrypt Message","level":"2.2.1","depth":2,"path":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","ref":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","articles":[]},{"title":"Sign & Verify Message","level":"2.2.2","depth":2,"path":"examples/util-crypto/02_sign_verify_message_nacl/README.md","ref":"examples/util-crypto/02_sign_verify_message_nacl/README.md","articles":[]},{"title":"Create & Validate Mnemonic","level":"2.2.3","depth":2,"path":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","ref":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","articles":[]}]},"previous":{"title":"Create Account","level":"2.1.1","depth":2,"path":"examples/keyring/01_create_account/README.md","ref":"examples/keyring/01_create_account/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":"examples/keyring/02_load_accounts/README.md","mtime":"2018-11-14T13:17:44.812Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T13:21:39.912Z"},"basePath":"../../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -378,7 +378,7 @@ yarn start
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Keyring","level":"2.1","depth":1,"next":{"title":"Create Account","level":"2.1.1","depth":2,"path":"examples/keyring/01_create_account/README.md","ref":"examples/keyring/01_create_account/README.md","articles":[]},"previous":{"title":"util-crypto","level":"1.6","depth":1,"path":"util-crypto/README.md","ref":"util-crypto/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":"examples/keyring/README.md","mtime":"2018-11-14T12:49:43.764Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T12:53:16.755Z"},"basePath":"../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Keyring","level":"2.1","depth":1,"next":{"title":"Create Account","level":"2.1.1","depth":2,"path":"examples/keyring/01_create_account/README.md","ref":"examples/keyring/01_create_account/README.md","articles":[]},"previous":{"title":"util-crypto","level":"1.6","depth":1,"path":"util-crypto/README.md","ref":"util-crypto/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":"examples/keyring/README.md","mtime":"2018-11-14T13:17:44.812Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T13:21:39.912Z"},"basePath":"../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -397,7 +397,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Encrypt & Decrypt Message","level":"2.2.1","depth":2,"next":{"title":"Sign & Verify Message","level":"2.2.2","depth":2,"path":"examples/util-crypto/02_sign_verify_message_nacl/README.md","ref":"examples/util-crypto/02_sign_verify_message_nacl/README.md","articles":[]},"previous":{"title":"Util-Crypto","level":"2.2","depth":1,"path":"examples/util-crypto/README.md","ref":"examples/util-crypto/README.md","articles":[{"title":"Encrypt & Decrypt Message","level":"2.2.1","depth":2,"path":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","ref":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","articles":[]},{"title":"Sign & Verify Message","level":"2.2.2","depth":2,"path":"examples/util-crypto/02_sign_verify_message_nacl/README.md","ref":"examples/util-crypto/02_sign_verify_message_nacl/README.md","articles":[]},{"title":"Create & Validate Mnemonic","level":"2.2.3","depth":2,"path":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","ref":"examples/util-crypto/03_mnemonic_generate_validate_bip39/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":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","mtime":"2018-11-14T12:49:43.764Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T12:53:16.755Z"},"basePath":"../../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Encrypt & Decrypt Message","level":"2.2.1","depth":2,"next":{"title":"Sign & Verify Message","level":"2.2.2","depth":2,"path":"examples/util-crypto/02_sign_verify_message_nacl/README.md","ref":"examples/util-crypto/02_sign_verify_message_nacl/README.md","articles":[]},"previous":{"title":"Util-Crypto","level":"2.2","depth":1,"path":"examples/util-crypto/README.md","ref":"examples/util-crypto/README.md","articles":[{"title":"Encrypt & Decrypt Message","level":"2.2.1","depth":2,"path":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","ref":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","articles":[]},{"title":"Sign & Verify Message","level":"2.2.2","depth":2,"path":"examples/util-crypto/02_sign_verify_message_nacl/README.md","ref":"examples/util-crypto/02_sign_verify_message_nacl/README.md","articles":[]},{"title":"Create & Validate Mnemonic","level":"2.2.3","depth":2,"path":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","ref":"examples/util-crypto/03_mnemonic_generate_validate_bip39/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":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","mtime":"2018-11-14T13:17:44.812Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T13:21:39.912Z"},"basePath":"../../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -403,7 +403,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Sign & Verify Message","level":"2.2.2","depth":2,"next":{"title":"Create & Validate Mnemonic","level":"2.2.3","depth":2,"path":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","ref":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","articles":[]},"previous":{"title":"Encrypt & Decrypt Message","level":"2.2.1","depth":2,"path":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","ref":"examples/util-crypto/01_encrypt_decrypt_message_nacl/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":"examples/util-crypto/02_sign_verify_message_nacl/README.md","mtime":"2018-11-14T12:49:43.764Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T12:53:16.755Z"},"basePath":"../../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Sign & Verify Message","level":"2.2.2","depth":2,"next":{"title":"Create & Validate Mnemonic","level":"2.2.3","depth":2,"path":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","ref":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","articles":[]},"previous":{"title":"Encrypt & Decrypt Message","level":"2.2.1","depth":2,"path":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","ref":"examples/util-crypto/01_encrypt_decrypt_message_nacl/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":"examples/util-crypto/02_sign_verify_message_nacl/README.md","mtime":"2018-11-14T13:17:44.812Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T13:21:39.912Z"},"basePath":"../../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -392,7 +392,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Create & Validate Mnemonic","level":"2.2.3","depth":2,"previous":{"title":"Sign & Verify Message","level":"2.2.2","depth":2,"path":"examples/util-crypto/02_sign_verify_message_nacl/README.md","ref":"examples/util-crypto/02_sign_verify_message_nacl/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":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","mtime":"2018-11-14T12:49:43.764Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T12:53:16.755Z"},"basePath":"../../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Create & Validate Mnemonic","level":"2.2.3","depth":2,"previous":{"title":"Sign & Verify Message","level":"2.2.2","depth":2,"path":"examples/util-crypto/02_sign_verify_message_nacl/README.md","ref":"examples/util-crypto/02_sign_verify_message_nacl/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":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","mtime":"2018-11-14T13:17:44.812Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T13:21:39.912Z"},"basePath":"../../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -378,7 +378,7 @@ yarn start
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Util-Crypto","level":"2.2","depth":1,"next":{"title":"Encrypt & Decrypt Message","level":"2.2.1","depth":2,"path":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","ref":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","articles":[]},"previous":{"title":"Load Accounts","level":"2.1.2","depth":2,"path":"examples/keyring/02_load_accounts/README.md","ref":"examples/keyring/02_load_accounts/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":"examples/util-crypto/README.md","mtime":"2018-11-14T12:49:43.764Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T12:53:16.755Z"},"basePath":"../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Util-Crypto","level":"2.2","depth":1,"next":{"title":"Encrypt & Decrypt Message","level":"2.2.1","depth":2,"path":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","ref":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","articles":[]},"previous":{"title":"Load Accounts","level":"2.1.2","depth":2,"path":"examples/keyring/02_load_accounts/README.md","ref":"examples/keyring/02_load_accounts/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":"examples/util-crypto/README.md","mtime":"2018-11-14T13:17:44.812Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T13:21:39.912Z"},"basePath":"../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -415,7 +415,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"keyring","level":"1.2","depth":1,"path":"keyring/README.md","ref":"keyring/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":"README.md","mtime":"2018-11-14T12:49:43.760Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T12:53:16.755Z"},"basePath":".","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"keyring","level":"1.2","depth":1,"path":"keyring/README.md","ref":"keyring/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":"README.md","mtime":"2018-11-14T13:17:44.808Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T13:21:39.912Z"},"basePath":".","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -29,7 +29,7 @@ Overview
|
||||
|
||||
⊕ **new Keyring**(): [Keyring](_index_.keyring.md)
|
||||
|
||||
*Defined in [index.ts:33](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/index.ts#L33)*
|
||||
*Defined in [index.ts:33](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/index.ts#L33)*
|
||||
|
||||
**Returns:** [Keyring](_index_.keyring.md)
|
||||
|
||||
@@ -43,7 +43,7 @@ ___
|
||||
|
||||
**● decodeAddress**: *[decode](../modules/_address_decode_.md#decode)* = decodeAddress
|
||||
|
||||
*Defined in [index.ts:39](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/index.ts#L39)*
|
||||
*Defined in [index.ts:39](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/index.ts#L39)*
|
||||
|
||||
___
|
||||
<a id="encodeaddress"></a>
|
||||
@@ -52,7 +52,7 @@ ___
|
||||
|
||||
**● encodeAddress**: *[encode](../modules/_address_encode_.md#encode)* = encodeAddress
|
||||
|
||||
*Defined in [index.ts:40](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/index.ts#L40)*
|
||||
*Defined in [index.ts:40](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/index.ts#L40)*
|
||||
|
||||
___
|
||||
<a id="setaddressprefix"></a>
|
||||
@@ -61,7 +61,7 @@ ___
|
||||
|
||||
**● setAddressPrefix**: *[setPrefix](../modules/_address_setprefix_.md#setprefix)* = setAddressPrefix
|
||||
|
||||
*Defined in [index.ts:41](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/index.ts#L41)*
|
||||
*Defined in [index.ts:41](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/index.ts#L41)*
|
||||
|
||||
___
|
||||
|
||||
@@ -73,7 +73,7 @@ ___
|
||||
|
||||
▸ **addFromAddress**(address: * `string` | `Uint8Array`*, meta?: *`KeyringPair$Meta`*, defaultEncoded?: *`Uint8Array`*): `KeyringPair`
|
||||
|
||||
*Defined in [index.ts:61](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/index.ts#L61)*
|
||||
*Defined in [index.ts:61](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/index.ts#L61)*
|
||||
|
||||
*__name__*: addFromAddress
|
||||
|
||||
@@ -85,7 +85,7 @@ ___
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `string` | `Uint8Array`|
|
||||
| `Optional` meta | `KeyringPair$Meta` |
|
||||
@@ -100,7 +100,7 @@ ___
|
||||
|
||||
▸ **addFromJson**(__namedParameters: *`object`*): `KeyringPair`
|
||||
|
||||
*Defined in [index.ts:76](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/index.ts#L76)*
|
||||
*Defined in [index.ts:76](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/index.ts#L76)*
|
||||
|
||||
*__name__*: addFromJson
|
||||
|
||||
@@ -114,7 +114,7 @@ ___
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| __namedParameters | `object` |
|
||||
|
||||
@@ -127,7 +127,7 @@ ___
|
||||
|
||||
▸ **addFromMnemonic**(mnemonic: *`string`*, meta?: *`KeyringPair$Meta`*): `KeyringPair`
|
||||
|
||||
*Defined in [index.ts:89](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/index.ts#L89)*
|
||||
*Defined in [index.ts:89](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/index.ts#L89)*
|
||||
|
||||
*__name__*: addFromMnemonic
|
||||
|
||||
@@ -139,7 +139,7 @@ ___
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| mnemonic | `string` |
|
||||
| `Optional` meta | `KeyringPair$Meta` |
|
||||
@@ -153,7 +153,7 @@ ___
|
||||
|
||||
▸ **addFromSeed**(seed: *`Uint8Array`*, meta?: *`KeyringPair$Meta`*): `KeyringPair`
|
||||
|
||||
*Defined in [index.ts:118](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/index.ts#L118)*
|
||||
*Defined in [index.ts:118](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/index.ts#L118)*
|
||||
|
||||
*__name__*: addFromSeed
|
||||
|
||||
@@ -182,7 +182,7 @@ Refer to an actual implementation in [Polkadot-JS ui-keyring > account > create]
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| seed | `Uint8Array` |
|
||||
| `Optional` meta | `KeyringPair$Meta` |
|
||||
@@ -196,7 +196,7 @@ ___
|
||||
|
||||
▸ **addPair**(pair: *`KeyringPair`*): `KeyringPair`
|
||||
|
||||
*Defined in [index.ts:48](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/index.ts#L48)*
|
||||
*Defined in [index.ts:48](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/index.ts#L48)*
|
||||
|
||||
*__name__*: addPair
|
||||
|
||||
@@ -206,7 +206,7 @@ ___
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| pair | `KeyringPair` |
|
||||
|
||||
@@ -219,7 +219,7 @@ ___
|
||||
|
||||
▸ **getPair**(address: * `string` | `Uint8Array`*): `KeyringPair`
|
||||
|
||||
*Defined in [index.ts:154](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/index.ts#L154)*
|
||||
*Defined in [index.ts:154](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/index.ts#L154)*
|
||||
|
||||
*__name__*: getPair
|
||||
|
||||
@@ -256,7 +256,7 @@ console.log(`Are all pairs the same? : ` +
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `string` | `Uint8Array`|
|
||||
|
||||
@@ -269,7 +269,7 @@ ___
|
||||
|
||||
▸ **getPairs**(): `Array`<`KeyringPair`>
|
||||
|
||||
*Defined in [index.ts:186](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/index.ts#L186)*
|
||||
*Defined in [index.ts:186](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/index.ts#L186)*
|
||||
|
||||
*__name__*: getPairs
|
||||
|
||||
@@ -310,7 +310,7 @@ ___
|
||||
|
||||
▸ **getPublicKeys**(): `Array`<`Uint8Array`>
|
||||
|
||||
*Defined in [index.ts:196](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/index.ts#L196)*
|
||||
*Defined in [index.ts:196](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/index.ts#L196)*
|
||||
|
||||
*__name__*: getPublicKeys
|
||||
|
||||
@@ -329,7 +329,7 @@ ___
|
||||
|
||||
▸ **removePair**(address: * `string` | `Uint8Array`*): `void`
|
||||
|
||||
*Defined in [index.ts:211](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/index.ts#L211)*
|
||||
*Defined in [index.ts:211](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/index.ts#L211)*
|
||||
|
||||
*__name__*: removePair
|
||||
|
||||
@@ -341,7 +341,7 @@ ___
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `string` | `Uint8Array`|
|
||||
|
||||
@@ -354,7 +354,7 @@ ___
|
||||
|
||||
▸ **toJson**(address: * `string` | `Uint8Array`*, passphrase?: * `undefined` | `string`*): `KeyringPair$Json`
|
||||
|
||||
*Defined in [index.ts:226](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/index.ts#L226)*
|
||||
*Defined in [index.ts:226](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/index.ts#L226)*
|
||||
|
||||
*__name__*: toJson
|
||||
|
||||
@@ -368,7 +368,7 @@ ___
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `string` | `Uint8Array`|
|
||||
| `Optional` passphrase | `undefined` | `string`|
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
⊕ **new Pairs**(): [Pairs](_pairs_.pairs.md)
|
||||
|
||||
*Defined in [pairs.ts:17](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/pairs.ts#L17)*
|
||||
*Defined in [pairs.ts:17](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/pairs.ts#L17)*
|
||||
|
||||
**Returns:** [Pairs](_pairs_.pairs.md)
|
||||
|
||||
@@ -30,11 +30,11 @@ ___
|
||||
|
||||
▸ **add**(pair: *`KeyringPair`*): `KeyringPair`
|
||||
|
||||
*Defined in [pairs.ts:23](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/pairs.ts#L23)*
|
||||
*Defined in [pairs.ts:23](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/pairs.ts#L23)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| pair | `KeyringPair` |
|
||||
|
||||
@@ -47,7 +47,7 @@ ___
|
||||
|
||||
▸ **all**(): `Array`<`KeyringPair`>
|
||||
|
||||
*Defined in [pairs.ts:30](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/pairs.ts#L30)*
|
||||
*Defined in [pairs.ts:30](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/pairs.ts#L30)*
|
||||
|
||||
**Returns:** `Array`<`KeyringPair`>
|
||||
|
||||
@@ -58,11 +58,11 @@ ___
|
||||
|
||||
▸ **get**(address: * `string` | `Uint8Array`*): `KeyringPair`
|
||||
|
||||
*Defined in [pairs.ts:34](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/pairs.ts#L34)*
|
||||
*Defined in [pairs.ts:34](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/pairs.ts#L34)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `string` | `Uint8Array`|
|
||||
|
||||
@@ -75,11 +75,11 @@ ___
|
||||
|
||||
▸ **remove**(address: * `string` | `Uint8Array`*): `void`
|
||||
|
||||
*Defined in [pairs.ts:49](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/pairs.ts#L49)*
|
||||
*Defined in [pairs.ts:49](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/pairs.ts#L49)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `string` | `Uint8Array`|
|
||||
|
||||
|
||||
@@ -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":"2018-11-14T12:52:09.122Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T12:53:16.755Z"},"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":"2018-11-14T13:20:26.042Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T13:21:39.912Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **decode**(encoded: * `string` | `Uint8Array`*, prefix?: *`Prefix`*): `Uint8Array`
|
||||
|
||||
*Defined in [address/decode.ts:15](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/address/decode.ts#L15)*
|
||||
*Defined in [address/decode.ts:15](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/address/decode.ts#L15)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Default value |
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| encoded | `string` | `Uint8Array`| - |
|
||||
| `Default value` prefix | `Prefix` | defaults.prefix |
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **encode**(_key: * `Uint8Array` | `string`*, prefix?: *`Prefix`*): `string`
|
||||
|
||||
*Defined in [address/encode.ts:15](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/address/encode.ts#L15)*
|
||||
*Defined in [address/encode.ts:15](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/address/encode.ts#L15)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Default value |
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| _key | `Uint8Array` | `string`| - |
|
||||
| `Default value` prefix | `Prefix` | defaults.prefix |
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **setPrefix**(prefix: *`Prefix`*): `void`
|
||||
|
||||
*Defined in [address/setPrefix.ts:9](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/address/setPrefix.ts#L9)*
|
||||
*Defined in [address/setPrefix.ts:9](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/address/setPrefix.ts#L9)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| prefix | `Prefix` |
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **decode**(passphrase?: * `undefined` | `string`*, _encrypted?: *`Uint8Array`*): `object`
|
||||
|
||||
*Defined in [pair/decode.ts:15](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/pair/decode.ts#L15)*
|
||||
*Defined in [pair/decode.ts:15](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/pair/decode.ts#L15)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| `Optional` passphrase | `undefined` | `string`|
|
||||
| `Optional` _encrypted | `Uint8Array` |
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **encode**(secretKey: *`Uint8Array`*, passphrase?: * `undefined` | `string`*): `Uint8Array`
|
||||
|
||||
*Defined in [pair/encode.ts:10](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/pair/encode.ts#L10)*
|
||||
*Defined in [pair/encode.ts:10](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/pair/encode.ts#L10)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| secretKey | `Uint8Array` |
|
||||
| `Optional` passphrase | `undefined` | `string`|
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **getMeta**(state: *`PairState`*): `KeyringPair$Meta`
|
||||
|
||||
*Defined in [pair/getMeta.ts:8](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/pair/getMeta.ts#L8)*
|
||||
*Defined in [pair/getMeta.ts:8](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/pair/getMeta.ts#L8)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| state | `PairState` |
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **pair**(__namedParameters: *`object`*, meta?: *`KeyringPair$Meta`*, defaultEncoded?: *`Uint8Array`*): `KeyringPair`
|
||||
|
||||
*Defined in [pair/index.ts:50](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/pair/index.ts#L50)*
|
||||
*Defined in [pair/index.ts:50](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/pair/index.ts#L50)*
|
||||
|
||||
*__name__*: pair
|
||||
|
||||
@@ -30,7 +30,7 @@ It has properties whose values are functions that may be called to perform accou
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Default value |
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| __namedParameters | `object` | - |
|
||||
| `Default value` meta | `KeyringPair$Meta` | {} |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **everybody**(): `KeyringPair`
|
||||
|
||||
*Defined in [pair/nobody.ts:25](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/pair/nobody.ts#L25)*
|
||||
*Defined in [pair/nobody.ts:25](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/pair/nobody.ts#L25)*
|
||||
|
||||
**Returns:** `KeyringPair`
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **setMeta**(state: *`PairState`*, meta: *`KeyringPair$Meta`*): `void`
|
||||
|
||||
*Defined in [pair/setMeta.ts:8](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/pair/setMeta.ts#L8)*
|
||||
*Defined in [pair/setMeta.ts:8](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/pair/setMeta.ts#L8)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| state | `PairState` |
|
||||
| meta | `KeyringPair$Meta` |
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **toJson**(__namedParameters: *`object`*, encoded: *`Uint8Array`*, isEncrypted: *`boolean`*): `KeyringPair$Json`
|
||||
|
||||
*Defined in [pair/toJson.ts:12](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/pair/toJson.ts#L12)*
|
||||
*Defined in [pair/toJson.ts:12](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/pair/toJson.ts#L12)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| __namedParameters | `object` |
|
||||
| encoded | `Uint8Array` |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **testKeyring**(): `KeyringInstance`
|
||||
|
||||
*Defined in [testing.ts:57](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/testing.ts#L57)*
|
||||
*Defined in [testing.ts:57](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/testing.ts#L57)*
|
||||
|
||||
*__name__*: testKeyring
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **testKeyringPairs**(): `TestKeyringMap`
|
||||
|
||||
*Defined in [testingPairs.ts:14](https://github.com/polkadot-js/common/blob/dc07e26/packages/keyring/src/testingPairs.ts#L14)*
|
||||
*Defined in [testingPairs.ts:14](https://github.com/polkadot-js/common/blob/75c09a9/packages/keyring/src/testingPairs.ts#L14)*
|
||||
|
||||
**Returns:** `TestKeyringMap`
|
||||
|
||||
|
||||
@@ -27,11 +27,11 @@ Overview
|
||||
|
||||
⊕ **new Trie**(db?: *`TxDb`*, rootHash?: *`Uint8Array`*): [Trie](_index_.trie.md)
|
||||
|
||||
*Defined in [index.ts:33](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/index.ts#L33)*
|
||||
*Defined in [index.ts:33](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/index.ts#L33)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Default value |
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| `Optional` db | `TxDb` | - |
|
||||
| `Default value` rootHash | `Uint8Array` | EMPTY_HASH |
|
||||
@@ -50,7 +50,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[db](../interfaces/_types_.triedb.md#db)*
|
||||
|
||||
*Defined in [index.ts:31](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/index.ts#L31)*
|
||||
*Defined in [index.ts:31](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/index.ts#L31)*
|
||||
|
||||
___
|
||||
|
||||
@@ -64,7 +64,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[close](../interfaces/_types_.triedb.md#close)*
|
||||
|
||||
*Defined in [index.ts:81](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/index.ts#L81)*
|
||||
*Defined in [index.ts:81](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/index.ts#L81)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -77,11 +77,11 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[del](../interfaces/_types_.triedb.md#del)*
|
||||
|
||||
*Defined in [index.ts:105](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/index.ts#L105)*
|
||||
*Defined in [index.ts:105](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/index.ts#L105)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
@@ -96,7 +96,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[drop](../interfaces/_types_.triedb.md#drop)*
|
||||
|
||||
*Defined in [index.ts:89](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/index.ts#L89)*
|
||||
*Defined in [index.ts:89](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/index.ts#L89)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -109,7 +109,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[empty](../interfaces/_types_.triedb.md#empty)*
|
||||
|
||||
*Defined in [index.ts:85](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/index.ts#L85)*
|
||||
*Defined in [index.ts:85](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/index.ts#L85)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -122,11 +122,11 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[get](../interfaces/_types_.triedb.md#get)*
|
||||
|
||||
*Defined in [index.ts:116](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/index.ts#L116)*
|
||||
*Defined in [index.ts:116](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/index.ts#L116)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
@@ -139,11 +139,11 @@ ___
|
||||
|
||||
▸ **getNode**(hash?: *`Uint8Array`*): [Node](../modules/_types_.md#node)
|
||||
|
||||
*Defined in [index.ts:147](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/index.ts#L147)*
|
||||
*Defined in [index.ts:147](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/index.ts#L147)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| `Optional` hash | `Uint8Array` |
|
||||
|
||||
@@ -158,7 +158,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[getRoot](../interfaces/_types_.triedb.md#getroot)*
|
||||
|
||||
*Defined in [index.ts:137](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/index.ts#L137)*
|
||||
*Defined in [index.ts:137](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/index.ts#L137)*
|
||||
|
||||
**Returns:** `Uint8Array`
|
||||
|
||||
@@ -171,11 +171,11 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[maintain](../interfaces/_types_.triedb.md#maintain)*
|
||||
|
||||
*Defined in [index.ts:93](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/index.ts#L93)*
|
||||
*Defined in [index.ts:93](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/index.ts#L93)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `ProgressCb` |
|
||||
|
||||
@@ -190,7 +190,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[open](../interfaces/_types_.triedb.md#open)*
|
||||
|
||||
*Defined in [index.ts:77](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/index.ts#L77)*
|
||||
*Defined in [index.ts:77](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/index.ts#L77)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -203,11 +203,11 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[put](../interfaces/_types_.triedb.md#put)*
|
||||
|
||||
*Defined in [index.ts:125](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/index.ts#L125)*
|
||||
*Defined in [index.ts:125](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/index.ts#L125)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
| value | `Uint8Array` |
|
||||
@@ -223,11 +223,11 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[rename](../interfaces/_types_.triedb.md#rename)*
|
||||
|
||||
*Defined in [index.ts:97](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/index.ts#L97)*
|
||||
*Defined in [index.ts:97](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/index.ts#L97)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| base | `string` |
|
||||
| file | `string` |
|
||||
@@ -243,11 +243,11 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[setRoot](../interfaces/_types_.triedb.md#setroot)*
|
||||
|
||||
*Defined in [index.ts:151](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/index.ts#L151)*
|
||||
*Defined in [index.ts:151](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/index.ts#L151)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| rootHash | `Uint8Array` |
|
||||
|
||||
@@ -262,7 +262,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[size](../interfaces/_types_.triedb.md#size)*
|
||||
|
||||
*Defined in [index.ts:101](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/index.ts#L101)*
|
||||
*Defined in [index.ts:101](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/index.ts#L101)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
@@ -275,11 +275,11 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[snapshot](../interfaces/_types_.triedb.md#snapshot)*
|
||||
|
||||
*Defined in [index.ts:156](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/index.ts#L156)*
|
||||
*Defined in [index.ts:156](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/index.ts#L156)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| dest | [TrieDb](../interfaces/_types_.triedb.md) |
|
||||
| fn | `ProgressCb` |
|
||||
@@ -293,11 +293,11 @@ ___
|
||||
|
||||
▸ **transaction**(fn: *`function`*): `boolean`
|
||||
|
||||
*Defined in [index.ts:57](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/index.ts#L57)*
|
||||
*Defined in [index.ts:57](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/index.ts#L57)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `function` |
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
**BRANCH**: = 3
|
||||
|
||||
*Defined in [types.ts:11](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/types.ts#L11)*
|
||||
*Defined in [types.ts:11](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/types.ts#L11)*
|
||||
|
||||
___
|
||||
<a id="empty"></a>
|
||||
@@ -28,7 +28,7 @@ ___
|
||||
|
||||
**EMPTY**: = 0
|
||||
|
||||
*Defined in [types.ts:8](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/types.ts#L8)*
|
||||
*Defined in [types.ts:8](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/types.ts#L8)*
|
||||
|
||||
___
|
||||
<a id="extension"></a>
|
||||
@@ -37,7 +37,7 @@ ___
|
||||
|
||||
**EXTENSION**: = 2
|
||||
|
||||
*Defined in [types.ts:10](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/types.ts#L10)*
|
||||
*Defined in [types.ts:10](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/types.ts#L10)*
|
||||
|
||||
___
|
||||
<a id="leaf"></a>
|
||||
@@ -46,7 +46,7 @@ ___
|
||||
|
||||
**LEAF**: = 1
|
||||
|
||||
*Defined in [types.ts:9](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/types.ts#L9)*
|
||||
*Defined in [types.ts:9](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/types.ts#L9)*
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -401,7 +401,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"trie-db","level":"1.3","depth":1,"next":{"title":"trie-hash","level":"1.4","depth":1,"path":"trie-hash/README.md","ref":"trie-hash/README.md","articles":[]},"previous":{"title":"keyring","level":"1.2","depth":1,"path":"keyring/README.md","ref":"keyring/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":"trie-db/README.md","mtime":"2018-11-14T12:52:16.910Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T12:53:16.755Z"},"basePath":"..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"trie-db","level":"1.3","depth":1,"next":{"title":"trie-hash","level":"1.4","depth":1,"path":"trie-hash/README.md","ref":"trie-hash/README.md","articles":[]},"previous":{"title":"keyring","level":"1.2","depth":1,"path":"keyring/README.md","ref":"keyring/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":"trie-db/README.md","mtime":"2018-11-14T13:20:34.390Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T13:21:39.912Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
**● db**: *`TxDb`*
|
||||
|
||||
*Defined in [types.ts:37](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/types.ts#L37)*
|
||||
*Defined in [types.ts:37](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/types.ts#L37)*
|
||||
|
||||
___
|
||||
|
||||
@@ -32,7 +32,7 @@ ___
|
||||
|
||||
*Inherited from BaseDb.close*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:18](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/types.d.ts#L18)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:18](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/types.d.ts#L18)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -45,11 +45,11 @@ ___
|
||||
|
||||
*Inherited from BaseDb.del*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:26](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/types.d.ts#L26)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:26](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/types.d.ts#L26)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
@@ -64,7 +64,7 @@ ___
|
||||
|
||||
*Inherited from BaseDb.drop*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:20](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/types.d.ts#L20)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:20](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/types.d.ts#L20)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -77,7 +77,7 @@ ___
|
||||
|
||||
*Inherited from BaseDb.empty*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:21](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/types.d.ts#L21)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:21](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/types.d.ts#L21)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -90,11 +90,11 @@ ___
|
||||
|
||||
*Inherited from BaseDb.get*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:27](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/types.d.ts#L27)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:27](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/types.d.ts#L27)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
@@ -107,7 +107,7 @@ ___
|
||||
|
||||
▸ **getRoot**(): `Uint8Array`
|
||||
|
||||
*Defined in [types.ts:39](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/types.ts#L39)*
|
||||
*Defined in [types.ts:39](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/types.ts#L39)*
|
||||
|
||||
**Returns:** `Uint8Array`
|
||||
|
||||
@@ -120,11 +120,11 @@ ___
|
||||
|
||||
*Inherited from BaseDb.maintain*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/types.d.ts#L22)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/types.d.ts#L22)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `ProgressCb` |
|
||||
|
||||
@@ -139,7 +139,7 @@ ___
|
||||
|
||||
*Inherited from BaseDb.open*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:19](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/types.d.ts#L19)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:19](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/types.d.ts#L19)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -152,11 +152,11 @@ ___
|
||||
|
||||
*Inherited from BaseDb.put*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:28](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/types.d.ts#L28)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:28](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/types.d.ts#L28)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
| value | `Uint8Array` |
|
||||
@@ -172,11 +172,11 @@ ___
|
||||
|
||||
*Inherited from BaseDb.rename*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:23](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/types.d.ts#L23)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:23](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/types.d.ts#L23)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| base | `string` |
|
||||
| file | `string` |
|
||||
@@ -190,11 +190,11 @@ ___
|
||||
|
||||
▸ **setRoot**(rootHash: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [types.ts:40](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/types.ts#L40)*
|
||||
*Defined in [types.ts:40](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/types.ts#L40)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| rootHash | `Uint8Array` |
|
||||
|
||||
@@ -209,7 +209,7 @@ ___
|
||||
|
||||
*Inherited from BaseDb.size*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:24](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/types.d.ts#L24)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:24](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/types.d.ts#L24)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
@@ -220,11 +220,11 @@ ___
|
||||
|
||||
▸ **snapshot**(dest: *[TrieDb](_types_.triedb.md)*, fn: *`ProgressCb`*): `number`
|
||||
|
||||
*Defined in [types.ts:41](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/types.ts#L41)*
|
||||
*Defined in [types.ts:41](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/types.ts#L41)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| dest | [TrieDb](_types_.triedb.md) |
|
||||
| fn | `ProgressCb` |
|
||||
@@ -240,11 +240,11 @@ ___
|
||||
|
||||
*Inherited from TxDb.transaction*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:32](https://github.com/polkadot-js/common/blob/dc07e26/packages/db/src/types.d.ts#L32)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:32](https://github.com/polkadot-js/common/blob/75c09a9/packages/db/src/types.d.ts#L32)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `function` |
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
**Ƭ EncodedPath**: * `Uint8Array` | `null`
|
||||
*
|
||||
|
||||
*Defined in [types.ts:28](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/types.ts#L28)*
|
||||
*Defined in [types.ts:28](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/types.ts#L28)*
|
||||
|
||||
___
|
||||
<a id="node"></a>
|
||||
@@ -42,7 +42,7 @@ ___
|
||||
**Ƭ Node**: * [NodeEmpty](_types_.md#nodeempty) | [NodeNotEmpty](_types_.md#nodenotempty)
|
||||
*
|
||||
|
||||
*Defined in [types.ts:34](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/types.ts#L34)*
|
||||
*Defined in [types.ts:34](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/types.ts#L34)*
|
||||
|
||||
___
|
||||
<a id="nodebranch"></a>
|
||||
@@ -51,7 +51,7 @@ ___
|
||||
|
||||
**Ƭ NodeBranch**: *[[NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty)]*
|
||||
|
||||
*Defined in [types.ts:20](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/types.ts#L20)*
|
||||
*Defined in [types.ts:20](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/types.ts#L20)*
|
||||
|
||||
___
|
||||
<a id="nodeempty"></a>
|
||||
@@ -60,7 +60,7 @@ ___
|
||||
|
||||
**Ƭ NodeEmpty**: *`null`*
|
||||
|
||||
*Defined in [types.ts:14](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/types.ts#L14)*
|
||||
*Defined in [types.ts:14](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/types.ts#L14)*
|
||||
|
||||
___
|
||||
<a id="nodeencoded"></a>
|
||||
@@ -69,7 +69,7 @@ ___
|
||||
|
||||
**Ƭ NodeEncoded**: *`Uint8Array`*
|
||||
|
||||
*Defined in [types.ts:16](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/types.ts#L16)*
|
||||
*Defined in [types.ts:16](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/types.ts#L16)*
|
||||
|
||||
___
|
||||
<a id="nodeencodedorempty"></a>
|
||||
@@ -79,7 +79,7 @@ ___
|
||||
**Ƭ NodeEncodedOrEmpty**: * [NodeEncoded](_types_.md#nodeencoded) | [NodeEmpty](_types_.md#nodeempty)
|
||||
*
|
||||
|
||||
*Defined in [types.ts:18](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/types.ts#L18)*
|
||||
*Defined in [types.ts:18](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/types.ts#L18)*
|
||||
|
||||
___
|
||||
<a id="nodekv"></a>
|
||||
@@ -88,7 +88,7 @@ ___
|
||||
|
||||
**Ƭ NodeKv**: *[[EncodedPath](_types_.md#encodedpath), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty)]*
|
||||
|
||||
*Defined in [types.ts:30](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/types.ts#L30)*
|
||||
*Defined in [types.ts:30](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/types.ts#L30)*
|
||||
|
||||
___
|
||||
<a id="nodenotempty"></a>
|
||||
@@ -98,7 +98,7 @@ ___
|
||||
**Ƭ NodeNotEmpty**: * [NodeKv](_types_.md#nodekv) | [NodeBranch](_types_.md#nodebranch)
|
||||
*
|
||||
|
||||
*Defined in [types.ts:32](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/types.ts#L32)*
|
||||
*Defined in [types.ts:32](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/types.ts#L32)*
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **isBranchNode**(node: *[Node](_types_.md#node)*): `boolean`
|
||||
|
||||
*Defined in [util/is.ts:57](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/util/is.ts#L57)*
|
||||
*Defined in [util/is.ts:57](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/util/is.ts#L57)*
|
||||
|
||||
*__name__*: isBranchNode
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| node | [Node](_types_.md#node) |
|
||||
|
||||
@@ -33,7 +33,7 @@ ___
|
||||
|
||||
▸ **isEmptyNode**(node: *[Node](_types_.md#node)*): `boolean`
|
||||
|
||||
*Defined in [util/is.ts:17](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/util/is.ts#L17)*
|
||||
*Defined in [util/is.ts:17](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/util/is.ts#L17)*
|
||||
|
||||
*__name__*: isEmptyNode
|
||||
|
||||
@@ -45,7 +45,7 @@ ___
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| node | [Node](_types_.md#node) |
|
||||
|
||||
@@ -58,7 +58,7 @@ ___
|
||||
|
||||
▸ **isExtensionNode**(node: *[Node](_types_.md#node)*): `boolean`
|
||||
|
||||
*Defined in [util/is.ts:37](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/util/is.ts#L37)*
|
||||
*Defined in [util/is.ts:37](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/util/is.ts#L37)*
|
||||
|
||||
*__name__*: isExtensionNode
|
||||
|
||||
@@ -70,7 +70,7 @@ ___
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| node | [Node](_types_.md#node) |
|
||||
|
||||
@@ -83,7 +83,7 @@ ___
|
||||
|
||||
▸ **isKvNode**(node: *[Node](_types_.md#node)*): `boolean`
|
||||
|
||||
*Defined in [util/is.ts:27](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/util/is.ts#L27)*
|
||||
*Defined in [util/is.ts:27](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/util/is.ts#L27)*
|
||||
|
||||
*__name__*: isKvNode
|
||||
|
||||
@@ -95,7 +95,7 @@ ___
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| node | [Node](_types_.md#node) |
|
||||
|
||||
@@ -108,7 +108,7 @@ ___
|
||||
|
||||
▸ **isLeafNode**(node: *[Node](_types_.md#node)*): `boolean`
|
||||
|
||||
*Defined in [util/is.ts:47](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/util/is.ts#L47)*
|
||||
*Defined in [util/is.ts:47](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/util/is.ts#L47)*
|
||||
|
||||
*__name__*: isLeafNode
|
||||
|
||||
@@ -120,7 +120,7 @@ ___
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| node | [Node](_types_.md#node) |
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **computeExtensionKey**(nibbles: *`Uint8Array`*): [EncodedPath](_types_.md#encodedpath)
|
||||
|
||||
*Defined in [util/key.ts:50](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/util/key.ts#L50)*
|
||||
*Defined in [util/key.ts:50](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/util/key.ts#L50)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| nibbles | `Uint8Array` |
|
||||
|
||||
@@ -25,11 +25,11 @@ ___
|
||||
|
||||
▸ **computeLeafKey**(nibbles: *`Uint8Array`*): [EncodedPath](_types_.md#encodedpath)
|
||||
|
||||
*Defined in [util/key.ts:54](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/util/key.ts#L54)*
|
||||
*Defined in [util/key.ts:54](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/util/key.ts#L54)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| nibbles | `Uint8Array` |
|
||||
|
||||
@@ -42,11 +42,11 @@ ___
|
||||
|
||||
▸ **consumeCommonPrefix**(left: *`Uint8Array`*, right: *`Uint8Array`*): [`Uint8Array`, `Uint8Array`, `Uint8Array`]
|
||||
|
||||
*Defined in [util/key.ts:70](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/util/key.ts#L70)*
|
||||
*Defined in [util/key.ts:70](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/util/key.ts#L70)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| left | `Uint8Array` |
|
||||
| right | `Uint8Array` |
|
||||
@@ -60,11 +60,11 @@ ___
|
||||
|
||||
▸ **extractKey**(node: *[Node](_types_.md#node)*): `Uint8Array`
|
||||
|
||||
*Defined in [util/key.ts:12](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/util/key.ts#L12)*
|
||||
*Defined in [util/key.ts:12](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/util/key.ts#L12)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| node | [Node](_types_.md#node) |
|
||||
|
||||
@@ -77,11 +77,11 @@ ___
|
||||
|
||||
▸ **getCommonPrefixLength**(left: *`Uint8Array`*, right: *`Uint8Array`*): `number`
|
||||
|
||||
*Defined in [util/key.ts:60](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/util/key.ts#L60)*
|
||||
*Defined in [util/key.ts:60](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/util/key.ts#L60)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| left | `Uint8Array` |
|
||||
| right | `Uint8Array` |
|
||||
@@ -95,11 +95,11 @@ ___
|
||||
|
||||
▸ **keyEquals**(key: * `Uint8Array` | `null`*, test: * `Uint8Array` | `null`*): `boolean`
|
||||
|
||||
*Defined in [util/key.ts:24](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/util/key.ts#L24)*
|
||||
*Defined in [util/key.ts:24](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/util/key.ts#L24)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` | `null`|
|
||||
| test | `Uint8Array` | `null`|
|
||||
@@ -113,11 +113,11 @@ ___
|
||||
|
||||
▸ **keyStartsWith**(key: * `Uint8Array` | `null`*, partial: * `Uint8Array` | `null`*): `boolean`
|
||||
|
||||
*Defined in [util/key.ts:34](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/util/key.ts#L34)*
|
||||
*Defined in [util/key.ts:34](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/util/key.ts#L34)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` | `null`|
|
||||
| partial | `Uint8Array` | `null`|
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **addNibblesTerminator**(nibbles: *`Uint8Array`*): `Uint8Array`
|
||||
|
||||
*Defined in [util/nibbles.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/util/nibbles.ts#L22)*
|
||||
*Defined in [util/nibbles.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/util/nibbles.ts#L22)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| nibbles | `Uint8Array` |
|
||||
|
||||
@@ -25,11 +25,11 @@ ___
|
||||
|
||||
▸ **decodeNibbles**(value: *[NodeEncodedOrEmpty](_types_.md#nodeencodedorempty)*): `Uint8Array`
|
||||
|
||||
*Defined in [util/nibbles.ts:43](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/util/nibbles.ts#L43)*
|
||||
*Defined in [util/nibbles.ts:43](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/util/nibbles.ts#L43)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| value | [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty) |
|
||||
|
||||
@@ -42,11 +42,11 @@ ___
|
||||
|
||||
▸ **encodeNibbles**(nibbles: *`Uint8Array`*): [NodeEncoded](_types_.md#nodeencoded)
|
||||
|
||||
*Defined in [util/nibbles.ts:56](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/util/nibbles.ts#L56)*
|
||||
*Defined in [util/nibbles.ts:56](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/util/nibbles.ts#L56)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| nibbles | `Uint8Array` |
|
||||
|
||||
@@ -59,11 +59,11 @@ ___
|
||||
|
||||
▸ **isNibblesTerminated**(nibbles: *`Uint8Array`*): `boolean`
|
||||
|
||||
*Defined in [util/nibbles.ts:18](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/util/nibbles.ts#L18)*
|
||||
*Defined in [util/nibbles.ts:18](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/util/nibbles.ts#L18)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| nibbles | `Uint8Array` |
|
||||
|
||||
@@ -76,11 +76,11 @@ ___
|
||||
|
||||
▸ **removeNibblesTerminator**(nibbles: *`Uint8Array`*): `Uint8Array`
|
||||
|
||||
*Defined in [util/nibbles.ts:35](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/util/nibbles.ts#L35)*
|
||||
*Defined in [util/nibbles.ts:35](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/util/nibbles.ts#L35)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| nibbles | `Uint8Array` |
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **decodeNode**(encoded: * `Uint8Array` | [Node](_types_.md#node)*): [Node](_types_.md#node)
|
||||
|
||||
*Defined in [util/node.ts:31](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/util/node.ts#L31)*
|
||||
*Defined in [util/node.ts:31](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/util/node.ts#L31)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| encoded | `Uint8Array` | [Node](_types_.md#node)|
|
||||
|
||||
@@ -25,11 +25,11 @@ ___
|
||||
|
||||
▸ **encodeNode**(node: *[Node](_types_.md#node)*): `Uint8Array`
|
||||
|
||||
*Defined in [util/node.ts:48](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/util/node.ts#L48)*
|
||||
*Defined in [util/node.ts:48](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/util/node.ts#L48)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| node | [Node](_types_.md#node) |
|
||||
|
||||
@@ -42,11 +42,11 @@ ___
|
||||
|
||||
▸ **getNodeType**(node: *[Node](_types_.md#node)*): [NodeType](../enums/_types_.nodetype.md)
|
||||
|
||||
*Defined in [util/node.ts:14](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-db/src/util/node.ts#L14)*
|
||||
*Defined in [util/node.ts:14](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-db/src/util/node.ts#L14)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| node | [Node](_types_.md#node) |
|
||||
|
||||
|
||||
@@ -412,7 +412,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"trie-hash","level":"1.4","depth":1,"next":{"title":"util","level":"1.5","depth":1,"path":"util/README.md","ref":"util/README.md","articles":[]},"previous":{"title":"trie-db","level":"1.3","depth":1,"path":"trie-db/README.md","ref":"trie-db/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":"trie-hash/README.md","mtime":"2018-11-14T12:52:24.327Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T12:53:16.755Z"},"basePath":"..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"trie-hash","level":"1.4","depth":1,"next":{"title":"util","level":"1.5","depth":1,"path":"util/README.md","ref":"util/README.md","articles":[]},"previous":{"title":"trie-db","level":"1.3","depth":1,"path":"trie-db/README.md","ref":"trie-db/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":"trie-hash/README.md","mtime":"2018-11-14T13:20:42.130Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T13:21:39.912Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **encodeAux**(pairs: *`Trie$Pairs`*, preLength: *`number`*): `Uint8Array` | `any`[]
|
||||
|
||||
*Defined in [encode/aux.ts:12](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-hash/src/encode/aux.ts#L12)*
|
||||
*Defined in [encode/aux.ts:12](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-hash/src/encode/aux.ts#L12)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| pairs | `Trie$Pairs` |
|
||||
| preLength | `number` |
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **encodeHexPrefix**(nibbles: * `Uint8Array` | `Array`<`number`>*, isLeaf: *`boolean`*): `Uint8Array`
|
||||
|
||||
*Defined in [encode/hexPrefix.ts:5](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-hash/src/encode/hexPrefix.ts#L5)*
|
||||
*Defined in [encode/hexPrefix.ts:5](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-hash/src/encode/hexPrefix.ts#L5)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| nibbles | `Uint8Array` | `Array`<`number`>|
|
||||
| isLeaf | `boolean` |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **encode**(pairs: *`Trie$Pairs`*, preLength: *`number`*): `Array`<`any`>
|
||||
|
||||
*Defined in [encode/index.ts:36](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-hash/src/encode/index.ts#L36)*
|
||||
*Defined in [encode/index.ts:36](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-hash/src/encode/index.ts#L36)*
|
||||
|
||||
*__name__*: encode
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| pairs | `Trie$Pairs` |
|
||||
| preLength | `number` |
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **encodePairs**(pairs: *`Trie$Pairs`*, preLength: *`number`*): `Array`<`any`>
|
||||
|
||||
*Defined in [encode/pairs.ts:23](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-hash/src/encode/pairs.ts#L23)*
|
||||
*Defined in [encode/pairs.ts:23](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-hash/src/encode/pairs.ts#L23)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| pairs | `Trie$Pairs` |
|
||||
| preLength | `number` |
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **encodeShared**(pairs: *`Trie$Pairs`*, preLength: *`number`*, sharedLength: *`number`*): `Array`<`any`>
|
||||
|
||||
*Defined in [encode/shared.ts:10](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-hash/src/encode/shared.ts#L10)*
|
||||
*Defined in [encode/shared.ts:10](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-hash/src/encode/shared.ts#L10)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| pairs | `Trie$Pairs` |
|
||||
| preLength | `number` |
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **encodeSingle**(pair: *`Trie$Pair`*, preLength: *`number`*): `Array`<`any`>
|
||||
|
||||
*Defined in [encode/single.ts:9](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-hash/src/encode/single.ts#L9)*
|
||||
*Defined in [encode/single.ts:9](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-hash/src/encode/single.ts#L9)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| pair | `Trie$Pair` |
|
||||
| preLength | `number` |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **trieRoot**(pairs: *`Trie$Pairs`*): `Uint8Array`
|
||||
|
||||
*Defined in [root.ts:30](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-hash/src/root.ts#L30)*
|
||||
*Defined in [root.ts:30](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-hash/src/root.ts#L30)*
|
||||
|
||||
*__name__*: trieRoot
|
||||
|
||||
@@ -32,7 +32,7 @@ trieRoot([{
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| pairs | `Trie$Pairs` |
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **trieRootOrdered**(values: *`Array`<`Uint8Array`>*): `Uint8Array`
|
||||
|
||||
*Defined in [rootOrdered.ts:29](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-hash/src/rootOrdered.ts#L29)*
|
||||
*Defined in [rootOrdered.ts:29](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-hash/src/rootOrdered.ts#L29)*
|
||||
|
||||
*__name__*: trieRootOrdered
|
||||
|
||||
@@ -32,7 +32,7 @@ trieRootOrdered([
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| values | `Array`<`Uint8Array`> |
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **asNibbles**(bytes: * `Uint8Array` | `Array`<`number`> | `null`*): `Uint8Array`
|
||||
|
||||
*Defined in [util/asNibbles.ts:20](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-hash/src/util/asNibbles.ts#L20)*
|
||||
*Defined in [util/asNibbles.ts:20](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-hash/src/util/asNibbles.ts#L20)*
|
||||
|
||||
*__name__*: asNibbles
|
||||
|
||||
@@ -28,7 +28,7 @@ asNibbles(new Uint8Array([0x41, 0x20]); // => Uint8Array([4, 1, 2, 0])
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| bytes | `Uint8Array` | `Array`<`number`> | `null`|
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **fromNibbles**(nibbles: * `Uint8Array` | `Array`<`number`>*): `Uint8Array`
|
||||
|
||||
*Defined in [util/fromNibbles.ts:20](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-hash/src/util/fromNibbles.ts#L20)*
|
||||
*Defined in [util/fromNibbles.ts:20](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-hash/src/util/fromNibbles.ts#L20)*
|
||||
|
||||
*__name__*: fromNibbles
|
||||
|
||||
@@ -28,7 +28,7 @@ asNibbles(new Uint8Array([4, 1, 2, 0])); // => Uint8Array([0x41, 0x20]
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| nibbles | `Uint8Array` | `Array`<`number`>|
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **genRoot**(pairs: *`Trie$Pairs`*): `Uint8Array`
|
||||
|
||||
*Defined in [util/genRoot.ts:17](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-hash/src/util/genRoot.ts#L17)*
|
||||
*Defined in [util/genRoot.ts:17](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-hash/src/util/genRoot.ts#L17)*
|
||||
|
||||
*__name__*: genRoot
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| pairs | `Trie$Pairs` |
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **pairsUniq**(pairs: *`Trie$Pairs`*): `Trie$Pairs`
|
||||
|
||||
*Defined in [util/pairsUniq.ts:18](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-hash/src/util/pairsUniq.ts#L18)*
|
||||
*Defined in [util/pairsUniq.ts:18](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-hash/src/util/pairsUniq.ts#L18)*
|
||||
|
||||
*__name__*: pairsUniq
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| pairs | `Trie$Pairs` |
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **getSharedLength**(a: *`Uint8Array`*, b: *`Uint8Array`*): `number`
|
||||
|
||||
*Defined in [util/sharedLength.ts:13](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-hash/src/util/sharedLength.ts#L13)*
|
||||
*Defined in [util/sharedLength.ts:13](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-hash/src/util/sharedLength.ts#L13)*
|
||||
|
||||
*__name__*: getSharedLength
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| a | `Uint8Array` |
|
||||
| b | `Uint8Array` |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **sharedPrefixLength**(pairs: *`Trie$Pairs`*): `number`
|
||||
|
||||
*Defined in [util/sharedPrefixLength.ts:13](https://github.com/polkadot-js/common/blob/dc07e26/packages/trie-hash/src/util/sharedPrefixLength.ts#L13)*
|
||||
*Defined in [util/sharedPrefixLength.ts:13](https://github.com/polkadot-js/common/blob/75c09a9/packages/trie-hash/src/util/sharedPrefixLength.ts#L13)*
|
||||
|
||||
*__name__*: sharedPrefixLength
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| pairs | `Trie$Pairs` |
|
||||
|
||||
|
||||
@@ -485,7 +485,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"util-crypto","level":"1.6","depth":1,"next":{"title":"Keyring","level":"2.1","depth":1,"path":"examples/keyring/README.md","ref":"examples/keyring/README.md","articles":[{"title":"Create Account","level":"2.1.1","depth":2,"path":"examples/keyring/01_create_account/README.md","ref":"examples/keyring/01_create_account/README.md","articles":[]},{"title":"Load Accounts","level":"2.1.2","depth":2,"path":"examples/keyring/02_load_accounts/README.md","ref":"examples/keyring/02_load_accounts/README.md","articles":[]}]},"previous":{"title":"util","level":"1.5","depth":1,"path":"util/README.md","ref":"util/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":"util-crypto/README.md","mtime":"2018-11-14T12:52:39.619Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T12:53:16.755Z"},"basePath":"..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"util-crypto","level":"1.6","depth":1,"next":{"title":"Keyring","level":"2.1","depth":1,"path":"examples/keyring/README.md","ref":"examples/keyring/README.md","articles":[{"title":"Create Account","level":"2.1.1","depth":2,"path":"examples/keyring/01_create_account/README.md","ref":"examples/keyring/01_create_account/README.md","articles":[]},{"title":"Load Accounts","level":"2.1.2","depth":2,"path":"examples/keyring/02_load_accounts/README.md","ref":"examples/keyring/02_load_accounts/README.md","articles":[]}]},"previous":{"title":"util","level":"1.5","depth":1,"path":"util/README.md","ref":"util/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":"util-crypto/README.md","mtime":"2018-11-14T13:20:58.426Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-14T13:21:39.912Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **blake2AsHex**(data: *`Uint8Array`*, bitLength?: *`number`*): `string`
|
||||
|
||||
*Defined in [blake2/asHex.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/blake2/asHex.ts#L22)*
|
||||
*Defined in [blake2/asHex.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/blake2/asHex.ts#L22)*
|
||||
|
||||
*__name__*: blake2AsHex
|
||||
|
||||
@@ -28,7 +28,7 @@ blake2AsHex('abc'); // => 0xba80a53f981c4d0d
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Default value |
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| data | `Uint8Array` | - |
|
||||
| `Default value` bitLength | `number` | 256 |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **blake2AsU8a**(data: *`Uint8Array`*, bitLength?: *`number`*, key?: *`Uint8Array`*): `Uint8Array`
|
||||
|
||||
*Defined in [blake2/asU8a.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/blake2/asU8a.ts#L22)*
|
||||
*Defined in [blake2/asU8a.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/blake2/asU8a.ts#L22)*
|
||||
|
||||
*__name__*: blake2AsU8a
|
||||
|
||||
@@ -28,7 +28,7 @@ blake2AsU8a('abc'); // => [0xba, 0x80, 0xa53, 0xf98, 0x1c, 0x4d, 0x0d]
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Default value |
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| data | `Uint8Array` | - |
|
||||
| `Default value` bitLength | `number` | 256 |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **blake2bAsHex**(data: *`Uint8Array`*, bitLength?: *`number`*): `string`
|
||||
|
||||
*Defined in [blake2/blake2b/asHex.ts:24](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/blake2/blake2b/asHex.ts#L24)*
|
||||
*Defined in [blake2/blake2b/asHex.ts:24](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/blake2/blake2b/asHex.ts#L24)*
|
||||
|
||||
*__name__*: blake2bAsHex
|
||||
|
||||
@@ -28,7 +28,7 @@ blake2bAsHex('abc'); // => '0xba80a53f981c4d0d6a2797b69f12f6e94c212f14685ac4b74b
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Default value |
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| data | `Uint8Array` | - |
|
||||
| `Default value` bitLength | `number` | 512 |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **blake2bAsU8a**(data: *`Uint8Array`*, bitLength?: *`number`*, key?: * `Uint8Array` | `null`*): `Uint8Array`
|
||||
|
||||
*Defined in [blake2/blake2b/asU8a.ts:23](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/blake2/blake2b/asU8a.ts#L23)*
|
||||
*Defined in [blake2/blake2b/asU8a.ts:23](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/blake2/blake2b/asU8a.ts#L23)*
|
||||
|
||||
*__name__*: blake2bAsU8a
|
||||
|
||||
@@ -28,7 +28,7 @@ blake2bAsU8a('abc'); // => Uint8Array('508c5e8c327c14e2e1a72ba34eeb452f37458b209
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Default value |
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| data | `Uint8Array` | - |
|
||||
| `Default value` bitLength | `number` | 512 |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **keccakAsHex**(value: * `Buffer` | `Uint8Array` | `string`*): `string`
|
||||
|
||||
*Defined in [keccak/asHex.ts:24](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/keccak/asHex.ts#L24)*
|
||||
*Defined in [keccak/asHex.ts:24](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/keccak/asHex.ts#L24)*
|
||||
|
||||
*__name__*: keccakAsHex
|
||||
|
||||
@@ -28,7 +28,7 @@ keccakAsHex('123'); // => 0x...
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| value | `Buffer` | `Uint8Array` | `string`|
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **keccakAsU8a**(value: * `Buffer` | `Uint8Array` | `string`*): `Uint8Array`
|
||||
|
||||
*Defined in [keccak/asU8a.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/keccak/asU8a.ts#L22)*
|
||||
*Defined in [keccak/asU8a.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/keccak/asU8a.ts#L22)*
|
||||
|
||||
*__name__*: keccakAsU8a
|
||||
|
||||
@@ -28,7 +28,7 @@ keccakAsU8a('123'); // => Uint8Array
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| value | `Buffer` | `Uint8Array` | `string`|
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **mnemonicGenerate**(): `string`
|
||||
|
||||
*Defined in [mnemonic/generate.ts:20](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/mnemonic/generate.ts#L20)*
|
||||
*Defined in [mnemonic/generate.ts:20](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/mnemonic/generate.ts#L20)*
|
||||
|
||||
*__name__*: mnemonicGenerate
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **toSecret**(mnemonic: *`string`*): `Uint8Array`
|
||||
|
||||
*Defined in [mnemonic/toSecret.ts:8](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/mnemonic/toSecret.ts#L8)*
|
||||
*Defined in [mnemonic/toSecret.ts:8](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/mnemonic/toSecret.ts#L8)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| mnemonic | `string` |
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **toSeed**(mnemonic: *`string`*): `Uint8Array`
|
||||
|
||||
*Defined in [mnemonic/toSeed.ts:25](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/mnemonic/toSeed.ts#L25)*
|
||||
*Defined in [mnemonic/toSeed.ts:25](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/mnemonic/toSeed.ts#L25)*
|
||||
|
||||
*__name__*: toSeed
|
||||
|
||||
@@ -31,7 +31,7 @@ if (isValidMnemonic) {
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| mnemonic | `string` |
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **mnemonicValidate**(mnemonic: *`string`*): `boolean`
|
||||
|
||||
*Defined in [mnemonic/validate.ts:21](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/mnemonic/validate.ts#L21)*
|
||||
*Defined in [mnemonic/validate.ts:21](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/mnemonic/validate.ts#L21)*
|
||||
|
||||
*__name__*: mnemonicValidate
|
||||
|
||||
@@ -27,7 +27,7 @@ const isValidMnemonic = mnemonicValidate(mnemonic); // => boolean
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| mnemonic | `string` |
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **naclDecrypt**(encrypted: *`Uint8Array`*, nonce: *`Uint8Array`*, secret: *`Uint8Array`*): `Uint8Array` | `null`
|
||||
|
||||
*Defined in [nacl/decrypt.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/nacl/decrypt.ts#L22)*
|
||||
*Defined in [nacl/decrypt.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/nacl/decrypt.ts#L22)*
|
||||
|
||||
*__name__*: naclDecrypt
|
||||
|
||||
@@ -28,7 +28,7 @@ naclDecrypt([...], [...], [...]); // => [...]
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| encrypted | `Uint8Array` |
|
||||
| nonce | `Uint8Array` |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **naclEncrypt**(message: *`Uint8Array`*, secret: *`Uint8Array`*, nonce?: *`Uint8Array`*): `Encrypted`
|
||||
|
||||
*Defined in [nacl/encrypt.ts:29](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/nacl/encrypt.ts#L29)*
|
||||
*Defined in [nacl/encrypt.ts:29](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/nacl/encrypt.ts#L29)*
|
||||
|
||||
*__name__*: naclEncrypt
|
||||
|
||||
@@ -28,7 +28,7 @@ naclEncrypt([...], [...]); // => [...]
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Default value |
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| message | `Uint8Array` | - |
|
||||
| secret | `Uint8Array` | - |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **naclKeypairFromRandom**(): `KeypairType`
|
||||
|
||||
*Defined in [nacl/keypair/fromRandom.ts:24](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/nacl/keypair/fromRandom.ts#L24)*
|
||||
*Defined in [nacl/keypair/fromRandom.ts:24](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/nacl/keypair/fromRandom.ts#L24)*
|
||||
|
||||
*__name__*: naclKeypairFromRandom
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **naclKeypairFromSecret**(secret: *`Uint8Array`*): `KeypairType`
|
||||
|
||||
*Defined in [nacl/keypair/fromSecret.ts:24](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/nacl/keypair/fromSecret.ts#L24)*
|
||||
*Defined in [nacl/keypair/fromSecret.ts:24](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/nacl/keypair/fromSecret.ts#L24)*
|
||||
|
||||
*__name__*: naclKeypairFromSecret
|
||||
|
||||
@@ -28,7 +28,7 @@ naclKeypairFromSecret(...); // => { secretKey: [...], publicKey: [...] }
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| secret | `Uint8Array` |
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **naclKeypairFromSeed**(seed: *`Uint8Array`*): `KeypairType`
|
||||
|
||||
*Defined in [nacl/keypair/fromSeed.ts:24](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/nacl/keypair/fromSeed.ts#L24)*
|
||||
*Defined in [nacl/keypair/fromSeed.ts:24](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/nacl/keypair/fromSeed.ts#L24)*
|
||||
|
||||
*__name__*: naclKeypairFromSeed
|
||||
|
||||
@@ -28,7 +28,7 @@ naclKeypairFromSeed(...); // => { secretKey: [...], publicKey: [...] }
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| seed | `Uint8Array` |
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **naclKeypairFromString**(value: *`string`*): `KeypairType`
|
||||
|
||||
*Defined in [nacl/keypair/fromString.ts:27](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/nacl/keypair/fromString.ts#L27)*
|
||||
*Defined in [nacl/keypair/fromString.ts:27](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/nacl/keypair/fromString.ts#L27)*
|
||||
|
||||
*__name__*: naclKeypairFromString
|
||||
|
||||
@@ -28,7 +28,7 @@ naclKeypairFromString('test'); // => { secretKey: [...], publicKey: [...] }
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| value | `string` |
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **naclSign**(message: *`Uint8Array`*, secretKey: *`Uint8Array`*): `Uint8Array`
|
||||
|
||||
*Defined in [nacl/sign.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/nacl/sign.ts#L22)*
|
||||
*Defined in [nacl/sign.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/nacl/sign.ts#L22)*
|
||||
|
||||
*__name__*: naclSign
|
||||
|
||||
@@ -28,7 +28,7 @@ naclSign([...], [...]); // => [...]
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| message | `Uint8Array` |
|
||||
| secretKey | `Uint8Array` |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **naclVerify**(message: *`Uint8Array`*, signature: *`Uint8Array`*, publicKey: *`Uint8Array`*): `boolean`
|
||||
|
||||
*Defined in [nacl/verify.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/nacl/verify.ts#L22)*
|
||||
*Defined in [nacl/verify.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/nacl/verify.ts#L22)*
|
||||
|
||||
*__name__*: naclSign
|
||||
|
||||
@@ -28,7 +28,7 @@ naclVerify([...], [...], [...]); // => true/false
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| message | `Uint8Array` |
|
||||
| signature | `Uint8Array` |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **randomAsHex**(length?: *`number`*): `string`
|
||||
|
||||
*Defined in [random/asHex.ts:24](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/random/asHex.ts#L24)*
|
||||
*Defined in [random/asHex.ts:24](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/random/asHex.ts#L24)*
|
||||
|
||||
*__name__*: randomAsHex
|
||||
|
||||
@@ -28,7 +28,7 @@ randomAsHex(); // => 0x...
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Default value |
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| `Default value` length | `number` | 32 |
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **randomAsNumber**(): `number`
|
||||
|
||||
*Defined in [random/asNumber.ts:27](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/random/asNumber.ts#L27)*
|
||||
*Defined in [random/asNumber.ts:27](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/random/asNumber.ts#L27)*
|
||||
|
||||
*__name__*: randomAsNumber
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **randomAsU8a**(length?: *`number`*): `Uint8Array`
|
||||
|
||||
*Defined in [random/asU8a.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/random/asU8a.ts#L22)*
|
||||
*Defined in [random/asU8a.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/random/asU8a.ts#L22)*
|
||||
|
||||
*__name__*: randomAsU8a
|
||||
|
||||
@@ -28,7 +28,7 @@ randomAsU8a(); // => Uint8Array([...])
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Default value |
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| `Default value` length | `number` | 32 |
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **sha512AsU8a**(data: *`Uint8Array`*): `Uint8Array`
|
||||
|
||||
*Defined in [sha512/asU8a.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/sha512/asU8a.ts#L22)*
|
||||
*Defined in [sha512/asU8a.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/sha512/asU8a.ts#L22)*
|
||||
|
||||
*__name__*: sha512AsU8a
|
||||
|
||||
@@ -28,7 +28,7 @@ sha512AsU8a(Uint8Array.from([...])); // => Uint8Array([...])
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| data | `Uint8Array` |
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **xxhashAsHex**(data: * `Buffer` | `Uint8Array` | `string`*, bitLength?: *`number`*): `string`
|
||||
|
||||
*Defined in [xxhash/asHex.ts:24](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/xxhash/asHex.ts#L24)*
|
||||
*Defined in [xxhash/asHex.ts:24](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/xxhash/asHex.ts#L24)*
|
||||
|
||||
*__name__*: xxhashAsHex
|
||||
|
||||
@@ -28,7 +28,7 @@ xxhashAsHex('abc'); // => 0x44bc2cf5ad770999
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Default value |
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| data | `Buffer` | `Uint8Array` | `string`| - |
|
||||
| `Default value` bitLength | `number` | 64 |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **xxhashAsU8a**(data: * `Buffer` | `Uint8Array` | `string`*, bitLength?: *`number`*): `Uint8Array`
|
||||
|
||||
*Defined in [xxhash/asU8a.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/xxhash/asU8a.ts#L22)*
|
||||
*Defined in [xxhash/asU8a.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/xxhash/asU8a.ts#L22)*
|
||||
|
||||
*__name__*: xxhashAsU8a
|
||||
|
||||
@@ -28,7 +28,7 @@ xxhashAsU8a('abc'); // => 0x44bc2cf5ad770999
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type | Default value |
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| data | `Buffer` | `Uint8Array` | `string`| - |
|
||||
| `Default value` bitLength | `number` | 64 |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **xxhash64AsBn**(data: * `Buffer` | `Uint8Array` | `string`*, seed: *`number`*): `BN`
|
||||
|
||||
*Defined in [xxhash/xxhash64/asBn.ts:24](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/xxhash/xxhash64/asBn.ts#L24)*
|
||||
*Defined in [xxhash/xxhash64/asBn.ts:24](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/xxhash/xxhash64/asBn.ts#L24)*
|
||||
|
||||
*__name__*: xxhash64AsBn
|
||||
|
||||
@@ -28,7 +28,7 @@ xxhash64AsBn('abcd', 0xabcd)); // => new BN(0xe29f70f8b8c96df7)
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| data | `Buffer` | `Uint8Array` | `string`|
|
||||
| seed | `number` |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **xxhash64AsHex**(data: * `Buffer` | `Uint8Array` | `string`*, seed: *`number`*): `string`
|
||||
|
||||
*Defined in [xxhash/xxhash64/asHex.ts:24](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/xxhash/xxhash64/asHex.ts#L24)*
|
||||
*Defined in [xxhash/xxhash64/asHex.ts:24](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/xxhash/xxhash64/asHex.ts#L24)*
|
||||
|
||||
*__name__*: xxhash64AsHex
|
||||
|
||||
@@ -28,7 +28,7 @@ xxhash64AsHex('abcd', 0xabcd)); // => 0xe29f70f8b8c96df7
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| data | `Buffer` | `Uint8Array` | `string`|
|
||||
| seed | `number` |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **xxhash64AsRaw**(data: * `Buffer` | `Uint8Array` | `string`*, seed: *`number`*): `string`
|
||||
|
||||
*Defined in [xxhash/xxhash64/asRaw.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/xxhash/xxhash64/asRaw.ts#L22)*
|
||||
*Defined in [xxhash/xxhash64/asRaw.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/xxhash/xxhash64/asRaw.ts#L22)*
|
||||
|
||||
*__name__*: xxhash64AsRaw
|
||||
|
||||
@@ -28,7 +28,7 @@ xxhash64AsRaw('abcd', 0xabcd)); // => e29f70f8b8c96df7
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| data | `Buffer` | `Uint8Array` | `string`|
|
||||
| seed | `number` |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **xxhash64AsValue**(data: * `Buffer` | `Uint8Array` | `string`*, seed: *`number`*): `number`
|
||||
|
||||
*Defined in [xxhash/xxhash64/asValue.ts:23](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-crypto/src/xxhash/xxhash64/asValue.ts#L23)*
|
||||
*Defined in [xxhash/xxhash64/asValue.ts:23](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-crypto/src/xxhash/xxhash64/asValue.ts#L23)*
|
||||
|
||||
*__name__*: xxhash64AsValue
|
||||
|
||||
@@ -28,7 +28,7 @@ xxhash64AsValue('abcd', 0xabcd)); // => e29f70f8b8c96df7
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| data | `Buffer` | `Uint8Array` | `string`|
|
||||
| seed | `number` |
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **decode**(input: *`Uint8Array`*): `DecodeOutput`
|
||||
|
||||
*Defined in [decoder/decode.ts:28](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-rlp/src/decoder/decode.ts#L28)*
|
||||
*Defined in [decoder/decode.ts:28](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-rlp/src/decoder/decode.ts#L28)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| input | `Uint8Array` |
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **decoder**(input?: *`Uint8Array`*): `Uint8Array` | `Array`<`any`>
|
||||
|
||||
*Defined in [decoder/index.ts:24](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-rlp/src/decoder/index.ts#L24)*
|
||||
*Defined in [decoder/index.ts:24](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-rlp/src/decoder/index.ts#L24)*
|
||||
|
||||
*__name__*: decoder
|
||||
|
||||
@@ -28,7 +28,7 @@ decode(new Uint8Array([0x83, 0x64, 0x6f, 0x67])); // => 'dog' as Uint8Array
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| `Optional` input | `Uint8Array` |
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **decodeListLong**(decode: *`DecodeFunc`*, input: *`Uint8Array`*): `DecodeOutput`
|
||||
|
||||
*Defined in [decoder/listLong.ts:11](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-rlp/src/decoder/listLong.ts#L11)*
|
||||
*Defined in [decoder/listLong.ts:11](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-rlp/src/decoder/listLong.ts#L11)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| decode | `DecodeFunc` |
|
||||
| input | `Uint8Array` |
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **decodeListShort**(decode: *`DecodeFunc`*, input: *`Uint8Array`*): `DecodeOutput`
|
||||
|
||||
*Defined in [decoder/listShort.ts:7](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-rlp/src/decoder/listShort.ts#L7)*
|
||||
*Defined in [decoder/listShort.ts:7](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-rlp/src/decoder/listShort.ts#L7)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| decode | `DecodeFunc` |
|
||||
| input | `Uint8Array` |
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **decodeNumber**(decode: *`DecodeFunc`*, input: *`Uint8Array`*): `DecodeOutput`
|
||||
|
||||
*Defined in [decoder/number.ts:11](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-rlp/src/decoder/number.ts#L11)*
|
||||
*Defined in [decoder/number.ts:11](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-rlp/src/decoder/number.ts#L11)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| decode | `DecodeFunc` |
|
||||
| input | `Uint8Array` |
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **safeParseInt**(input: *`Uint8Array`*): `number`
|
||||
|
||||
*Defined in [decoder/safeParseInt.ts:7](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-rlp/src/decoder/safeParseInt.ts#L7)*
|
||||
*Defined in [decoder/safeParseInt.ts:7](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-rlp/src/decoder/safeParseInt.ts#L7)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| input | `Uint8Array` |
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **decodeSingle**(decode: *`DecodeFunc`*, input: *`Uint8Array`*): `DecodeOutput`
|
||||
|
||||
*Defined in [decoder/single.ts:7](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-rlp/src/decoder/single.ts#L7)*
|
||||
*Defined in [decoder/single.ts:7](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-rlp/src/decoder/single.ts#L7)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| decode | `DecodeFunc` |
|
||||
| input | `Uint8Array` |
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **decodeString**(decode: *`DecodeFunc`*, input: *`Uint8Array`*): `DecodeOutput`
|
||||
|
||||
*Defined in [decoder/string.ts:9](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-rlp/src/decoder/string.ts#L9)*
|
||||
*Defined in [decoder/string.ts:9](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-rlp/src/decoder/string.ts#L9)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| decode | `DecodeFunc` |
|
||||
| input | `Uint8Array` |
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **encodeArray**(encoder: *`EncodeFunc`*, input: *`any`*): `Uint8Array`
|
||||
|
||||
*Defined in [encoder/array.ts:11](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-rlp/src/encoder/array.ts#L11)*
|
||||
*Defined in [encoder/array.ts:11](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-rlp/src/encoder/array.ts#L11)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| encoder | `EncodeFunc` |
|
||||
| input | `any` |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **encoder**(input: *`any`*): `Uint8Array`
|
||||
|
||||
*Defined in [encoder/index.ts:24](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-rlp/src/encoder/index.ts#L24)*
|
||||
*Defined in [encoder/index.ts:24](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-rlp/src/encoder/index.ts#L24)*
|
||||
|
||||
*__name__*: encoder
|
||||
|
||||
@@ -28,7 +28,7 @@ encode('dog'); // => [0x83, 0x64, 0x6f, 0x67]
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| input | `any` |
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **encodeLength**(length: *`number`*, offset: *`number`*): `Uint8Array`
|
||||
|
||||
*Defined in [encoder/length.ts:7](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-rlp/src/encoder/length.ts#L7)*
|
||||
*Defined in [encoder/length.ts:7](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-rlp/src/encoder/length.ts#L7)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| length | `number` |
|
||||
| offset | `number` |
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **toU8a**(value: *`any`*): `Uint8Array`
|
||||
|
||||
*Defined in [encoder/toU8a.ts:39](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-rlp/src/encoder/toU8a.ts#L39)*
|
||||
*Defined in [encoder/toU8a.ts:39](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-rlp/src/encoder/toU8a.ts#L39)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| value | `any` |
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
▸ **encodeU8a**(encoder: *`EncodeFunc`*, input: *`Uint8Array`*): `Uint8Array`
|
||||
|
||||
*Defined in [encoder/u8a.ts:11](https://github.com/polkadot-js/common/blob/dc07e26/packages/util-rlp/src/encoder/u8a.ts#L11)*
|
||||
*Defined in [encoder/u8a.ts:11](https://github.com/polkadot-js/common/blob/75c09a9/packages/util-rlp/src/encoder/u8a.ts#L11)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| encoder | `EncodeFunc` |
|
||||
| input | `Uint8Array` |
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user