sign

abstract suspend fun sign(data: ByteArray, privateKey: ByteArray): ByteArray

Signs data using Ed25519.

Return

The 64-byte signature

Parameters

data

The data to sign

privateKey

The 32-byte Ed25519 private key