encode

fun encode(token: TransferToken, secret: ByteArray): String

Encodes token into a compact string and signs it with secret.