Structs

The main storage when we have to deal with certificates. It maintains two storages, one main which saves the certificates by their ids, and a secondary one which acts as an index to allow us fast retrieval based for queries based in certificate rounds. It also offers pub/sub capabilities in write events. By using the notify_read someone can wait to hear until a certificate by a specific id has been written in storage.

Type Definitions

A type alias used as the value part on the secondary index. Since on the index we don’t really need to store any value, as all the necessary info are part of the key, we just used the minimum possible value we can store.