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)
| 176 | // signing prevention by persisting data to the stateFilePath. If either file path |
| 177 | // does not exist, the program will exit. |
| 178 | func 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. |