mirror of
https://github.com/waku-org/js-waku.git
synced 2025-02-19 15:54:28 +00:00
readd tsdoc
This commit is contained in:
parent
bad2b7506c
commit
e6bed26f10
@ -7,6 +7,14 @@ import {
|
||||
import { concat } from "@waku/utils/bytes";
|
||||
import sha3 from "js-sha3";
|
||||
|
||||
/**
|
||||
* ECDSA Sign a message with the given private key.
|
||||
*
|
||||
* @param message The message to sign, usually a hash.
|
||||
* @param privateKey The ECDSA private key to use to sign the message.
|
||||
*
|
||||
* @returns The signature and the recovery id concatenated.
|
||||
*/
|
||||
export async function sign(
|
||||
message: Uint8Array,
|
||||
privateKey: Uint8Array
|
||||
|
Loading…
x
Reference in New Issue
Block a user