Document Types

The structure and meaning of the messages exchanged between Client and Notary is described by Document Types.

A document type consists of

Example

TODO I want to use <notaryProviderContract> and am waiting for a merge.

Data Types

An attribute can have one of these types:

Elements can have attributes and contain these additional types:

Elements can be optional or occur repeatedly.

Inheritance

Some document types have commonalities (UserCommands, <notaryProviderContract> and <instrumentDefinition>). The commonalities can be described in Base Document Type which other element types can then inherit the elements and attributes from.

Tip: Command line dearmoring

Armored data can be decoded using this command, if openssl was compiled with zlib support:

alias dearmor="sed '/[-:]/d' | base64 -d | openssl zlib -d"
cat ~/.ot/armoredstuff | dearmor

More Examples