Separators

object Separators

To make the serialization format more concise, readable and easy to parse we just escape all data using URL encode and use different separators on each level of nested objects. Splitting the string at the separators is all we need to parse the data.

Each of the separators should be unique and not appear in the output of SerializationUtil.escape (URL encode)

Properties

Link copied to clipboard
const val LEVEL1: String

Between parts of top level elements stored in the key-value store: CPVersion, CPNode, CPHamt*

Link copied to clipboard
const val LEVEL2: String

Between elements of the operation list

Link copied to clipboard
const val LEVEL3: String
Link copied to clipboard
const val LEVEL4: String

For lists inside operation parts

Link copied to clipboard
const val MAPPING: String

For properties and references

Link copied to clipboard
const val OP_PARTS: String
Link copied to clipboard
const val OPS: String