github.com/koko1123/flow-go-1@v0.29.6/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 PathRootProtocolStateSnapshot = filepath.Join(DirnamePublicBootstrap, "root-protocol-state-snapshot.json") 28 29 FilenameWALRootCheckpoint = "root.checkpoint" 30 PathRootCheckpoint = filepath.Join(DirnameExecutionState, FilenameWALRootCheckpoint) // only available on an execution node 31 32 // private genesis information 33 DirPrivateRoot = "private-root-information" 34 FilenameRandomBeaconPriv = "random-beacon.priv.json" 35 FilenameSecretsEncryptionKey = "secretsdb-key" 36 PathPrivNodeInfoPrefix = "node-info.priv." 37 FilenameRootBlockVotePrefix = "root-block-vote." 38 PathRootDKGData = filepath.Join(DirPrivateRoot, "root-dkg-data.priv.json") 39 PathNodeInfoPriv = filepath.Join(DirPrivateRoot, "private-node-info_%v", "node-info.priv.json") // %v will be replaced by NodeID 40 PathNodeMachineAccountPrivateKey = filepath.Join(DirPrivateRoot, "private-node-info_%v", "node-machine-account-key.priv.json") // %v will be replaced by NodeID 41 PathNodeMachineAccountInfoPriv = filepath.Join(DirPrivateRoot, "private-node-info_%v", "node-machine-account-info.priv.json") // %v will be replaced by NodeID 42 PathRandomBeaconPriv = filepath.Join(DirPrivateRoot, "private-node-info_%v", FilenameRandomBeaconPriv) // %v will be replaced by NodeID 43 PathNodeRootBlockVote = filepath.Join(DirPrivateRoot, "private-node-info_%v", "root-block-vote.json") 44 FilenameRootBlockVote = FilenameRootBlockVotePrefix + "%v.json" 45 PathSecretsEncryptionKey = filepath.Join(DirPrivateRoot, "private-node-info_%v", FilenameSecretsEncryptionKey) // %v will be replaced by NodeID 46 )