Files
common/docs/util-crypto/modules/_keccak_asu8a_.md
T
2019-02-14 23:13:52 +00:00

37 lines
740 B
Markdown

# Functions
<a id="keccakasu8a"></a>
## keccakAsU8a
▸ **keccakAsU8a**(value: *`Buffer` | `Uint8Array` | `string`*): `Uint8Array`
*Defined in [keccak/asU8a.ts:21](https://github.com/polkadot-js/common/blob/420f807/packages/util-crypto/src/keccak/asU8a.ts#L21)*
*__name__*: keccakAsU8a
*__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`.
*__example__*:
```javascript
import { keccakAsU8a } from '@polkadot/util-crypto';
keccakAsU8a('123'); // => Uint8Array
```
**Parameters:**
| Name | Type |
| ------ | ------ |
| value | `Buffer` | `Uint8Array` | `string` |
**Returns:** `Uint8Array`
___