NotesStoring object types

Storing object types mature

On file systems, file name extensions are used to define the type of a file. In addition, many file formats write a magic number somewhere close to the beginning of the file, allowing them to be recognized by reading the first few bytes.

Condensation does not store any type along with an object. Type information is supposed to be stored (implicitly or explicitly) in the parent object.

Since objects are encrypted, it would not make a lot of sense to store type information with the object itself, because:

The type of root objects, i.e. objects with an envelope as parent, is given by the box type: