Class LnrpcAMP

java.lang.Object
net.osslabz.lnd.dto.LnrpcAMP

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-07T12:03:38.664532692Z[Etc/UTC]") public class LnrpcAMP extends Object
Details specific to AMP HTLCs.
  • Field Details

  • Constructor Details

    • LnrpcAMP

      public LnrpcAMP()
  • Method Details

    • rootShare

      public LnrpcAMP rootShare(byte[] rootShare)
    • getRootShare

      @Nullable public byte[] getRootShare()
      An n-of-n secret share of the root seed from which child payment hashes and preimages are derived.
      Returns:
      rootShare
    • setRootShare

      public void setRootShare(byte[] rootShare)
    • setId

      public LnrpcAMP setId(byte[] setId)
    • getSetId

      @Nullable public byte[] getSetId()
      An identifier for the HTLC set that this HTLC belongs to.
      Returns:
      setId
    • setSetId

      public void setSetId(byte[] setId)
    • childIndex

      public LnrpcAMP childIndex(Long childIndex)
    • getChildIndex

      @Nullable public Long getChildIndex()
      A nonce used to randomize the child preimage and child hash from a given root_share.
      Returns:
      childIndex
    • setChildIndex

      public void setChildIndex(Long childIndex)
    • hash

      public LnrpcAMP hash(byte[] hash)
    • getHash

      @Nullable public byte[] getHash()
      The payment hash of the AMP HTLC.
      Returns:
      hash
    • setHash

      public void setHash(byte[] hash)
    • preimage

      public LnrpcAMP preimage(byte[] preimage)
    • getPreimage

      @Nullable public byte[] getPreimage()
      The preimage used to settle this AMP htlc. This field will only be populated if the invoice is in InvoiceState_ACCEPTED or InvoiceState_SETTLED.
      Returns:
      preimage
    • setPreimage

      public void setPreimage(byte[] preimage)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object