The AOL(Append Only Log), which can store various useful data such as healthcare data, is the key feature of the Panacea blockchain. It allows user to manage topics, authorities, and data.
A MsgCreateTopic is constructed to facilitate the AOL topic. Message sender can set a topic and description. The writer can add record after receiving the appropriate privileges.
// MsgAddWriter - add writer to the topictypeMsgAddWriterstruct{ TopicName string`json:"topic_name"` Moniker string`json:"moniker"` Description string`json:"description"` WriterAddress sdk.AccAddress`json:"writer_address"` OwnerAddress sdk.AccAddress`json:"owner_address"`}
The owner of the exist topics can manage writer privileges. Writer who received privileges from the topic owner can add record to the topic. This means that the owner authenticate the writer. This MsgAddWriter performs a function similar to issuing a certificate.