Class ZephyrOutput

java.lang.Object
zephyr.daemon.model.ZephyrOutput
Direct Known Subclasses:
ZephyrOutputWallet

public class ZephyrOutput extends Object
Models a Zephyr transaction output.
  • Constructor Details

    • ZephyrOutput

      public ZephyrOutput()
    • ZephyrOutput

      public ZephyrOutput(ZephyrOutput output)
  • Method Details

    • copy

      public ZephyrOutput copy()
    • getTx

      public ZephyrTx getTx()
    • setTx

      public ZephyrOutput setTx(ZephyrTx tx)
    • getKeyImage

      public ZephyrKeyImage getKeyImage()
    • setKeyImage

      public ZephyrOutput setKeyImage(ZephyrKeyImage keyImage)
    • getAmount

      public BigInteger getAmount()
    • setAmount

      public ZephyrOutput setAmount(BigInteger amount)
    • getIndex

      public Long getIndex()
    • setIndex

      public ZephyrOutput setIndex(Long index)
    • getRingOutputIndices

      public List<Long> getRingOutputIndices()
    • setRingOutputIndices

      public ZephyrOutput setRingOutputIndices(List<Long> ringOutputIndices)
    • getStealthPublicKey

      public String getStealthPublicKey()
    • setStealthPublicKey

      public ZephyrOutput setStealthPublicKey(String stealthPublicKey)
    • getAssetType

      public String getAssetType()
      Returns the asset of this output. The core does not serialize the asset of an output; the wallet listener callbacks set it.
      Returns:
      the asset name (see zephyr.wallet.model.ZephyrAssets), null if not known
    • setAssetType

      public ZephyrOutput setAssetType(String assetType)
      Sets the asset of this output.
      Parameters:
      assetType - is the asset name
      Returns:
      this output for chaining
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • merge

      public ZephyrOutput merge(ZephyrOutput output)
    • toString

      public String toString(int indent)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object