Class FundingSigned


  • public class FundingSigned
    extends Object
    A [`funding_signed`] message to be sent to or received from a peer. [`funding_signed`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-funding_signed-message
    • 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_signature

        public byte[] get_signature()
        The signature of the channel acceptor (fundee) on the initial commitment transaction
      • set_signature

        public void set_signature​(byte[] val)
        The signature of the channel acceptor (fundee) on the initial commitment transaction
      • of

        public static FundingSigned of​(byte[] channel_id_arg,
                                       byte[] signature_arg)
        Constructs a new FundingSigned given each field
      • eq

        public boolean eq​(FundingSigned b)
        Checks if two FundingSigneds contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
      • write

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