github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/model/bootstrap/filenames.go (about)

     1  package bootstrap
     2  
     3  import (
     4  	"path/filepath"
     5  )
     6  
     7  // Canonical filenames/paths for bootstrapping files.
     8  var (
     9  	// The Node ID file is used as a helper by the transit scripts
    10  	FilenameNodeID = "node-id"
    11  	PathNodeID     = filepath.Join(DirnamePublicBootstrap, FilenameNodeID)
    12  
    13  	// execution state
    14  	DirnameExecutionState = "execution-state"
    15  
    16  	// public genesis information
    17  	DirnamePublicBootstrap    = "public-root-information"
    18  	PathInternalNodeInfosPub  = filepath.Join(DirnamePublicBootstrap, "node-internal-infos.pub.json")
    19  	PathFinallist             = filepath.Join(DirnamePublicBootstrap, "finallist.pub.json")
    20  	PathNodeInfosPub          = filepath.Join(DirnamePublicBootstrap, "node-infos.pub.json")
    21  	PathPartnerNodeInfoPrefix = filepath.Join(DirnamePublicBootstrap, "node-info.pub.")
    22  	PathNodeInfoPub           = filepath.Join(DirnamePublicBootstrap, "node-info.pub.%v.json") // %v will be replaced by NodeID
    23  	DirnameRootBlockVotes     = filepath.Join(DirnamePublicBootstrap, "root-block-votes")
    24  	FileNamePartnerWeights    = "partner-weights.json"
    25  
    26  	PathRootBlockData                 = filepath.Join(DirnamePublicBootstrap, "root-block.json")
    27  	PathIntermediaryBootstrappingData = filepath.Join(DirnamePublicBootstrap, "intermediary-bootstrapping-data.json")
    28  	PathRootProtocolStateSnapshot     = filepath.Join(DirnamePublicBootstrap, "root-protocol-state-snapshot.json")
    29  
    30  	FilenameWALRootCheckpoint = "root.checkpoint"
    31  	PathRootCheckpoint        = filepath.Join(DirnameExecutionState, FilenameWALRootCheckpoint) // only available on an execution node
    32  
    33  	// private genesis information
    34  	DirPrivateRoot                   = "private-root-information"
    35  	FilenameRandomBeaconPriv         = "random-beacon.priv.json"
    36  	FilenameSecretsEncryptionKey     = "secretsdb-key"
    37  	PathPrivNodeInfoPrefix           = "node-info.priv."
    38  	FilenameRootBlockVotePrefix      = "root-block-vote."
    39  	PathRootDKGData                  = filepath.Join(DirPrivateRoot, "root-dkg-data.priv.json")
    40  	PathNodeInfoPriv                 = filepath.Join(DirPrivateRoot, "private-node-info_%v", "node-info.priv.json")                 // %v will be replaced by NodeID
    41  	PathNodeMachineAccountPrivateKey = filepath.Join(DirPrivateRoot, "private-node-info_%v", "node-machine-account-key.priv.json")  // %v will be replaced by NodeID
    42  	PathNodeMachineAccountInfoPriv   = filepath.Join(DirPrivateRoot, "private-node-info_%v", "node-machine-account-info.priv.json") // %v will be replaced by NodeID
    43  	PathRandomBeaconPriv             = filepath.Join(DirPrivateRoot, "private-node-info_%v", FilenameRandomBeaconPriv)              // %v will be replaced by NodeID
    44  	PathNodeRootBlockVote            = filepath.Join(DirPrivateRoot, "private-node-info_%v", "root-block-vote.json")
    45  	FilenameRootBlockVote            = FilenameRootBlockVotePrefix + "%v.json"
    46  	PathSecretsEncryptionKey         = filepath.Join(DirPrivateRoot, "private-node-info_%v", FilenameSecretsEncryptionKey) // %v will be replaced by NodeID
    47  )