Class ReceiveTlvs


  • public class ReceiveTlvs
    extends Object
    Data to construct a [`BlindedHop`] for receiving a payment. This payload is custom to LDK and may not be valid if received by another lightning implementation.
    • Method Detail

      • get_payment_secret

        public byte[] get_payment_secret()
        Used to authenticate the sender of a payment to the receiver and tie MPP HTLCs together.
      • set_payment_secret

        public void set_payment_secret​(byte[] val)
        Used to authenticate the sender of a payment to the receiver and tie MPP HTLCs together.
      • get_payment_constraints

        public PaymentConstraints get_payment_constraints()
        Constraints for the receiver of this payment.
      • set_payment_constraints

        public void set_payment_constraints​(PaymentConstraints val)
        Constraints for the receiver of this payment.
      • of

        public static ReceiveTlvs of​(byte[] payment_secret_arg,
                                     PaymentConstraints payment_constraints_arg)
        Constructs a new ReceiveTlvs given each field
      • write

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