OperationReveal

public class OperationReveal : Operation

Operation subclass for revealing a publickey to the network.

  • Declaration

    Swift

    public let publicKey: String
  • Create an OperationReveal.

    Declaration

    Swift

    public init(wallet: Wallet)

    Parameters

    wallet

    The Wallet object, whose publicKey needs to be revealed.

  • Create an OperationReveal.

    Declaration

    Swift

    public init(base58EncodedPublicKey: String, walletAddress: String)

    Parameters

    base58EncodedPublicKey

    The Wallet object, whose publicKey needs to be revealed.

    walletAddress

    The Wallet object, whose publicKey needs to be revealed.

  • Create a base operation.

    Declaration

    Swift

    public required init(from decoder: Decoder) throws

    Parameters

    from

    A decoder used to convert a data fromat (such as JSON) into the model object.

  • Convert the object into a data format, such as JSON.

    Declaration

    Swift

    public override func encode(to encoder: Encoder) throws

    Parameters

    to

    An encoder that will allow conversions to multipel data formats.

  • A function to check if two operations are equal.

    Declaration

    Swift

    public func isEqual(_ op: OperationReveal) -> Bool

    Parameters

    _

    An Operation to compare against

    Return Value

    A Bool indicating the result.