sign

abstract suspend fun sign(data: ByteArray): ByteArray

Certifies the session's ephemeral message-signing key by signing the bytes the SDK supplies — that key's public bytes — with the identity key.

The result must be exactly 64 raw signature bytes (r || s) for both supported schemes; the SDK rejects any other length.

Return

the 64-byte raw signature (r || s).

Parameters

data

the bytes to certify; treat them as opaque.