+ /**
+ * Verifies that the request was for an offer created using the given key. Returns the derived
+ * keys need to sign an [`Bolt12Invoice`] for the request if they could be extracted from the
+ * metadata.
+ *
+ * [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice
+ */
+ public Result_COption_KeyPairZNoneZ verify(org.ldk.structs.ExpandedKey key) {
+ long ret = bindings.InvoiceRequest_verify(this.ptr, key == null ? 0 : key.ptr);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(key);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Result_COption_KeyPairZNoneZ ret_hu_conv = Result_COption_KeyPairZNoneZ.constr_from_ptr(ret);
+ if (this != null) { this.ptrs_to.add(key); };
+ return ret_hu_conv;
+ }
+