Class UpdateFulfillHTLC


  • public class UpdateFulfillHTLC
    extends Object
    An update_fulfill_htlc message to be sent or received from a peer
    • Method Detail

      • get_channel_id

        public byte[] get_channel_id()
        The channel ID
      • set_channel_id

        public void set_channel_id​(byte[] val)
        The channel ID
      • get_htlc_id

        public long get_htlc_id()
        The HTLC ID
      • set_htlc_id

        public void set_htlc_id​(long val)
        The HTLC ID
      • get_payment_preimage

        public byte[] get_payment_preimage()
        The pre-image of the payment hash, allowing HTLC redemption
      • set_payment_preimage

        public void set_payment_preimage​(byte[] val)
        The pre-image of the payment hash, allowing HTLC redemption
      • of

        public static UpdateFulfillHTLC of​(byte[] channel_id_arg,
                                           long htlc_id_arg,
                                           byte[] payment_preimage_arg)
        Constructs a new UpdateFulfillHTLC given each field
      • write

        public byte[] write()
        Serialize the UpdateFulfillHTLC object into a byte array which can be read by UpdateFulfillHTLC_read