serialize

fun serialize(senderPrivateKey: PrivateKey, hashingAlgorithm: HashingAlgorithm? = null): ByteArray

Serialize the message.

Parameters

senderPrivateKey

The private key to sign the message

hashingAlgorithm

The hashing algorithm to use in the signature