Class ChannelDerivationParameters


  • public class ChannelDerivationParameters
    extends Object
    The parameters required to derive a channel signer via [`SignerProvider`].
    • Method Detail

      • get_value_satoshis

        public long get_value_satoshis()
        The value in satoshis of the channel we're attempting to spend the anchor output of.
      • set_value_satoshis

        public void set_value_satoshis​(long val)
        The value in satoshis of the channel we're attempting to spend the anchor output of.
      • get_keys_id

        public byte[] get_keys_id()
        The unique identifier to re-derive the signer for the associated channel.
      • set_keys_id

        public void set_keys_id​(byte[] val)
        The unique identifier to re-derive the signer for the associated channel.
      • get_transaction_parameters

        public ChannelTransactionParameters get_transaction_parameters()
        The necessary channel parameters that need to be provided to the re-derived signer through [`ChannelSigner::provide_channel_parameters`]. [`ChannelSigner::provide_channel_parameters`]: crate::sign::ChannelSigner::provide_channel_parameters
      • set_transaction_parameters

        public void set_transaction_parameters​(ChannelTransactionParameters val)
        The necessary channel parameters that need to be provided to the re-derived signer through [`ChannelSigner::provide_channel_parameters`]. [`ChannelSigner::provide_channel_parameters`]: crate::sign::ChannelSigner::provide_channel_parameters
      • eq

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