sn_protocol

Overview

The sn_protocol directory contains the core protocol logic for the Safe Network. It includes various modules that handle different aspects of the protocol, such as error handling, messages, and storage.

Table of Contents

Error Handling

The error.rs file contains the definitions for various errors that can occur within the protocol.

Error Types

Messages

The messages module contains different types of messages that can be sent or received within the protocol.

Cmd Messages

Cmd::Replicate

Query Messages

Query::GetStoreCost

Response Messages

QueryResponse::GetStoreCost

CmdResponse::Replicate

Storage

The storage module handles the storage aspects of the protocol.

API Calls

Protobuf Definitions

The safenode_proto directory contains the Protocol Buffers definitions for the Safe Network.

Files