Repository - Local Storage for Chain Data and Systems #
The Filecoin node repository is simply an abstraction denoting that data which any functional Filecoin node needs to store locally in order to run correctly.
The repo is accessible to the node’s systems and subsystems and acts as local storage compartementalized from the node’s FileStore
(for instance).
It stores the node’s keys, the IPLD datastructures of stateful objects and node configs.
import ipld "github.com/filecoin-project/specs/libraries/ipld"
import key_store "github.com/filecoin-project/specs/systems/filecoin_nodes/repository/key_store"
import config "github.com/filecoin-project/specs/systems/filecoin_nodes/repository/config"
type Repository struct {
Config config.Config
KeyStore key_store.KeyStore
ChainStore ipld.GraphStore
StateStore ipld.GraphStore
}