40 lines
780 B
Markdown
40 lines
780 B
Markdown
|
|
|
|
# Functions
|
|
|
|
<a id="naclsign"></a>
|
|
|
|
## naclSign
|
|
|
|
▸ **naclSign**(message: *`Uint8Array`*, secretKey: *`Uint8Array`*): `Uint8Array`
|
|
|
|
*Defined in [nacl/sign.ts:22](https://github.com/polkadot-js/common/blob/02d4155/packages/util-crypto/src/nacl/sign.ts#L22)*
|
|
|
|
*__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`.
|
|
|
|
*__example__*:
|
|
|
|
```javascript
|
|
import { naclSign } from '@polkadot/util-crypto';
|
|
|
|
naclSign([...], [...]); // => [...]
|
|
```
|
|
|
|
**Parameters:**
|
|
|
|
| Param | Type |
|
|
| ------ | ------ |
|
|
| message | `Uint8Array` |
|
|
| secretKey | `Uint8Array` |
|
|
|
|
**Returns:** `Uint8Array`
|
|
|
|
___
|
|
|