[CI Skip] 0.32.8

This commit is contained in:
Travis CI
2018-10-24 14:06:04 +00:00
parent 0cb6e6c746
commit 0bae9bbb23
157 changed files with 422 additions and 369 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ Below is a list of currently exposed methods published at the [Polkadot-JS Commo
* Uses the [Blake2b](https://blake2.net/) hash function of [blakejs](https://www.npmjs.com/package/blakejs) library
* Note: All hashes used in Polkadot-JS are 32 bytes (i.e. 256 / 8)
* Note: BLAKE hash functions are in the Nacl library
* Note: Only handles up to 2**53 bytes of input
* Note: Only handles up to 2\*\*53 bytes of input
### Keccak
+1 -1
View File
@@ -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-10-24T12:37:07.793Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-24T12:37:43.748Z"},"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-10-24T14:05:24.139Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-24T14:05:57.961Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
+2 -1
View File
@@ -8,7 +8,7 @@
▸ **blake2AsHex**(data: *`Uint8Array`*, bitLength?: *`number`*): `string`
*Defined in [blake2/asHex.ts:22](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/blake2/asHex.ts#L22)*
*Defined in [blake2/asHex.ts:22](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/blake2/asHex.ts#L22)*
*__name__*: blake2AsHex
@@ -19,6 +19,7 @@
*__description__*: From a `Uint8Array` input, create the blake2b and return the result as a hex string with the specified `bitLength`.
*__example__*:
```javascript
import { blake2AsHex } from '@polkadot/util-crypto';
+2 -1
View File
@@ -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/5ce8f91/packages/util-crypto/src/blake2/asU8a.ts#L22)*
*Defined in [blake2/asU8a.ts:22](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/blake2/asU8a.ts#L22)*
*__name__*: blake2AsU8a
@@ -19,6 +19,7 @@
*__description__*: From a `Uint8Array` input, create the blake2b and return the result as a u8a with the specified `bitLength`.
*__example__*:
```javascript
import { blake2AsU8a } from '@polkadot/util-crypto';
@@ -8,7 +8,7 @@
▸ **blake2bAsHex**(data: *`Uint8Array`*, bitLength?: *`number`*): `string`
*Defined in [blake2/blake2b/asHex.ts:24](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/blake2/blake2b/asHex.ts#L24)*
*Defined in [blake2/blake2b/asHex.ts:24](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/blake2/blake2b/asHex.ts#L24)*
*__name__*: blake2bAsHex
@@ -19,6 +19,7 @@
*__description__*: From a `Uint8Array` input, create the blake2b and return the result as a hex string.
*__example__*:
```javascript
import { blake2bAsHex } from '@polkadot/util-crypto';
@@ -8,7 +8,7 @@
▸ **blake2bAsU8a**(data: *`Uint8Array`*, bitLength?: *`number`*, key?: * `Uint8Array` &#124; `null`*): `Uint8Array`
*Defined in [blake2/blake2b/asU8a.ts:23](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/blake2/blake2b/asU8a.ts#L23)*
*Defined in [blake2/blake2b/asU8a.ts:23](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/blake2/blake2b/asU8a.ts#L23)*
*__name__*: blake2bAsU8a
@@ -19,6 +19,7 @@
*__description__*: From a `Uint8Array` input, create the blake2b and return the result as a `Uint8Array`.
*__example__*:
```javascript
import { blake2bAsU8a } from '@polkadot/util-crypto';
+2 -1
View File
@@ -8,7 +8,7 @@
▸ **keccakAsHex**(value: * `Buffer` &#124; `Uint8Array` &#124; `string`*): `string`
*Defined in [keccak/asHex.ts:24](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/keccak/asHex.ts#L24)*
*Defined in [keccak/asHex.ts:24](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/keccak/asHex.ts#L24)*
*__name__*: keccakAsHex
@@ -19,6 +19,7 @@
*__description__*: From either a `string` or a `Buffer` input, create the keccak and return the result as a `0x` prefixed hex string.
*__example__*:
```javascript
import { keccakAsHex } from '@polkadot/util-crypto';
+2 -1
View File
@@ -8,7 +8,7 @@
▸ **keccakAsU8a**(value: * `Buffer` &#124; `Uint8Array` &#124; `string`*): `Uint8Array`
*Defined in [keccak/asU8a.ts:22](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/keccak/asU8a.ts#L22)*
*Defined in [keccak/asU8a.ts:22](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/keccak/asU8a.ts#L22)*
*__name__*: keccakAsU8a
@@ -19,6 +19,7 @@
*__description__*: From either a `string` or a `Buffer` input, create the keccak and return the result as a `Uint8Array`.
*__example__*:
```javascript
import { keccakAsU8a } from '@polkadot/util-crypto';
@@ -8,7 +8,7 @@
▸ **mnemonicGenerate**(): `string`
*Defined in [mnemonic/generate.ts:20](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/mnemonic/generate.ts#L20)*
*Defined in [mnemonic/generate.ts:20](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/mnemonic/generate.ts#L20)*
*__name__*: mnemonicGenerate
@@ -17,6 +17,7 @@
*__summary__*: Creates a valid mnemonic string using using [BIP39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki).
*__example__*:
```javascript
import { mnemonicGenerate } from '@polkadot/util-crypto';
@@ -8,7 +8,7 @@
▸ **toSecret**(mnemonic: *`string`*): `Uint8Array`
*Defined in [mnemonic/toSecret.ts:8](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/mnemonic/toSecret.ts#L8)*
*Defined in [mnemonic/toSecret.ts:8](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/mnemonic/toSecret.ts#L8)*
**Parameters:**
@@ -8,7 +8,7 @@
▸ **toSeed**(mnemonic: *`string`*): `Uint8Array`
*Defined in [mnemonic/toSeed.ts:25](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/mnemonic/toSeed.ts#L25)*
*Defined in [mnemonic/toSeed.ts:25](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/mnemonic/toSeed.ts#L25)*
*__name__*: toSeed
@@ -17,6 +17,7 @@
*__summary__*: Creates a valid seed from a mnemonic input
*__example__*:
```javascript
import { mnemonicGenerate, mnemonicToSeed, mnemonicValidate } from '@polkadot/util-crypto';
@@ -8,7 +8,7 @@
▸ **mnemonicValidate**(mnemonic: *`string`*): `boolean`
*Defined in [mnemonic/validate.ts:21](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/mnemonic/validate.ts#L21)*
*Defined in [mnemonic/validate.ts:21](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/mnemonic/validate.ts#L21)*
*__name__*: mnemonicValidate
@@ -17,6 +17,7 @@
*__summary__*: Validates a mnemonic input using [BIP39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki).
*__example__*:
```javascript
import { mnemonicGenerate, mnemonicValidate } from '@polkadot/util-crypto';
+2 -1
View File
@@ -8,7 +8,7 @@
▸ **naclDecrypt**(encrypted: *`Uint8Array`*, nonce: *`Uint8Array`*, secret: *`Uint8Array`*): `Uint8Array` &#124; `null`
*Defined in [nacl/decrypt.ts:22](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/nacl/decrypt.ts#L22)*
*Defined in [nacl/decrypt.ts:22](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/nacl/decrypt.ts#L22)*
*__name__*: naclDecrypt
@@ -19,6 +19,7 @@
*__description__*: Returns an decrypted message, using the `secret` and `nonce`.
*__example__*:
```javascript
import { naclDecrypt } from '@polkadot/util-crypto';
+2 -1
View File
@@ -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/5ce8f91/packages/util-crypto/src/nacl/encrypt.ts#L29)*
*Defined in [nacl/encrypt.ts:29](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/nacl/encrypt.ts#L29)*
*__name__*: naclEncrypt
@@ -19,6 +19,7 @@
*__description__*: Returns an encrypted message, using the `secretKey` and `nonce`. If the `nonce` was not supplied, a random value is generated.
*__example__*:
```javascript
import { naclEncrypt } from '@polkadot/util-crypto';
@@ -8,7 +8,7 @@
▸ **naclKeypairFromRandom**(): `KeypairType`
*Defined in [nacl/keypair/fromRandom.ts:24](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/nacl/keypair/fromRandom.ts#L24)*
*Defined in [nacl/keypair/fromRandom.ts:24](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/nacl/keypair/fromRandom.ts#L24)*
*__name__*: naclKeypairFromRandom
@@ -19,6 +19,7 @@
*__description__*: Returns a new generate object containing a `publicKey` & `secretKey`.
*__example__*:
```javascript
import { naclKeypairFromRandom } from '@polkadot/util-crypto';
@@ -8,7 +8,7 @@
▸ **naclKeypairFromSecret**(secret: *`Uint8Array`*): `KeypairType`
*Defined in [nacl/keypair/fromSecret.ts:24](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/nacl/keypair/fromSecret.ts#L24)*
*Defined in [nacl/keypair/fromSecret.ts:24](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/nacl/keypair/fromSecret.ts#L24)*
*__name__*: naclKeypairFromSecret
@@ -19,6 +19,7 @@
*__description__*: Returns a object containing a `publicKey` & `secretKey` generated from the supplied secret.
*__example__*:
```javascript
import { naclKeypairFromSecret } from '@polkadot/util-crypto';
@@ -8,7 +8,7 @@
▸ **naclKeypairFromSeed**(seed: *`Uint8Array`*): `KeypairType`
*Defined in [nacl/keypair/fromSeed.ts:24](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/nacl/keypair/fromSeed.ts#L24)*
*Defined in [nacl/keypair/fromSeed.ts:24](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/nacl/keypair/fromSeed.ts#L24)*
*__name__*: naclKeypairFromSeed
@@ -19,6 +19,7 @@
*__description__*: Returns a object containing a `publicKey` & `secretKey` generated from the supplied seed.
*__example__*:
```javascript
import { naclKeypairFromSeed } from '@polkadot/util-crypto';
@@ -8,7 +8,7 @@
▸ **naclKeypairFromString**(value: *`string`*): `KeypairType`
*Defined in [nacl/keypair/fromString.ts:27](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/nacl/keypair/fromString.ts#L27)*
*Defined in [nacl/keypair/fromString.ts:27](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/nacl/keypair/fromString.ts#L27)*
*__name__*: naclKeypairFromString
@@ -19,6 +19,7 @@
*__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.
*__example__*:
```javascript
import { naclKeypairFromString } from '@polkadot/util-crypto';
+2 -1
View File
@@ -8,7 +8,7 @@
▸ **naclSign**(message: *`Uint8Array`*, secretKey: *`Uint8Array`*): `Uint8Array`
*Defined in [nacl/sign.ts:22](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/nacl/sign.ts#L22)*
*Defined in [nacl/sign.ts:22](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/nacl/sign.ts#L22)*
*__name__*: naclSign
@@ -19,6 +19,7 @@
*__description__*: Returns message signature of `message`, using the `secretKey`.
*__example__*:
```javascript
import { naclSign } from '@polkadot/util-crypto';
+2 -1
View File
@@ -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/5ce8f91/packages/util-crypto/src/nacl/verify.ts#L22)*
*Defined in [nacl/verify.ts:22](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/nacl/verify.ts#L22)*
*__name__*: naclSign
@@ -19,6 +19,7 @@
*__description__*: Verifies the `signature` on `message` with the supplied `plublicKey`. Returns `true` on sucess, `false` otherwise.
*__example__*:
```javascript
import { naclVerify } from '@polkadot/util-crypto';
+2 -1
View File
@@ -8,7 +8,7 @@
▸ **randomAsHex**(length?: *`number`*): `string`
*Defined in [random/asHex.ts:24](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/random/asHex.ts#L24)*
*Defined in [random/asHex.ts:24](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/random/asHex.ts#L24)*
*__name__*: randomAsHex
@@ -19,6 +19,7 @@
*__description__*: Returns a hex string with the specified (optional) length filled with random bytes.
*__example__*:
```javascript
import { randomAsHex } from '@polkadot/util-crypto';
@@ -8,7 +8,7 @@
▸ **randomAsNumber**(): `number`
*Defined in [random/asNumber.ts:27](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/random/asNumber.ts#L27)*
*Defined in [random/asNumber.ts:27](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/random/asNumber.ts#L27)*
*__name__*: randomAsNumber
@@ -19,6 +19,7 @@
*__description__*: Returns a random number generated from the secure bytes.
*__example__*:
```javascript
import { randomAsNumber } from '@polkadot/util-crypto';
+2 -1
View File
@@ -8,7 +8,7 @@
▸ **randomAsU8a**(length?: *`number`*): `Uint8Array`
*Defined in [random/asU8a.ts:22](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/random/asU8a.ts#L22)*
*Defined in [random/asU8a.ts:22](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/random/asU8a.ts#L22)*
*__name__*: randomAsU8a
@@ -19,6 +19,7 @@
*__description__*: Returns a `Uint8Array` with the specified (optional) length filled with random bytes.
*__example__*:
```javascript
import { randomAsU8a } from '@polkadot/util-crypto';
+2 -1
View File
@@ -8,7 +8,7 @@
▸ **sha512AsU8a**(data: *`Uint8Array`*): `Uint8Array`
*Defined in [sha512/asU8a.ts:22](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/sha512/asU8a.ts#L22)*
*Defined in [sha512/asU8a.ts:22](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/sha512/asU8a.ts#L22)*
*__name__*: sha512AsU8a
@@ -19,6 +19,7 @@
*__description__*: Returns a sha-512 `Uint8Array` from the supplied data.
*__example__*:
```javascript
import { sha512AsU8a } from '@polkadot/util-crypto';
+2 -1
View File
@@ -8,7 +8,7 @@
▸ **xxhashAsHex**(data: * `Buffer` &#124; `Uint8Array` &#124; `string`*, bitLength?: *`number`*): `string`
*Defined in [xxhash/asHex.ts:24](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/xxhash/asHex.ts#L24)*
*Defined in [xxhash/asHex.ts:24](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/xxhash/asHex.ts#L24)*
*__name__*: xxhashAsHex
@@ -19,6 +19,7 @@
*__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`.
*__example__*:
```javascript
import { xxhashAsHex } from '@polkadot/util-crypto';
+2 -1
View File
@@ -8,7 +8,7 @@
▸ **xxhashAsU8a**(data: * `Buffer` &#124; `Uint8Array` &#124; `string`*, bitLength?: *`number`*): `Uint8Array`
*Defined in [xxhash/asU8a.ts:22](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/xxhash/asU8a.ts#L22)*
*Defined in [xxhash/asU8a.ts:22](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/xxhash/asU8a.ts#L22)*
*__name__*: xxhashAsU8a
@@ -19,6 +19,7 @@
*__description__*: From either a `string`, `Uint8Array` or a `Buffer` input, create the xxhash64 and return the result as a `Uint8Array` with the specified `bitLength`.
*__example__*:
```javascript
import { xxhashAsU8a } from '@polkadot/util-crypto';
@@ -8,7 +8,7 @@
▸ **xxhash64AsBn**(data: * `Buffer` &#124; `Uint8Array` &#124; `string`*, seed: *`number`*): `BN`
*Defined in [xxhash/xxhash64/asBn.ts:24](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/xxhash/xxhash64/asBn.ts#L24)*
*Defined in [xxhash/xxhash64/asBn.ts:24](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/xxhash/xxhash64/asBn.ts#L24)*
*__name__*: xxhash64AsBn
@@ -19,6 +19,7 @@
*__description__*: From either a `string`, `Uint8Array` or a `Buffer` input, create the xxhash and return the result as a BN.
*__example__*:
```javascript
import { xxhash64AsNumber } from '@polkadot/util-crypto';
@@ -8,7 +8,7 @@
▸ **xxhash64AsHex**(data: * `Buffer` &#124; `Uint8Array` &#124; `string`*, seed: *`number`*): `string`
*Defined in [xxhash/xxhash64/asHex.ts:24](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/xxhash/xxhash64/asHex.ts#L24)*
*Defined in [xxhash/xxhash64/asHex.ts:24](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/xxhash/xxhash64/asHex.ts#L24)*
*__name__*: xxhash64AsHex
@@ -19,6 +19,7 @@
*__description__*: From either a `string`, `Uint8Array` or a `Buffer` input, create the xxhash and return the result as a hex string.
*__example__*:
```javascript
import { xxhash64AsHex } from '@polkadot/util-crypto';
@@ -8,7 +8,7 @@
▸ **xxhash64AsRaw**(data: * `Buffer` &#124; `Uint8Array` &#124; `string`*, seed: *`number`*): `string`
*Defined in [xxhash/xxhash64/asRaw.ts:22](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/xxhash/xxhash64/asRaw.ts#L22)*
*Defined in [xxhash/xxhash64/asRaw.ts:22](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/xxhash/xxhash64/asRaw.ts#L22)*
*__name__*: xxhash64AsRaw
@@ -19,6 +19,7 @@
*__description__*: From either a `string`, `Uint8Array` or a `Buffer` input, create the xxhash and return the result as a non-prefixed hex string.
*__example__*:
```javascript
import { xxhash64AsRaw } from '@polkadot/util-crypto';
@@ -8,7 +8,7 @@
▸ **xxhash64AsValue**(data: * `Buffer` &#124; `Uint8Array` &#124; `string`*, seed: *`number`*): `number`
*Defined in [xxhash/xxhash64/asValue.ts:23](https://github.com/polkadot-js/common/blob/5ce8f91/packages/util-crypto/src/xxhash/xxhash64/asValue.ts#L23)*
*Defined in [xxhash/xxhash64/asValue.ts:23](https://github.com/polkadot-js/common/blob/0cb6e6c/packages/util-crypto/src/xxhash/xxhash64/asValue.ts#L23)*
*__name__*: xxhash64AsValue
@@ -19,6 +19,7 @@
*__description__*: From either a `string`, `Uint8Array` or a `Buffer` input, create the xxhash and return the result as a hex number
*__example__*:
```javascript
import { xxhash64AsValue } from '@polkadot/util-crypto';