Class PaymentPurpose

    • Method Detail

      • invoice_payment

        public static PaymentPurpose invoice_payment​(byte[] payment_preimage,
                                                     byte[] payment_secret)
        Utility method to constructs a new InvoicePayment-variant PaymentPurpose
      • spontaneous_payment

        public static PaymentPurpose spontaneous_payment​(byte[] a)
        Utility method to constructs a new SpontaneousPayment-variant PaymentPurpose
      • eq

        public boolean eq​(PaymentPurpose b)
        Checks if two PaymentPurposes contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields.
      • write

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