Class RevokeAndACK


  • public class RevokeAndACK
    extends Object
    A revoke_and_ack 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_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
      • write

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