serialize

abstract fun serialize(): ByteArray

You need to serialize and deserialize even if locked