OperationPayload
public struct OperationPayload : Codable, Equatable
A structure representing the request that needs to be made when sending Opertion‘s to the RPC
-
The bracnh to use when sending
Declaration
Swift
public var branch: String -
Conforming to
EquatableDeclaration
Swift
public static func == (lhs: OperationPayload, rhs: OperationPayload) -> Bool -
Add the signature and the protocol to the operation so that it can be injected to the blockchain
Declaration
Swift
public mutating func addSignature(_ binarySignature: [UInt8], signingCurve: EllipticalCurve)Parameters
binarySignatureUse the
Wallet.sign(...)function to sign the forged version of the operationPayload.signingCurveThe
EllipticalCurveused for signing.andProtocolAn
OperationMetadatacontaining the network protocol to use to perform the injection. -
Declaration
Swift
public mutating func addProtcol(fromMetadata metadata: OperationMetadata)
Install in Dash