Class DataLossProtect


  • public class DataLossProtect
    extends Object
    Proof that the sender knows the per-commitment secret of the previous commitment transaction. This is used to convince the recipient that the channel is at a certain commitment number even if they lost that data due to a local failure. Of course, the peer may lie and even later commitments may have been revoked.
    • Method Detail

      • get_your_last_per_commitment_secret

        public byte[] get_your_last_per_commitment_secret()
        Proof that the sender knows the per-commitment secret of a specific commitment transaction belonging to the recipient
      • set_your_last_per_commitment_secret

        public void set_your_last_per_commitment_secret​(byte[] val)
        Proof that the sender knows the per-commitment secret of a specific commitment transaction belonging to the recipient
      • get_my_current_per_commitment_point

        public byte[] get_my_current_per_commitment_point()
        The sender's per-commitment point for their current commitment transaction
      • set_my_current_per_commitment_point

        public void set_my_current_per_commitment_point​(byte[] val)
        The sender's per-commitment point for their current commitment transaction
      • of

        public static DataLossProtect of​(byte[] your_last_per_commitment_secret_arg,
                                         byte[] my_current_per_commitment_point_arg)
        Constructs a new DataLossProtect given each field