Class RevokeAndACK


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

        public byte[] get_per_commitment_secret()
        The secret corresponding to the per-commitment point
      • set_per_commitment_secret

        public void set_per_commitment_secret​(byte[] val)
        The secret corresponding to the per-commitment point
      • get_next_per_commitment_point

        public byte[] get_next_per_commitment_point()
        The next sender-broadcast commitment transaction's per-commitment point
      • set_next_per_commitment_point

        public void set_next_per_commitment_point​(byte[] val)
        The next sender-broadcast commitment transaction's per-commitment point
      • of

        public static RevokeAndACK of​(byte[] channel_id_arg,
                                      byte[] per_commitment_secret_arg,
                                      byte[] next_per_commitment_point_arg)
        Constructs a new RevokeAndACK given each field
      • eq

        public boolean eq​(RevokeAndACK b)
        Checks if two RevokeAndACKs 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 RevokeAndACK object into a byte array which can be read by RevokeAndACK_read