@midnight-ntwrk/compact-runtime v0.7.0 • Readme | API
@midnight-ntwrk/compact-runtime v0.7.0 / 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