Skip to main content

signData

For the complete documentation index, see llms.txt

@midnight-ntwrk/ledger v3.0.2 • Readme | API


@midnight-ntwrk/ledger v3.0.2 / signData

Function: signData()

signData(key, data): Signature

Signs arbitrary data with the given signing key.

WARNING: Do not expose access to this function for valuable keys for data that is not strictly controlled!

Parameters​

• key: string

• data: Uint8Array

Returns​

Signature