[CI Skip] 0.34.4
This commit is contained in:
@@ -1,18 +1,27 @@
|
||||
* ["blake2/asHex"](modules/_blake2_ashex_.md)
|
||||
* ["blake2/asHex.spec"](modules/_blake2_ashex_spec_.md)
|
||||
* ["blake2/asU8a"](modules/_blake2_asu8a_.md)
|
||||
* ["blake2/asU8a.spec"](modules/_blake2_asu8a_spec_.md)
|
||||
* ["blake2/blake2b/asHex"](modules/_blake2_blake2b_ashex_.md)
|
||||
* ["blake2/blake2b/asHex.spec"](modules/_blake2_blake2b_ashex_spec_.md)
|
||||
* ["blake2/blake2b/asU8a"](modules/_blake2_blake2b_asu8a_.md)
|
||||
* ["blake2/blake2b/asU8a.spec"](modules/_blake2_blake2b_asu8a_spec_.md)
|
||||
* ["blake2/blake2b/index"](modules/_blake2_blake2b_index_.md)
|
||||
* ["blake2/index"](modules/_blake2_index_.md)
|
||||
* ["index"](modules/_index_.md)
|
||||
* ["keccak/asHex"](modules/_keccak_ashex_.md)
|
||||
* ["keccak/asHex.spec"](modules/_keccak_ashex_spec_.md)
|
||||
* ["keccak/asU8a"](modules/_keccak_asu8a_.md)
|
||||
* ["keccak/asU8a.spec"](modules/_keccak_asu8a_spec_.md)
|
||||
* ["keccak/index"](modules/_keccak_index_.md)
|
||||
* ["mnemonic/generate"](modules/_mnemonic_generate_.md)
|
||||
* ["mnemonic/generate.spec"](modules/_mnemonic_generate_spec_.md)
|
||||
* ["mnemonic/index"](modules/_mnemonic_index_.md)
|
||||
* ["mnemonic/toSecret"](modules/_mnemonic_tosecret_.md)
|
||||
* ["mnemonic/toSecret.spec"](modules/_mnemonic_tosecret_spec_.md)
|
||||
* ["mnemonic/toSeed"](modules/_mnemonic_toseed_.md)
|
||||
* ["mnemonic/validate"](modules/_mnemonic_validate_.md)
|
||||
* ["mnemonic/validate.spec"](modules/_mnemonic_validate_spec_.md)
|
||||
* ["nacl/decrypt"](modules/_nacl_decrypt_.md)
|
||||
* ["nacl/decrypt.spec"](modules/_nacl_decrypt_spec_.md)
|
||||
* ["nacl/encrypt"](modules/_nacl_encrypt_.md)
|
||||
@@ -31,8 +40,11 @@
|
||||
* ["nacl/verify"](modules/_nacl_verify_.md)
|
||||
* ["nacl/verify.spec"](modules/_nacl_verify_spec_.md)
|
||||
* ["random/asHex"](modules/_random_ashex_.md)
|
||||
* ["random/asHex.spec"](modules/_random_ashex_spec_.md)
|
||||
* ["random/asNumber"](modules/_random_asnumber_.md)
|
||||
* ["random/asNumber.spec"](modules/_random_asnumber_spec_.md)
|
||||
* ["random/asU8a"](modules/_random_asu8a_.md)
|
||||
* ["random/asU8a.spec"](modules/_random_asu8a_spec_.md)
|
||||
* ["random/index"](modules/_random_index_.md)
|
||||
* ["schnorrkel/index"](modules/_schnorrkel_index_.md)
|
||||
* ["schnorrkel/keypair/fromRandom"](modules/_schnorrkel_keypair_fromrandom_.md)
|
||||
@@ -45,13 +57,20 @@
|
||||
* ["schnorrkel/signVerify.spec"](modules/_schnorrkel_signverify_spec_.md)
|
||||
* ["schnorrkel/verify"](modules/_schnorrkel_verify_.md)
|
||||
* ["sha512/asU8a"](modules/_sha512_asu8a_.md)
|
||||
* ["sha512/asU8a.spec"](modules/_sha512_asu8a_spec_.md)
|
||||
* ["sha512/index"](modules/_sha512_index_.md)
|
||||
* ["types"](modules/_types_.md)
|
||||
* ["xxhash/asHex"](modules/_xxhash_ashex_.md)
|
||||
* ["xxhash/asHex.spec"](modules/_xxhash_ashex_spec_.md)
|
||||
* ["xxhash/asU8a"](modules/_xxhash_asu8a_.md)
|
||||
* ["xxhash/asU8a.spec"](modules/_xxhash_asu8a_spec_.md)
|
||||
* ["xxhash/index"](modules/_xxhash_index_.md)
|
||||
* ["xxhash/xxhash64/asBn"](modules/_xxhash_xxhash64_asbn_.md)
|
||||
* ["xxhash/xxhash64/asBn.spec"](modules/_xxhash_xxhash64_asbn_spec_.md)
|
||||
* ["xxhash/xxhash64/asHex"](modules/_xxhash_xxhash64_ashex_.md)
|
||||
* ["xxhash/xxhash64/asHex.spec"](modules/_xxhash_xxhash64_ashex_spec_.md)
|
||||
* ["xxhash/xxhash64/asRaw"](modules/_xxhash_xxhash64_asraw_.md)
|
||||
* ["xxhash/xxhash64/asRaw.spec"](modules/_xxhash_xxhash64_asraw_spec_.md)
|
||||
* ["xxhash/xxhash64/asValue"](modules/_xxhash_xxhash64_asvalue_.md)
|
||||
* ["xxhash/xxhash64/asValue.spec"](modules/_xxhash_xxhash64_asvalue_spec_.md)
|
||||
* ["xxhash/xxhash64/index"](modules/_xxhash_xxhash64_index_.md)
|
||||
|
||||
@@ -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":"2019-02-13T16:59:52.925Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-02-13T17:00:34.144Z"},"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":"2019-02-14T09:52:32.198Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-02-14T09:53:10.302Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -6,14 +6,12 @@
|
||||
|
||||
## blake2AsHex
|
||||
|
||||
▸ **blake2AsHex**(data: *`Uint8Array`*, bitLength?: *`number`*): `string`
|
||||
▸ **blake2AsHex**(data: *`Uint8Array` | `string`*, bitLength?: *`number`*): `string`
|
||||
|
||||
*Defined in [blake2/asHex.ts:22](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/blake2/asHex.ts#L22)*
|
||||
*Defined in [blake2/asHex.ts:21](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/blake2/asHex.ts#L21)*
|
||||
|
||||
*__name__*: blake2AsHex
|
||||
|
||||
*__signature__*: blake2AsHex (data: Uint8Array, bitLength: number = 256): string
|
||||
|
||||
*__summary__*: Creates a blake2b hex from the input.
|
||||
|
||||
*__description__*: From a `Uint8Array` input, create the blake2b and return the result as a hex string with the specified `bitLength`.
|
||||
@@ -30,7 +28,7 @@ blake2AsHex('abc'); // => 0xba80a53f981c4d0d
|
||||
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| data | `Uint8Array` | - |
|
||||
| data | `Uint8Array` | `string` | - |
|
||||
| `Default value` bitLength | `number` | 256 |
|
||||
|
||||
**Returns:** `string`
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -6,14 +6,12 @@
|
||||
|
||||
## blake2AsU8a
|
||||
|
||||
▸ **blake2AsU8a**(data: *`Uint8Array`*, bitLength?: *`number`*, key?: *`Uint8Array`*): `Uint8Array`
|
||||
▸ **blake2AsU8a**(data: *`Uint8Array` | `string`*, bitLength?: *`number`*, key?: *`Uint8Array`*): `Uint8Array`
|
||||
|
||||
*Defined in [blake2/asU8a.ts:22](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/blake2/asU8a.ts#L22)*
|
||||
*Defined in [blake2/asU8a.ts:21](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/blake2/asU8a.ts#L21)*
|
||||
|
||||
*__name__*: blake2AsU8a
|
||||
|
||||
*__signature__*: blake2AsU8a (data: Uint8Array, bitLength: number = 256): Uint8Array
|
||||
|
||||
*__summary__*: Creates a blake2b u8a from the input.
|
||||
|
||||
*__description__*: From a `Uint8Array` input, create the blake2b and return the result as a u8a with the specified `bitLength`.
|
||||
@@ -30,7 +28,7 @@ blake2AsU8a('abc'); // => [0xba, 0x80, 0xa53, 0xf98, 0x1c, 0x4d, 0x0d]
|
||||
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| data | `Uint8Array` | - |
|
||||
| data | `Uint8Array` | `string` | - |
|
||||
| `Default value` bitLength | `number` | 256 |
|
||||
| `Optional` key | `Uint8Array` | - |
|
||||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -6,14 +6,12 @@
|
||||
|
||||
## blake2bAsHex
|
||||
|
||||
▸ **blake2bAsHex**(data: *`Uint8Array`*, bitLength?: *`number`*): `string`
|
||||
▸ **blake2bAsHex**(data: *`Uint8Array` | `string`*, bitLength?: *`number`*): `string`
|
||||
|
||||
*Defined in [blake2/blake2b/asHex.ts:24](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/blake2/blake2b/asHex.ts#L24)*
|
||||
*Defined in [blake2/blake2b/asHex.ts:23](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/blake2/blake2b/asHex.ts#L23)*
|
||||
|
||||
*__name__*: blake2bAsHex
|
||||
|
||||
*__signature__*: blake2bAsHex (value: Uint8Array): string
|
||||
|
||||
*__summary__*: Creates a blake2b hex string from the input.
|
||||
|
||||
*__description__*: From a `Uint8Array` input, create the blake2b and return the result as a hex string.
|
||||
@@ -30,7 +28,7 @@ blake2bAsHex('abc'); // => '0xba80a53f981c4d0d6a2797b69f12f6e94c212f14685ac4b74b
|
||||
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| data | `Uint8Array` | - |
|
||||
| data | `Uint8Array` | `string` | - |
|
||||
| `Default value` bitLength | `number` | 512 |
|
||||
|
||||
**Returns:** `string`
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -6,14 +6,12 @@
|
||||
|
||||
## blake2bAsU8a
|
||||
|
||||
▸ **blake2bAsU8a**(data: *`Uint8Array`*, bitLength?: *`number`*, key?: *`Uint8Array` | `null`*): `Uint8Array`
|
||||
▸ **blake2bAsU8a**(data: *`Uint8Array` | `string`*, bitLength?: *`number`*, key?: *`Uint8Array` | `null`*): `Uint8Array`
|
||||
|
||||
*Defined in [blake2/blake2b/asU8a.ts:23](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/blake2/blake2b/asU8a.ts#L23)*
|
||||
*Defined in [blake2/blake2b/asU8a.ts:22](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/blake2/blake2b/asU8a.ts#L22)*
|
||||
|
||||
*__name__*: blake2bAsU8a
|
||||
|
||||
*__signature__*: blake2bAsU8a (value: Uint8Array): Uint8Array
|
||||
|
||||
*__summary__*: Creates a blake2b Uint8Array from the input.
|
||||
|
||||
*__description__*: From a `Uint8Array` input, create the blake2b and return the result as a `Uint8Array`.
|
||||
@@ -30,7 +28,7 @@ blake2bAsU8a('abc'); // => Uint8Array('508c5e8c327c14e2e1a72ba34eeb452f37458b209
|
||||
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| data | `Uint8Array` | - |
|
||||
| data | `Uint8Array` | `string` | - |
|
||||
| `Default value` bitLength | `number` | 512 |
|
||||
| `Default value` key | `Uint8Array` | `null` | null |
|
||||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **keccakAsHex**(value: *`Buffer` | `Uint8Array` | `string`*): `string`
|
||||
|
||||
*Defined in [keccak/asHex.ts:24](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/keccak/asHex.ts#L24)*
|
||||
*Defined in [keccak/asHex.ts:23](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/keccak/asHex.ts#L23)*
|
||||
|
||||
*__name__*: keccakAsHex
|
||||
|
||||
*__signature__*: keccakAsHex (value: Buffer | Uint8Array | string): string
|
||||
|
||||
*__summary__*: Creates a keccak hex string from the input.
|
||||
|
||||
*__description__*: From either a `string` or a `Buffer` input, create the keccak and return the result as a `0x` prefixed hex string.
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **keccakAsU8a**(value: *`Buffer` | `Uint8Array` | `string`*): `Uint8Array`
|
||||
|
||||
*Defined in [keccak/asU8a.ts:22](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/keccak/asU8a.ts#L22)*
|
||||
*Defined in [keccak/asU8a.ts:21](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/keccak/asU8a.ts#L21)*
|
||||
|
||||
*__name__*: keccakAsU8a
|
||||
|
||||
*__signature__*: keccakAsU8a (value: Buffer | Uint8Array | string): Uint8Array
|
||||
|
||||
*__summary__*: Creates a keccak Uint8Array from the input.
|
||||
|
||||
*__description__*: From either a `string` or a `Buffer` input, create the keccak and return the result as a `Uint8Array`.
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **mnemonicGenerate**(): `string`
|
||||
|
||||
*Defined in [mnemonic/generate.ts:20](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/mnemonic/generate.ts#L20)*
|
||||
*Defined in [mnemonic/generate.ts:19](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/mnemonic/generate.ts#L19)*
|
||||
|
||||
*__name__*: mnemonicGenerate
|
||||
|
||||
*__signature__*: mnemonicGenerate (): string
|
||||
|
||||
*__summary__*: Creates a valid mnemonic string using using [BIP39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki).
|
||||
|
||||
*__example__*:
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **toSecret**(mnemonic: *`string`*): `Uint8Array`
|
||||
|
||||
*Defined in [mnemonic/toSecret.ts:8](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/mnemonic/toSecret.ts#L8)*
|
||||
*Defined in [mnemonic/toSecret.ts:8](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/mnemonic/toSecret.ts#L8)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **toSeed**(mnemonic: *`string`*): `Uint8Array`
|
||||
|
||||
*Defined in [mnemonic/toSeed.ts:25](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/mnemonic/toSeed.ts#L25)*
|
||||
*Defined in [mnemonic/toSeed.ts:24](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/mnemonic/toSeed.ts#L24)*
|
||||
|
||||
*__name__*: toSeed
|
||||
|
||||
*__signature__*: toSeed (mnemonic: string): Uint8Array
|
||||
|
||||
*__summary__*: Creates a valid seed from a mnemonic input
|
||||
|
||||
*__example__*:
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **mnemonicValidate**(mnemonic: *`string`*): `boolean`
|
||||
|
||||
*Defined in [mnemonic/validate.ts:21](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/mnemonic/validate.ts#L21)*
|
||||
*Defined in [mnemonic/validate.ts:20](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/mnemonic/validate.ts#L20)*
|
||||
|
||||
*__name__*: mnemonicValidate
|
||||
|
||||
*__signature__*: mnemonicValidate (mnemonic: string): boolean
|
||||
|
||||
*__summary__*: Validates a mnemonic input using [BIP39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki).
|
||||
|
||||
*__example__*:
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **naclDecrypt**(encrypted: *`Uint8Array`*, nonce: *`Uint8Array`*, secret: *`Uint8Array`*): `Uint8Array` | `null`
|
||||
|
||||
*Defined in [nacl/decrypt.ts:22](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/nacl/decrypt.ts#L22)*
|
||||
*Defined in [nacl/decrypt.ts:21](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/nacl/decrypt.ts#L21)*
|
||||
|
||||
*__name__*: naclDecrypt
|
||||
|
||||
*__signature__*: naclDecrypt (message: Uint8Array, nonce: Uint8Array, secret: Uint8Array): Uint8Array
|
||||
|
||||
*__summary__*: Decrypts a message using the supplied secretKey and nonce
|
||||
|
||||
*__description__*: Returns an decrypted message, using the `secret` and `nonce`.
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **naclEncrypt**(message: *`Uint8Array`*, secret: *`Uint8Array`*, nonce?: *`Uint8Array`*): `Encrypted`
|
||||
|
||||
*Defined in [nacl/encrypt.ts:29](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/nacl/encrypt.ts#L29)*
|
||||
*Defined in [nacl/encrypt.ts:28](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/nacl/encrypt.ts#L28)*
|
||||
|
||||
*__name__*: naclEncrypt
|
||||
|
||||
*__signature__*: naclEncrypt (message: Uint8Array, secret: Uint8Array, nonce?: Uint8Array): { encrypted: Uint8Array, nonce: Uint8Array }
|
||||
|
||||
*__summary__*: Encrypts a message using the supplied secretKey and nonce
|
||||
|
||||
*__description__*: Returns an encrypted message, using the `secretKey` and `nonce`. If the `nonce` was not supplied, a random value is generated.
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **naclKeypairFromRandom**(): [KeypairType](_types_.md#keypairtype)
|
||||
|
||||
*Defined in [nacl/keypair/fromRandom.ts:24](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/nacl/keypair/fromRandom.ts#L24)*
|
||||
*Defined in [nacl/keypair/fromRandom.ts:23](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/nacl/keypair/fromRandom.ts#L23)*
|
||||
|
||||
*__name__*: naclKeypairFromRandom
|
||||
|
||||
*__signature__*: naclKeypairFromRandom (): { secretKey: Uint8Array, publicKey: Uint8Array }
|
||||
|
||||
*__summary__*: Creates a new public/secret keypair.
|
||||
|
||||
*__description__*: Returns a new generate object containing a `publicKey` & `secretKey`.
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **naclKeypairFromSecret**(secret: *`Uint8Array`*): [KeypairType](_types_.md#keypairtype)
|
||||
|
||||
*Defined in [nacl/keypair/fromSecret.ts:24](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/nacl/keypair/fromSecret.ts#L24)*
|
||||
*Defined in [nacl/keypair/fromSecret.ts:23](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/nacl/keypair/fromSecret.ts#L23)*
|
||||
|
||||
*__name__*: naclKeypairFromSecret
|
||||
|
||||
*__signature__*: naclKeypairFromSecret (secret: Uint8Array): { secretKey: Uint8Array, publicKey: Uint8Array }
|
||||
|
||||
*__summary__*: Creates a new public/secret keypair from a secret.
|
||||
|
||||
*__description__*: Returns a object containing a `publicKey` & `secretKey` generated from the supplied secret.
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **naclKeypairFromSeed**(seed: *`Uint8Array`*): [KeypairType](_types_.md#keypairtype)
|
||||
|
||||
*Defined in [nacl/keypair/fromSeed.ts:24](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/nacl/keypair/fromSeed.ts#L24)*
|
||||
*Defined in [nacl/keypair/fromSeed.ts:23](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/nacl/keypair/fromSeed.ts#L23)*
|
||||
|
||||
*__name__*: naclKeypairFromSeed
|
||||
|
||||
*__signature__*: naclKeypairFromSeed (seed: Uint8Array): { secretKey: Uint8Array, publicKey: Uint8Array }
|
||||
|
||||
*__summary__*: Creates a new public/secret keypair from a seed.
|
||||
|
||||
*__description__*: Returns a object containing a `publicKey` & `secretKey` generated from the supplied seed.
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **naclKeypairFromString**(value: *`string`*): [KeypairType](_types_.md#keypairtype)
|
||||
|
||||
*Defined in [nacl/keypair/fromString.ts:27](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/nacl/keypair/fromString.ts#L27)*
|
||||
*Defined in [nacl/keypair/fromString.ts:26](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/nacl/keypair/fromString.ts#L26)*
|
||||
|
||||
*__name__*: naclKeypairFromString
|
||||
|
||||
*__signature__*: naclKeypairFromString (value: string): { secretKey: Uint8Array, publicKey: Uint8Array }
|
||||
|
||||
*__summary__*: Creates a new public/secret keypair from a string.
|
||||
|
||||
*__description__*: Returns a object containing a `publicKey` & `secretKey` generated from the supplied string. The string is hashed and the value used as the input seed.
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **naclSign**(message: *`Uint8Array`*, __namedParameters: *`object`*): `Uint8Array`
|
||||
|
||||
*Defined in [nacl/sign.ts:25](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/nacl/sign.ts#L25)*
|
||||
*Defined in [nacl/sign.ts:24](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/nacl/sign.ts#L24)*
|
||||
|
||||
*__name__*: naclSign
|
||||
|
||||
*__signature__*: naclSign (message: Uint8Array, secretKey: Uint8Array): Uint8Array
|
||||
|
||||
*__summary__*: Signs a message using the supplied secretKey
|
||||
|
||||
*__description__*: Returns message signature of `message`, using the `secretKey`.
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **naclVerify**(message: *`Uint8Array`*, signature: *`Uint8Array`*, publicKey: *`Uint8Array`*): `boolean`
|
||||
|
||||
*Defined in [nacl/verify.ts:22](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/nacl/verify.ts#L22)*
|
||||
*Defined in [nacl/verify.ts:21](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/nacl/verify.ts#L21)*
|
||||
|
||||
*__name__*: naclSign
|
||||
|
||||
*__signature__*: naclVerify (message: Uint8Array, signature: Uint8Array, publicKey: Uint8Array): boolean
|
||||
|
||||
*__summary__*: Verifies the signature on the supplied message.
|
||||
|
||||
*__description__*: Verifies the `signature` on `message` with the supplied `plublicKey`. Returns `true` on sucess, `false` otherwise.
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **randomAsHex**(length?: *`number`*): `string`
|
||||
|
||||
*Defined in [random/asHex.ts:24](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/random/asHex.ts#L24)*
|
||||
*Defined in [random/asHex.ts:23](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/random/asHex.ts#L23)*
|
||||
|
||||
*__name__*: randomAsHex
|
||||
|
||||
*__signature__*: randomAsHex (length?: number = 32): string
|
||||
|
||||
*__summary__*: Creates a hex string filled with random bytes.
|
||||
|
||||
*__description__*: Returns a hex string with the specified (optional) length filled with random bytes.
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **randomAsNumber**(): `number`
|
||||
|
||||
*Defined in [random/asNumber.ts:27](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/random/asNumber.ts#L27)*
|
||||
*Defined in [random/asNumber.ts:26](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/random/asNumber.ts#L26)*
|
||||
|
||||
*__name__*: randomAsNumber
|
||||
|
||||
*__signature__*: randomAsNumber (): number
|
||||
|
||||
*__summary__*: Creates a random number from random bytes.
|
||||
|
||||
*__description__*: Returns a random number generated from the secure bytes.
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **randomAsU8a**(length?: *`number`*): `Uint8Array`
|
||||
|
||||
*Defined in [random/asU8a.ts:22](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/random/asU8a.ts#L22)*
|
||||
*Defined in [random/asU8a.ts:21](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/random/asU8a.ts#L21)*
|
||||
|
||||
*__name__*: randomAsU8a
|
||||
|
||||
*__signature__*: randomAsU8a (length?: number = 32): Uint8Array
|
||||
|
||||
*__summary__*: Creates a Uint8Array filled with random bytes.
|
||||
|
||||
*__description__*: Returns a `Uint8Array` with the specified (optional) length filled with random bytes.
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **schnorrkelKeypairFromRandom**(): [KeypairType](_types_.md#keypairtype)
|
||||
|
||||
*Defined in [schnorrkel/keypair/fromRandom.ts:14](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/schnorrkel/keypair/fromRandom.ts#L14)*
|
||||
*Defined in [schnorrkel/keypair/fromRandom.ts:14](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/schnorrkel/keypair/fromRandom.ts#L14)*
|
||||
|
||||
*__name__*: schnorrkelKeypairFromRandom
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **schnorrkelKeypairFromSeed**(seed: *`Uint8Array`*): [KeypairType](_types_.md#keypairtype)
|
||||
|
||||
*Defined in [schnorrkel/keypair/fromSeed.ts:16](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/schnorrkel/keypair/fromSeed.ts#L16)*
|
||||
*Defined in [schnorrkel/keypair/fromSeed.ts:16](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/schnorrkel/keypair/fromSeed.ts#L16)*
|
||||
|
||||
*__name__*: schnorrkelKeypairFromSeed
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **schnorrkelSign**(message: *`Uint8Array`*, __namedParameters: *`object`*): `Uint8Array`
|
||||
|
||||
*Defined in [schnorrkel/sign.ts:15](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/schnorrkel/sign.ts#L15)*
|
||||
*Defined in [schnorrkel/sign.ts:15](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/schnorrkel/sign.ts#L15)*
|
||||
|
||||
*__name__*: schnorrkelSign
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **schnorrkelVerify**(message: *`Uint8Array`*, signature: *`Uint8Array`*, publicKey: *`Uint8Array`*): `boolean`
|
||||
|
||||
*Defined in [schnorrkel/verify.ts:11](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/schnorrkel/verify.ts#L11)*
|
||||
*Defined in [schnorrkel/verify.ts:11](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/schnorrkel/verify.ts#L11)*
|
||||
|
||||
*__name__*: schnorrkelVerify
|
||||
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **sha512AsU8a**(data: *`Uint8Array`*): `Uint8Array`
|
||||
|
||||
*Defined in [sha512/asU8a.ts:22](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/sha512/asU8a.ts#L22)*
|
||||
*Defined in [sha512/asU8a.ts:21](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/sha512/asU8a.ts#L21)*
|
||||
|
||||
*__name__*: sha512AsU8a
|
||||
|
||||
*__signature__*: sha512AsU8a (data: Uint8Array): Uint8Array
|
||||
|
||||
*__summary__*: Creates sha-512 hash of the input.
|
||||
|
||||
*__description__*: Returns a sha-512 `Uint8Array` from the supplied data.
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
**Ƭ KeypairType**: *`object`*
|
||||
|
||||
*Defined in [types.ts:5](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/types.ts#L5)*
|
||||
*Defined in [types.ts:5](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/types.ts#L5)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **xxhashAsHex**(data: *`Buffer` | `Uint8Array` | `string`*, bitLength?: *`number`*): `string`
|
||||
|
||||
*Defined in [xxhash/asHex.ts:24](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/xxhash/asHex.ts#L24)*
|
||||
*Defined in [xxhash/asHex.ts:23](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/xxhash/asHex.ts#L23)*
|
||||
|
||||
*__name__*: xxhashAsHex
|
||||
|
||||
*__signature__*: xxhashAsHex (data: Buffer | Uint8Array | string, bitLength: number = 64): string
|
||||
|
||||
*__summary__*: Creates a xxhash64 hex from the input.
|
||||
|
||||
*__description__*: From either a `string`, `Uint8Array` or a `Buffer` input, create the xxhash64 and return the result as a hex string with the specified `bitLength`.
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **xxhashAsU8a**(data: *`Buffer` | `Uint8Array` | `string`*, bitLength?: *`number`*): `Uint8Array`
|
||||
|
||||
*Defined in [xxhash/asU8a.ts:22](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/xxhash/asU8a.ts#L22)*
|
||||
*Defined in [xxhash/asU8a.ts:21](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/xxhash/asU8a.ts#L21)*
|
||||
|
||||
*__name__*: xxhashAsU8a
|
||||
|
||||
*__signature__*: xxhashAsU8a (data: Buffer | Uint8Array | string, bitLength: number = 64): Uint8Array
|
||||
|
||||
*__summary__*: Creates a xxhash64 u8a from the input.
|
||||
|
||||
*__description__*: From either a `string`, `Uint8Array` or a `Buffer` input, create the xxhash64 and return the result as a `Uint8Array` with the specified `bitLength`.
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **xxhash64AsBn**(data: *`Buffer` | `Uint8Array` | `string`*, seed: *`number`*): `BN`
|
||||
|
||||
*Defined in [xxhash/xxhash64/asBn.ts:24](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/xxhash/xxhash64/asBn.ts#L24)*
|
||||
*Defined in [xxhash/xxhash64/asBn.ts:23](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/xxhash/xxhash64/asBn.ts#L23)*
|
||||
|
||||
*__name__*: xxhash64AsBn
|
||||
|
||||
*__signature__*: xxhash64AsBn (data: Buffer | Uint8Array | string, seed: number): BN
|
||||
|
||||
*__summary__*: Creates a xxhash BN from the input.
|
||||
|
||||
*__description__*: From either a `string`, `Uint8Array` or a `Buffer` input, create the xxhash and return the result as a BN.
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **xxhash64AsHex**(data: *`Buffer` | `Uint8Array` | `string`*, seed: *`number`*): `string`
|
||||
|
||||
*Defined in [xxhash/xxhash64/asHex.ts:24](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/xxhash/xxhash64/asHex.ts#L24)*
|
||||
*Defined in [xxhash/xxhash64/asHex.ts:23](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/xxhash/xxhash64/asHex.ts#L23)*
|
||||
|
||||
*__name__*: xxhash64AsHex
|
||||
|
||||
*__signature__*: xxhash64AsHex (data: Buffer | Uint8Array | string, seed: number): string
|
||||
|
||||
*__summary__*: Creates a xxhash hex from the input.
|
||||
|
||||
*__description__*: From either a `string`, `Uint8Array` or a `Buffer` input, create the xxhash and return the result as a hex string.
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **xxhash64AsRaw**(data: *`Buffer` | `Uint8Array` | `string`*, seed: *`number`*): `string`
|
||||
|
||||
*Defined in [xxhash/xxhash64/asRaw.ts:22](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/xxhash/xxhash64/asRaw.ts#L22)*
|
||||
*Defined in [xxhash/xxhash64/asRaw.ts:21](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/xxhash/xxhash64/asRaw.ts#L21)*
|
||||
|
||||
*__name__*: xxhash64AsRaw
|
||||
|
||||
*__signature__*: xxhash64AsRaw (data: Buffer | Uint8Array | string, seed: number): string
|
||||
|
||||
*__summary__*: Creates a xxhash non-prefixed hex from the input.
|
||||
|
||||
*__description__*: From either a `string`, `Uint8Array` or a `Buffer` input, create the xxhash and return the result as a non-prefixed hex string.
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
|
||||
▸ **xxhash64AsValue**(data: *`Buffer` | `Uint8Array` | `string`*, seed: *`number`*): `number`
|
||||
|
||||
*Defined in [xxhash/xxhash64/asValue.ts:23](https://github.com/polkadot-js/common/blob/06cc692/packages/util-crypto/src/xxhash/xxhash64/asValue.ts#L23)*
|
||||
*Defined in [xxhash/xxhash64/asValue.ts:22](https://github.com/polkadot-js/common/blob/1e6eb2c/packages/util-crypto/src/xxhash/xxhash64/asValue.ts#L22)*
|
||||
|
||||
*__name__*: xxhash64AsValue
|
||||
|
||||
*__signature__*: xxhash64AsValue (data: Buffer | Uint8Array | string, seed: number): number
|
||||
|
||||
*__summary__*: Creates a hex number from the input.
|
||||
|
||||
*__description__*: From either a `string`, `Uint8Array` or a `Buffer` input, create the xxhash and return the result as a hex number
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
Reference in New Issue
Block a user