/**
* The output which is referenced by the given outpoint.
- *
- * Returns a copy of the field.
*/
public TxOut get_output() {
long ret = bindings.DelayedPaymentOutputDescriptor_get_output(this.ptr);
}
/**
- * Arbitrary identification information returned by a call to [`BaseSign::channel_keys_id`].
+ * Arbitrary identification information returned by a call to [`ChannelSigner::channel_keys_id`].
* This may be useful in re-deriving keys used in the channel to spend the output.
*/
public byte[] get_channel_keys_id() {
}
/**
- * Arbitrary identification information returned by a call to [`BaseSign::channel_keys_id`].
+ * Arbitrary identification information returned by a call to [`ChannelSigner::channel_keys_id`].
* This may be useful in re-deriving keys used in the channel to spend the output.
*/
public void set_channel_keys_id(byte[] val) {
return ret_hu_conv;
}
+ /**
+ * Generates a non-cryptographic 64-bit hash of the DelayedPaymentOutputDescriptor.
+ */
+ public long hash() {
+ long ret = bindings.DelayedPaymentOutputDescriptor_hash(this.ptr);
+ Reference.reachabilityFence(this);
+ return ret;
+ }
+
+ @Override public int hashCode() {
+ return (int)this.hash();
+ }
/**
* Checks if two DelayedPaymentOutputDescriptors contain equal inner contents.
* This ignores pointers and is_owned flags and looks at the values in fields.