MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / LoadFilePV

Function LoadFilePV

privval/file.go:178–180  ·  view source on GitHub ↗

LoadFilePV loads a FilePV from the filePaths. The FilePV handles double signing prevention by persisting data to the stateFilePath. If either file path does not exist, the program will exit.

(keyFilePath, stateFilePath string)

Source from the content-addressed store, hash-verified

176// signing prevention by persisting data to the stateFilePath. If either file path
177// does not exist, the program will exit.
178func LoadFilePV(keyFilePath, stateFilePath string) *FilePV {
179 return loadFilePV(keyFilePath, stateFilePath, true)
180}
181
182// LoadFilePVEmptyState loads a FilePV from the given keyFilePath, with an empty LastSignState.
183// If the keyFilePath does not exist, the program will exit.

Callers 14

extractKeyFunction · 0.92
NewTestHarnessFunction · 0.92
startSignerFunction · 0.92
mainFunction · 0.92
initFilesWithConfigFunction · 0.92
testnetFilesFunction · 0.92
Test_ResetAllFunction · 0.92
Test_ResetStateFunction · 0.92
showValidatorFunction · 0.92
testHandshakeReplayFunction · 0.92

Calls 1

loadFilePVFunction · 0.70

Tested by 6

Test_ResetAllFunction · 0.74
Test_ResetStateFunction · 0.74
testHandshakeReplayFunction · 0.74
TestGenLoadValidatorFunction · 0.56