Skip to main content

signData

For the complete documentation index, see llms.txt

@midnight-ntwrk/onchain-runtime v3.0.0


@midnight-ntwrk/onchain-runtime / signData

Function: signData()

function signData(key, data): string

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

string