38 lines
703 B
Markdown
38 lines
703 B
Markdown
|
|
|
|
# Functions
|
|
|
|
<a id="naclsign"></a>
|
|
|
|
## naclSign
|
|
|
|
▸ **naclSign**(message: *`Uint8Array`*, __namedParameters: *`object`*): `Uint8Array`
|
|
|
|
*Defined in [nacl/sign.ts:24](https://github.com/polkadot-js/common/blob/420f807/packages/util-crypto/src/nacl/sign.ts#L24)*
|
|
|
|
*__name__*: naclSign
|
|
|
|
*__summary__*: Signs a message using the supplied secretKey
|
|
|
|
*__description__*: Returns message signature of `message`, using the `secretKey`.
|
|
|
|
*__example__*:
|
|
|
|
```javascript
|
|
import { naclSign } from '@polkadot/util-crypto';
|
|
|
|
naclSign([...], [...]); // => [...]
|
|
```
|
|
|
|
**Parameters:**
|
|
|
|
| Name | Type |
|
|
| ------ | ------ |
|
|
| message | `Uint8Array` |
|
|
| __namedParameters | `object` |
|
|
|
|
**Returns:** `Uint8Array`
|
|
|
|
___
|
|
|