[CI Skip] 0.34.13
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
|
||||
## blake2AsHex
|
||||
|
||||
▸ **blake2AsHex**(data: *`Uint8Array` | `string`*, bitLength?: *`number`*): `string`
|
||||
▸ **blake2AsHex**(data: *`Uint8Array` \| `string`*, bitLength?: *`number`*): `string`
|
||||
|
||||
*Defined in [blake2/asHex.ts:21](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/blake2/asHex.ts#L21)*
|
||||
*Defined in [blake2/asHex.ts:21](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/blake2/asHex.ts#L21)*
|
||||
|
||||
*__name__*: blake2AsHex
|
||||
|
||||
@@ -28,7 +28,7 @@ blake2AsHex('abc'); // => 0xba80a53f981c4d0d
|
||||
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| data | `Uint8Array` | `string` | - |
|
||||
| data | `Uint8Array` \| `string` | - |
|
||||
| `Default value` bitLength | `number` | 256 |
|
||||
|
||||
**Returns:** `string`
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
## blake2AsU8a
|
||||
|
||||
▸ **blake2AsU8a**(data: *`Uint8Array` | `string`*, bitLength?: *`number`*, key?: *`Uint8Array`*): `Uint8Array`
|
||||
▸ **blake2AsU8a**(data: *`Uint8Array` \| `string`*, bitLength?: *`number`*, key?: *`Uint8Array`*): `Uint8Array`
|
||||
|
||||
*Defined in [blake2/asU8a.ts:21](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/blake2/asU8a.ts#L21)*
|
||||
*Defined in [blake2/asU8a.ts:21](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/blake2/asU8a.ts#L21)*
|
||||
|
||||
*__name__*: blake2AsU8a
|
||||
|
||||
@@ -28,7 +28,7 @@ blake2AsU8a('abc'); // => [0xba, 0x80, 0xa53, 0xf98, 0x1c, 0x4d, 0x0d]
|
||||
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| data | `Uint8Array` | `string` | - |
|
||||
| data | `Uint8Array` \| `string` | - |
|
||||
| `Default value` bitLength | `number` | 256 |
|
||||
| `Optional` key | `Uint8Array` | - |
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
## blake2bAsHex
|
||||
|
||||
▸ **blake2bAsHex**(data: *`Uint8Array` | `string`*, bitLength?: *`number`*): `string`
|
||||
▸ **blake2bAsHex**(data: *`Uint8Array` \| `string`*, bitLength?: *`number`*): `string`
|
||||
|
||||
*Defined in [blake2/blake2b/asHex.ts:23](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/blake2/blake2b/asHex.ts#L23)*
|
||||
*Defined in [blake2/blake2b/asHex.ts:23](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/blake2/blake2b/asHex.ts#L23)*
|
||||
|
||||
*__name__*: blake2bAsHex
|
||||
|
||||
@@ -28,7 +28,7 @@ blake2bAsHex('abc'); // => '0xba80a53f981c4d0d6a2797b69f12f6e94c212f14685ac4b74b
|
||||
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| data | `Uint8Array` | `string` | - |
|
||||
| data | `Uint8Array` \| `string` | - |
|
||||
| `Default value` bitLength | `number` | 512 |
|
||||
|
||||
**Returns:** `string`
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
## blake2bAsU8a
|
||||
|
||||
▸ **blake2bAsU8a**(data: *`Uint8Array` | `string`*, bitLength?: *`number`*, key?: *`Uint8Array` | `null`*): `Uint8Array`
|
||||
▸ **blake2bAsU8a**(data: *`Uint8Array` \| `string`*, bitLength?: *`number`*, key?: *`Uint8Array` \| `null`*): `Uint8Array`
|
||||
|
||||
*Defined in [blake2/blake2b/asU8a.ts:22](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/blake2/blake2b/asU8a.ts#L22)*
|
||||
*Defined in [blake2/blake2b/asU8a.ts:22](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/blake2/blake2b/asU8a.ts#L22)*
|
||||
|
||||
*__name__*: blake2bAsU8a
|
||||
|
||||
@@ -28,9 +28,9 @@ blake2bAsU8a('abc'); // => Uint8Array('508c5e8c327c14e2e1a72ba34eeb452f37458b209
|
||||
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| data | `Uint8Array` | `string` | - |
|
||||
| data | `Uint8Array` \| `string` | - |
|
||||
| `Default value` bitLength | `number` | 512 |
|
||||
| `Default value` key | `Uint8Array` | `null` | null |
|
||||
| `Default value` key | `Uint8Array` \| `null` | null |
|
||||
|
||||
**Returns:** `Uint8Array`
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **cryptoWaitReady**(): `Promise`<`boolean`>
|
||||
|
||||
*Defined in [index.ts:16](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/index.ts#L16)*
|
||||
*Defined in [index.ts:16](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/index.ts#L16)*
|
||||
|
||||
**Returns:** `Promise`<`boolean`>
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
## keccakAsHex
|
||||
|
||||
▸ **keccakAsHex**(value: *`Buffer` | `Uint8Array` | `string`*): `string`
|
||||
▸ **keccakAsHex**(value: *`Buffer` \| `Uint8Array` \| `string`*): `string`
|
||||
|
||||
*Defined in [keccak/asHex.ts:23](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/keccak/asHex.ts#L23)*
|
||||
*Defined in [keccak/asHex.ts:23](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/keccak/asHex.ts#L23)*
|
||||
|
||||
*__name__*: keccakAsHex
|
||||
|
||||
@@ -28,7 +28,7 @@ keccakAsHex('123'); // => 0x...
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| value | `Buffer` | `Uint8Array` | `string` |
|
||||
| value | `Buffer` \| `Uint8Array` \| `string` |
|
||||
|
||||
**Returns:** `string`
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
## keccakAsU8a
|
||||
|
||||
▸ **keccakAsU8a**(value: *`Buffer` | `Uint8Array` | `string`*): `Uint8Array`
|
||||
▸ **keccakAsU8a**(value: *`Buffer` \| `Uint8Array` \| `string`*): `Uint8Array`
|
||||
|
||||
*Defined in [keccak/asU8a.ts:21](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/keccak/asU8a.ts#L21)*
|
||||
*Defined in [keccak/asU8a.ts:21](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/keccak/asU8a.ts#L21)*
|
||||
|
||||
*__name__*: keccakAsU8a
|
||||
|
||||
@@ -28,7 +28,7 @@ keccakAsU8a('123'); // => Uint8Array
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| value | `Buffer` | `Uint8Array` | `string` |
|
||||
| value | `Buffer` \| `Uint8Array` \| `string` |
|
||||
|
||||
**Returns:** `Uint8Array`
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **mnemonicGenerate**(): `string`
|
||||
|
||||
*Defined in [mnemonic/generate.ts:19](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/mnemonic/generate.ts#L19)*
|
||||
*Defined in [mnemonic/generate.ts:19](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/mnemonic/generate.ts#L19)*
|
||||
|
||||
*__name__*: mnemonicGenerate
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **toSecret**(mnemonic: *`string`*): `Uint8Array`
|
||||
|
||||
*Defined in [mnemonic/toSecret.ts:8](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/mnemonic/toSecret.ts#L8)*
|
||||
*Defined in [mnemonic/toSecret.ts:8](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/mnemonic/toSecret.ts#L8)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **toSeed**(mnemonic: *`string`*): `Uint8Array`
|
||||
|
||||
*Defined in [mnemonic/toSeed.ts:24](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/mnemonic/toSeed.ts#L24)*
|
||||
*Defined in [mnemonic/toSeed.ts:24](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/mnemonic/toSeed.ts#L24)*
|
||||
|
||||
*__name__*: toSeed
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **mnemonicValidate**(mnemonic: *`string`*): `boolean`
|
||||
|
||||
*Defined in [mnemonic/validate.ts:20](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/mnemonic/validate.ts#L20)*
|
||||
*Defined in [mnemonic/validate.ts:20](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/mnemonic/validate.ts#L20)*
|
||||
|
||||
*__name__*: mnemonicValidate
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
## naclDecrypt
|
||||
|
||||
▸ **naclDecrypt**(encrypted: *`Uint8Array`*, nonce: *`Uint8Array`*, secret: *`Uint8Array`*): `Uint8Array` | `null`
|
||||
▸ **naclDecrypt**(encrypted: *`Uint8Array`*, nonce: *`Uint8Array`*, secret: *`Uint8Array`*): `Uint8Array` \| `null`
|
||||
|
||||
*Defined in [nacl/decrypt.ts:21](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/nacl/decrypt.ts#L21)*
|
||||
*Defined in [nacl/decrypt.ts:21](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/nacl/decrypt.ts#L21)*
|
||||
|
||||
*__name__*: naclDecrypt
|
||||
|
||||
@@ -32,7 +32,7 @@ naclDecrypt([...], [...], [...]); // => [...]
|
||||
| nonce | `Uint8Array` |
|
||||
| secret | `Uint8Array` |
|
||||
|
||||
**Returns:** `Uint8Array` | `null`
|
||||
**Returns:** `Uint8Array` \| `null`
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **naclEncrypt**(message: *`Uint8Array`*, secret: *`Uint8Array`*, nonce?: *`Uint8Array`*): `Encrypted`
|
||||
|
||||
*Defined in [nacl/encrypt.ts:28](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/nacl/encrypt.ts#L28)*
|
||||
*Defined in [nacl/encrypt.ts:28](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/nacl/encrypt.ts#L28)*
|
||||
|
||||
*__name__*: naclEncrypt
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **naclKeypairFromRandom**(): [KeypairType](_types_.md#keypairtype)
|
||||
|
||||
*Defined in [nacl/keypair/fromRandom.ts:23](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/nacl/keypair/fromRandom.ts#L23)*
|
||||
*Defined in [nacl/keypair/fromRandom.ts:23](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/nacl/keypair/fromRandom.ts#L23)*
|
||||
|
||||
*__name__*: naclKeypairFromRandom
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **naclKeypairFromSecret**(secret: *`Uint8Array`*): [KeypairType](_types_.md#keypairtype)
|
||||
|
||||
*Defined in [nacl/keypair/fromSecret.ts:23](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/nacl/keypair/fromSecret.ts#L23)*
|
||||
*Defined in [nacl/keypair/fromSecret.ts:23](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/nacl/keypair/fromSecret.ts#L23)*
|
||||
|
||||
*__name__*: naclKeypairFromSecret
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **naclKeypairFromSeed**(seed: *`Uint8Array`*): [KeypairType](_types_.md#keypairtype)
|
||||
|
||||
*Defined in [nacl/keypair/fromSeed.ts:23](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/nacl/keypair/fromSeed.ts#L23)*
|
||||
*Defined in [nacl/keypair/fromSeed.ts:23](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/nacl/keypair/fromSeed.ts#L23)*
|
||||
|
||||
*__name__*: naclKeypairFromSeed
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **naclKeypairFromString**(value: *`string`*): [KeypairType](_types_.md#keypairtype)
|
||||
|
||||
*Defined in [nacl/keypair/fromString.ts:26](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/nacl/keypair/fromString.ts#L26)*
|
||||
*Defined in [nacl/keypair/fromString.ts:26](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/nacl/keypair/fromString.ts#L26)*
|
||||
|
||||
*__name__*: naclKeypairFromString
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **naclSign**(message: *`Uint8Array`*, __namedParameters: *`object`*): `Uint8Array`
|
||||
|
||||
*Defined in [nacl/sign.ts:24](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/nacl/sign.ts#L24)*
|
||||
*Defined in [nacl/sign.ts:24](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/nacl/sign.ts#L24)*
|
||||
|
||||
*__name__*: naclSign
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **naclVerify**(message: *`Uint8Array`*, signature: *`Uint8Array`*, publicKey: *`Uint8Array`*): `boolean`
|
||||
|
||||
*Defined in [nacl/verify.ts:21](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/nacl/verify.ts#L21)*
|
||||
*Defined in [nacl/verify.ts:21](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/nacl/verify.ts#L21)*
|
||||
|
||||
*__name__*: naclSign
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **randomAsHex**(length?: *`number`*): `string`
|
||||
|
||||
*Defined in [random/asHex.ts:23](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/random/asHex.ts#L23)*
|
||||
*Defined in [random/asHex.ts:23](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/random/asHex.ts#L23)*
|
||||
|
||||
*__name__*: randomAsHex
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **randomAsNumber**(): `number`
|
||||
|
||||
*Defined in [random/asNumber.ts:26](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/random/asNumber.ts#L26)*
|
||||
*Defined in [random/asNumber.ts:26](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/random/asNumber.ts#L26)*
|
||||
|
||||
*__name__*: randomAsNumber
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **randomAsU8a**(length?: *`number`*): `Uint8Array`
|
||||
|
||||
*Defined in [random/asU8a.ts:21](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/random/asU8a.ts#L21)*
|
||||
*Defined in [random/asU8a.ts:21](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/random/asU8a.ts#L21)*
|
||||
|
||||
*__name__*: randomAsU8a
|
||||
|
||||
|
||||
@@ -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/9f9ceff/packages/util-crypto/src/schnorrkel/keypair/fromSeed.ts#L16)*
|
||||
*Defined in [schnorrkel/keypair/fromSeed.ts:16](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/schnorrkel/keypair/fromSeed.ts#L16)*
|
||||
|
||||
*__name__*: schnorrkelKeypairFromSeed
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **schnorrkelIsReady**(): `boolean`
|
||||
|
||||
*Defined in [schnorrkel/ready.ts:11](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/schnorrkel/ready.ts#L11)*
|
||||
*Defined in [schnorrkel/ready.ts:11](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/schnorrkel/ready.ts#L11)*
|
||||
|
||||
**Returns:** `boolean`
|
||||
|
||||
@@ -19,7 +19,7 @@ ___
|
||||
|
||||
▸ **schnorrkelWaitReady**(): `Promise`<`boolean`>
|
||||
|
||||
*Defined in [schnorrkel/ready.ts:7](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/schnorrkel/ready.ts#L7)*
|
||||
*Defined in [schnorrkel/ready.ts:7](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/schnorrkel/ready.ts#L7)*
|
||||
|
||||
**Returns:** `Promise`<`boolean`>
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **schnorrkelSign**(message: *`Uint8Array`*, __namedParameters: *`object`*): `Uint8Array`
|
||||
|
||||
*Defined in [schnorrkel/sign.ts:15](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/schnorrkel/sign.ts#L15)*
|
||||
*Defined in [schnorrkel/sign.ts:15](https://github.com/polkadot-js/common/blob/2efc5f7/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/9f9ceff/packages/util-crypto/src/schnorrkel/verify.ts#L11)*
|
||||
*Defined in [schnorrkel/verify.ts:11](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/schnorrkel/verify.ts#L11)*
|
||||
|
||||
*__name__*: schnorrkelVerify
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **sha512AsU8a**(data: *`Uint8Array`*): `Uint8Array`
|
||||
|
||||
*Defined in [sha512/asU8a.ts:21](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/sha512/asU8a.ts#L21)*
|
||||
*Defined in [sha512/asU8a.ts:21](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/sha512/asU8a.ts#L21)*
|
||||
|
||||
*__name__*: sha512AsU8a
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
**Ƭ KeypairType**: *`object`*
|
||||
|
||||
*Defined in [types.ts:5](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/types.ts#L5)*
|
||||
*Defined in [types.ts:5](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/types.ts#L5)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
## xxhashAsHex
|
||||
|
||||
▸ **xxhashAsHex**(data: *`Buffer` | `Uint8Array` | `string`*, bitLength?: *`number`*): `string`
|
||||
▸ **xxhashAsHex**(data: *`Buffer` \| `Uint8Array` \| `string`*, bitLength?: *`number`*): `string`
|
||||
|
||||
*Defined in [xxhash/asHex.ts:23](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/xxhash/asHex.ts#L23)*
|
||||
*Defined in [xxhash/asHex.ts:23](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/xxhash/asHex.ts#L23)*
|
||||
|
||||
*__name__*: xxhashAsHex
|
||||
|
||||
@@ -28,7 +28,7 @@ xxhashAsHex('abc'); // => 0x44bc2cf5ad770999
|
||||
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| data | `Buffer` | `Uint8Array` | `string` | - |
|
||||
| data | `Buffer` \| `Uint8Array` \| `string` | - |
|
||||
| `Default value` bitLength | `number` | 64 |
|
||||
|
||||
**Returns:** `string`
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
## xxhashAsU8a
|
||||
|
||||
▸ **xxhashAsU8a**(data: *`Buffer` | `Uint8Array` | `string`*, bitLength?: *`number`*): `Uint8Array`
|
||||
▸ **xxhashAsU8a**(data: *`Buffer` \| `Uint8Array` \| `string`*, bitLength?: *`number`*): `Uint8Array`
|
||||
|
||||
*Defined in [xxhash/asU8a.ts:21](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/xxhash/asU8a.ts#L21)*
|
||||
*Defined in [xxhash/asU8a.ts:21](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/xxhash/asU8a.ts#L21)*
|
||||
|
||||
*__name__*: xxhashAsU8a
|
||||
|
||||
@@ -28,7 +28,7 @@ xxhashAsU8a('abc'); // => 0x44bc2cf5ad770999
|
||||
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| data | `Buffer` | `Uint8Array` | `string` | - |
|
||||
| data | `Buffer` \| `Uint8Array` \| `string` | - |
|
||||
| `Default value` bitLength | `number` | 64 |
|
||||
|
||||
**Returns:** `Uint8Array`
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
## xxhash64AsBn
|
||||
|
||||
▸ **xxhash64AsBn**(data: *`Buffer` | `Uint8Array` | `string`*, seed: *`number`*): `BN`
|
||||
▸ **xxhash64AsBn**(data: *`Buffer` \| `Uint8Array` \| `string`*, seed: *`number`*): `BN`
|
||||
|
||||
*Defined in [xxhash/xxhash64/asBn.ts:23](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/xxhash/xxhash64/asBn.ts#L23)*
|
||||
*Defined in [xxhash/xxhash64/asBn.ts:23](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/xxhash/xxhash64/asBn.ts#L23)*
|
||||
|
||||
*__name__*: xxhash64AsBn
|
||||
|
||||
@@ -28,7 +28,7 @@ xxhash64AsBn('abcd', 0xabcd)); // => new BN(0xe29f70f8b8c96df7)
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| data | `Buffer` | `Uint8Array` | `string` |
|
||||
| data | `Buffer` \| `Uint8Array` \| `string` |
|
||||
| seed | `number` |
|
||||
|
||||
**Returns:** `BN`
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
## xxhash64AsHex
|
||||
|
||||
▸ **xxhash64AsHex**(data: *`Buffer` | `Uint8Array` | `string`*, seed: *`number`*): `string`
|
||||
▸ **xxhash64AsHex**(data: *`Buffer` \| `Uint8Array` \| `string`*, seed: *`number`*): `string`
|
||||
|
||||
*Defined in [xxhash/xxhash64/asHex.ts:23](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/xxhash/xxhash64/asHex.ts#L23)*
|
||||
*Defined in [xxhash/xxhash64/asHex.ts:23](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/xxhash/xxhash64/asHex.ts#L23)*
|
||||
|
||||
*__name__*: xxhash64AsHex
|
||||
|
||||
@@ -28,7 +28,7 @@ xxhash64AsHex('abcd', 0xabcd)); // => 0xe29f70f8b8c96df7
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| data | `Buffer` | `Uint8Array` | `string` |
|
||||
| data | `Buffer` \| `Uint8Array` \| `string` |
|
||||
| seed | `number` |
|
||||
|
||||
**Returns:** `string`
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
## xxhash64AsRaw
|
||||
|
||||
▸ **xxhash64AsRaw**(data: *`Buffer` | `Uint8Array` | `string`*, seed: *`number`*): `string`
|
||||
▸ **xxhash64AsRaw**(data: *`Buffer` \| `Uint8Array` \| `string`*, seed: *`number`*): `string`
|
||||
|
||||
*Defined in [xxhash/xxhash64/asRaw.ts:21](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/xxhash/xxhash64/asRaw.ts#L21)*
|
||||
*Defined in [xxhash/xxhash64/asRaw.ts:21](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/xxhash/xxhash64/asRaw.ts#L21)*
|
||||
|
||||
*__name__*: xxhash64AsRaw
|
||||
|
||||
@@ -28,7 +28,7 @@ xxhash64AsRaw('abcd', 0xabcd)); // => e29f70f8b8c96df7
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| data | `Buffer` | `Uint8Array` | `string` |
|
||||
| data | `Buffer` \| `Uint8Array` \| `string` |
|
||||
| seed | `number` |
|
||||
|
||||
**Returns:** `string`
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
## xxhash64AsValue
|
||||
|
||||
▸ **xxhash64AsValue**(data: *`Buffer` | `Uint8Array` | `string`*, seed: *`number`*): `number`
|
||||
▸ **xxhash64AsValue**(data: *`Buffer` \| `Uint8Array` \| `string`*, seed: *`number`*): `number`
|
||||
|
||||
*Defined in [xxhash/xxhash64/asValue.ts:22](https://github.com/polkadot-js/common/blob/9f9ceff/packages/util-crypto/src/xxhash/xxhash64/asValue.ts#L22)*
|
||||
*Defined in [xxhash/xxhash64/asValue.ts:22](https://github.com/polkadot-js/common/blob/2efc5f7/packages/util-crypto/src/xxhash/xxhash64/asValue.ts#L22)*
|
||||
|
||||
*__name__*: xxhash64AsValue
|
||||
|
||||
@@ -28,7 +28,7 @@ xxhash64AsValue('abcd', 0xabcd)); // => e29f70f8b8c96df7
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| data | `Buffer` | `Uint8Array` | `string` |
|
||||
| data | `Buffer` \| `Uint8Array` \| `string` |
|
||||
| seed | `number` |
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
Reference in New Issue
Block a user