Structure
PCProcessingRequest
public struct PCProcessingRequest
Holds operation's processing data
Properties
confirmationResults
public let confirmationResults: [Result<PCConfirmation, Error>]
Transactions confirmation data
Methods
create(toConfirm:toDecline:user:password:signer:completion:)
public static func create(
toConfirm: [PCTransaction],
toDecline: [PCTransaction],
user: PCUser,
password: String,
signer: @escaping (_ digests: [Data]) -> [Result<String, Error>],
completion: @escaping (_ result: Result<PCProcessingRequest, Error>) -> Void
)
Creates PCProcessingRequest instance
Parameters
Name | Type | Description |
---|---|---|
toConfirm | [PCTransaction] |
The transactions to confirm |
toDecline | [PCTransaction] |
The transactions to decline |
user | PCUser |
The user to process operation |
password | String |
The user's password |
signer | @escaping (_ digests: [Data]) -> [Result<String, Error>] |
The function to sign digests of the transactions |
completion | @escaping (_ result: Result<PCProcessingRequest, Error>) -> Void |
A closure to be invoked after finishing |
result | Returns |