serialize

fun serialize(gatewayPrivateKey: PrivateKey): ByteArray

Sign and serialize.