SaplingParameterDownloader
public enum SaplingParameterDownloader
Helper class to handle the download of Sapling parameters
-
Undocumented
See moreDeclaration
Swift
public enum Errors : Error
-
Download a Spend parameter from default host and stores it at given URL
Declaration
Swift
public static func downloadSpendParameter(_ at: URL, result: @escaping (Result<URL, Error>) -> Void)
Parameters
at
The destination URL for the download
result
block to handle the download success or error
-
Download an Output parameter from default host and stores it at given URL
Declaration
Swift
public static func downloadOutputParameter(_ at: URL, result: @escaping (Result<URL, Error>) -> Void)
Parameters
at
The destination URL for the download
result
block to handle the download success or error
-
Downloads the parameters if not present and provides the resulting URLs for both parameters
Declaration
Swift
public static func downloadParamsIfnotPresent( spendURL: URL, outputURL: URL, result: @escaping (Result<(spend: URL, output: URL), Error>) -> Void )
Parameters
spendURL
URL to check whether the parameter is already downloaded
outputURL
URL to check whether the parameter is already downloaded
result
block to handle success or error
-
Undocumented
Declaration
Swift
public static var spendParamsURLString: String { get }
-
Undocumented
Declaration
Swift
public static var outputParamsURLString: String { get }