FilePrivateValidator - CosmosSwift/swift-coin GitHub Wiki

FilePrivateValidator

public enum FilePrivateValidator

Methods

loadOrGenerateFilePrivateValidatorKey(atPath:)

LoadOrGenFilePrivateValidatorKey attempts to load the FilePrivateValidatorKey from the given filePath. If the file does not exist, it generates and saves a new FilePrivateValidatorKey.

public static func loadOrGenerateFilePrivateValidatorKey(atPath path: String) throws -> FilePrivateValidatorKey

loadOrGenerateFilePrivateValidatorState(atPath:)

LoadOrGenFilePrivateValidatorState attempts to load the FilePrivateValidatorState from the given filePath. If the file does not exist, it generates and saves a new FilePrivateValidatorState.

public static func loadOrGenerateFilePrivateValidatorState(atPath path: String) throws -> FilePrivateValidatorState