@midnight-ntwrk/onchain-runtime v0.2.2 • Readme | API
@midnight-ntwrk/onchain-runtime v0.2.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