========== Signatures ========== Signatures are stored in ``/var/lib/ciruela/signatures``. The structure of this directory somewhat replicates the structure of destination directories. I.e. if you have a :ref:`directory-config` ``/etc/ciruela/configs/images.yaml``, which configured as :ref:`num-levels: 1`, and you have uploaded an image ``hello.123``, you will have the following files: * ``/var/lib/ciruela/signatures/images/hello.123.log`` * ``/var/lib/ciruela/signatures/images/hello.123.state`` First file contains just a log of signatures as they were uploaded or fetched from other hosts. The second file contains state of the destination directory. State File ========== State file contains image hash and signatures: .. code-block:: cddl signature_entry = [ timestamp: uint, ; milliseconds since the epoch when signing signature: signature, ] state_file = { image: bytes, ; binary hashsum of the image signatures: [+ signature_entry], } See :ref:`Signing Uploads ` for description of signature format