sign

fun sign(bearerDid: BearerDid, payload: ByteArray, detached: Boolean = false): String

Sign a payload using a Bearer DID.

Return

Parameters

bearerDid

The Bearer DID to sign with

payload

The payload to sign

detached

Whether to include the payload in the JWS string output