83fa4df267fbfd030a11ec9f3afe2d928b84d1b1
[ldk-java] / c_sharp / src / org / ldk / structs / NodeFeatures.cs
1 using org.ldk.impl;
2 using org.ldk.enums;
3 using org.ldk.util;
4 using System;
5
6 namespace org { namespace ldk { namespace structs {
7
8
9 /**
10  * Features used within a `node_announcement` message.
11  */
12 public class NodeFeatures : CommonBase {
13         internal NodeFeatures(object _dummy, long ptr) : base(ptr) { }
14         ~NodeFeatures() {
15                 if (ptr != 0) { bindings.NodeFeatures_free(ptr); }
16         }
17
18         /**
19          * Checks if two NodeFeaturess contain equal inner contents.
20          * This ignores pointers and is_owned flags and looks at the values in fields.
21          * Two objects with NULL inner values will be considered "equal" here.
22          */
23         public bool eq(org.ldk.structs.NodeFeatures b) {
24                 bool ret = bindings.NodeFeatures_eq(this.ptr, b == null ? 0 : b.ptr);
25                 GC.KeepAlive(this);
26                 GC.KeepAlive(b);
27                 if (this != null) { this.ptrs_to.AddLast(b); };
28                 return ret;
29         }
30
31         public override bool Equals(object o) {
32                 if (!(o is NodeFeatures)) return false;
33                 return this.eq((NodeFeatures)o);
34         }
35         internal long clone_ptr() {
36                 long ret = bindings.NodeFeatures_clone_ptr(this.ptr);
37                 GC.KeepAlive(this);
38                 return ret;
39         }
40
41         /**
42          * Creates a copy of the NodeFeatures
43          */
44         public NodeFeatures clone() {
45                 long ret = bindings.NodeFeatures_clone(this.ptr);
46                 GC.KeepAlive(this);
47                 if (ret >= 0 && ret <= 4096) { return null; }
48                 org.ldk.structs.NodeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeFeatures(null, ret); }
49                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
50                 return ret_hu_conv;
51         }
52
53         /**
54          * Create a blank Features with no features set
55          */
56         public static NodeFeatures empty() {
57                 long ret = bindings.NodeFeatures_empty();
58                 if (ret >= 0 && ret <= 4096) { return null; }
59                 org.ldk.structs.NodeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeFeatures(null, ret); }
60                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };
61                 return ret_hu_conv;
62         }
63
64         /**
65          * Returns true if this `Features` object contains required features unknown by `other`.
66          */
67         public bool requires_unknown_bits_from(org.ldk.structs.NodeFeatures other) {
68                 bool ret = bindings.NodeFeatures_requires_unknown_bits_from(this.ptr, other == null ? 0 : other.ptr);
69                 GC.KeepAlive(this);
70                 GC.KeepAlive(other);
71                 if (this != null) { this.ptrs_to.AddLast(other); };
72                 return ret;
73         }
74
75         /**
76          * Returns true if this `Features` object contains unknown feature flags which are set as
77          * \"required\".
78          */
79         public bool requires_unknown_bits() {
80                 bool ret = bindings.NodeFeatures_requires_unknown_bits(this.ptr);
81                 GC.KeepAlive(this);
82                 return ret;
83         }
84
85         /**
86          * Sets a required feature bit. Errors if `bit` is outside the feature range as defined
87          * by [BOLT 9].
88          * 
89          * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will
90          * be set instead (i.e., `bit - 1`).
91          * 
92          * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md
93          */
94         public Result_NoneNoneZ set_required_feature_bit(long bit) {
95                 long ret = bindings.NodeFeatures_set_required_feature_bit(this.ptr, bit);
96                 GC.KeepAlive(this);
97                 GC.KeepAlive(bit);
98                 if (ret >= 0 && ret <= 4096) { return null; }
99                 Result_NoneNoneZ ret_hu_conv = Result_NoneNoneZ.constr_from_ptr(ret);
100                 return ret_hu_conv;
101         }
102
103         /**
104          * Sets an optional feature bit. Errors if `bit` is outside the feature range as defined
105          * by [BOLT 9].
106          * 
107          * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be
108          * set instead (i.e., `bit + 1`).
109          * 
110          * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md
111          */
112         public Result_NoneNoneZ set_optional_feature_bit(long bit) {
113                 long ret = bindings.NodeFeatures_set_optional_feature_bit(this.ptr, bit);
114                 GC.KeepAlive(this);
115                 GC.KeepAlive(bit);
116                 if (ret >= 0 && ret <= 4096) { return null; }
117                 Result_NoneNoneZ ret_hu_conv = Result_NoneNoneZ.constr_from_ptr(ret);
118                 return ret_hu_conv;
119         }
120
121         /**
122          * Sets a required custom feature bit. Errors if `bit` is outside the custom range as defined
123          * by [bLIP 2] or if it is a known `T` feature.
124          * 
125          * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will
126          * be set instead (i.e., `bit - 1`).
127          * 
128          * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits
129          */
130         public Result_NoneNoneZ set_required_custom_bit(long bit) {
131                 long ret = bindings.NodeFeatures_set_required_custom_bit(this.ptr, bit);
132                 GC.KeepAlive(this);
133                 GC.KeepAlive(bit);
134                 if (ret >= 0 && ret <= 4096) { return null; }
135                 Result_NoneNoneZ ret_hu_conv = Result_NoneNoneZ.constr_from_ptr(ret);
136                 return ret_hu_conv;
137         }
138
139         /**
140          * Sets an optional custom feature bit. Errors if `bit` is outside the custom range as defined
141          * by [bLIP 2] or if it is a known `T` feature.
142          * 
143          * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be
144          * set instead (i.e., `bit + 1`).
145          * 
146          * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits
147          */
148         public Result_NoneNoneZ set_optional_custom_bit(long bit) {
149                 long ret = bindings.NodeFeatures_set_optional_custom_bit(this.ptr, bit);
150                 GC.KeepAlive(this);
151                 GC.KeepAlive(bit);
152                 if (ret >= 0 && ret <= 4096) { return null; }
153                 Result_NoneNoneZ ret_hu_conv = Result_NoneNoneZ.constr_from_ptr(ret);
154                 return ret_hu_conv;
155         }
156
157         /**
158          * Serialize the NodeFeatures object into a byte array which can be read by NodeFeatures_read
159          */
160         public byte[] write() {
161                 long ret = bindings.NodeFeatures_write(this.ptr);
162                 GC.KeepAlive(this);
163                 if (ret >= 0 && ret <= 4096) { return null; }
164                 byte[] ret_conv = InternalUtils.decodeUint8Array(ret);
165                 return ret_conv;
166         }
167
168         /**
169          * Read a NodeFeatures from a byte array, created by NodeFeatures_write
170          */
171         public static Result_NodeFeaturesDecodeErrorZ read(byte[] ser) {
172                 long ret = bindings.NodeFeatures_read(InternalUtils.encodeUint8Array(ser));
173                 GC.KeepAlive(ser);
174                 if (ret >= 0 && ret <= 4096) { return null; }
175                 Result_NodeFeaturesDecodeErrorZ ret_hu_conv = Result_NodeFeaturesDecodeErrorZ.constr_from_ptr(ret);
176                 return ret_hu_conv;
177         }
178
179         /**
180          * Set this feature as optional.
181          */
182         public void set_data_loss_protect_optional() {
183                 bindings.NodeFeatures_set_data_loss_protect_optional(this.ptr);
184                 GC.KeepAlive(this);
185         }
186
187         /**
188          * Set this feature as required.
189          */
190         public void set_data_loss_protect_required() {
191                 bindings.NodeFeatures_set_data_loss_protect_required(this.ptr);
192                 GC.KeepAlive(this);
193         }
194
195         /**
196          * Checks if this feature is supported.
197          */
198         public bool supports_data_loss_protect() {
199                 bool ret = bindings.NodeFeatures_supports_data_loss_protect(this.ptr);
200                 GC.KeepAlive(this);
201                 return ret;
202         }
203
204         /**
205          * Checks if this feature is required.
206          */
207         public bool requires_data_loss_protect() {
208                 bool ret = bindings.NodeFeatures_requires_data_loss_protect(this.ptr);
209                 GC.KeepAlive(this);
210                 return ret;
211         }
212
213         /**
214          * Set this feature as optional.
215          */
216         public void set_upfront_shutdown_script_optional() {
217                 bindings.NodeFeatures_set_upfront_shutdown_script_optional(this.ptr);
218                 GC.KeepAlive(this);
219         }
220
221         /**
222          * Set this feature as required.
223          */
224         public void set_upfront_shutdown_script_required() {
225                 bindings.NodeFeatures_set_upfront_shutdown_script_required(this.ptr);
226                 GC.KeepAlive(this);
227         }
228
229         /**
230          * Checks if this feature is supported.
231          */
232         public bool supports_upfront_shutdown_script() {
233                 bool ret = bindings.NodeFeatures_supports_upfront_shutdown_script(this.ptr);
234                 GC.KeepAlive(this);
235                 return ret;
236         }
237
238         /**
239          * Checks if this feature is required.
240          */
241         public bool requires_upfront_shutdown_script() {
242                 bool ret = bindings.NodeFeatures_requires_upfront_shutdown_script(this.ptr);
243                 GC.KeepAlive(this);
244                 return ret;
245         }
246
247         /**
248          * Set this feature as optional.
249          */
250         public void set_gossip_queries_optional() {
251                 bindings.NodeFeatures_set_gossip_queries_optional(this.ptr);
252                 GC.KeepAlive(this);
253         }
254
255         /**
256          * Set this feature as required.
257          */
258         public void set_gossip_queries_required() {
259                 bindings.NodeFeatures_set_gossip_queries_required(this.ptr);
260                 GC.KeepAlive(this);
261         }
262
263         /**
264          * Checks if this feature is supported.
265          */
266         public bool supports_gossip_queries() {
267                 bool ret = bindings.NodeFeatures_supports_gossip_queries(this.ptr);
268                 GC.KeepAlive(this);
269                 return ret;
270         }
271
272         /**
273          * Checks if this feature is required.
274          */
275         public bool requires_gossip_queries() {
276                 bool ret = bindings.NodeFeatures_requires_gossip_queries(this.ptr);
277                 GC.KeepAlive(this);
278                 return ret;
279         }
280
281         /**
282          * Set this feature as optional.
283          */
284         public void set_variable_length_onion_optional() {
285                 bindings.NodeFeatures_set_variable_length_onion_optional(this.ptr);
286                 GC.KeepAlive(this);
287         }
288
289         /**
290          * Set this feature as required.
291          */
292         public void set_variable_length_onion_required() {
293                 bindings.NodeFeatures_set_variable_length_onion_required(this.ptr);
294                 GC.KeepAlive(this);
295         }
296
297         /**
298          * Checks if this feature is supported.
299          */
300         public bool supports_variable_length_onion() {
301                 bool ret = bindings.NodeFeatures_supports_variable_length_onion(this.ptr);
302                 GC.KeepAlive(this);
303                 return ret;
304         }
305
306         /**
307          * Checks if this feature is required.
308          */
309         public bool requires_variable_length_onion() {
310                 bool ret = bindings.NodeFeatures_requires_variable_length_onion(this.ptr);
311                 GC.KeepAlive(this);
312                 return ret;
313         }
314
315         /**
316          * Set this feature as optional.
317          */
318         public void set_static_remote_key_optional() {
319                 bindings.NodeFeatures_set_static_remote_key_optional(this.ptr);
320                 GC.KeepAlive(this);
321         }
322
323         /**
324          * Set this feature as required.
325          */
326         public void set_static_remote_key_required() {
327                 bindings.NodeFeatures_set_static_remote_key_required(this.ptr);
328                 GC.KeepAlive(this);
329         }
330
331         /**
332          * Checks if this feature is supported.
333          */
334         public bool supports_static_remote_key() {
335                 bool ret = bindings.NodeFeatures_supports_static_remote_key(this.ptr);
336                 GC.KeepAlive(this);
337                 return ret;
338         }
339
340         /**
341          * Checks if this feature is required.
342          */
343         public bool requires_static_remote_key() {
344                 bool ret = bindings.NodeFeatures_requires_static_remote_key(this.ptr);
345                 GC.KeepAlive(this);
346                 return ret;
347         }
348
349         /**
350          * Set this feature as optional.
351          */
352         public void set_payment_secret_optional() {
353                 bindings.NodeFeatures_set_payment_secret_optional(this.ptr);
354                 GC.KeepAlive(this);
355         }
356
357         /**
358          * Set this feature as required.
359          */
360         public void set_payment_secret_required() {
361                 bindings.NodeFeatures_set_payment_secret_required(this.ptr);
362                 GC.KeepAlive(this);
363         }
364
365         /**
366          * Checks if this feature is supported.
367          */
368         public bool supports_payment_secret() {
369                 bool ret = bindings.NodeFeatures_supports_payment_secret(this.ptr);
370                 GC.KeepAlive(this);
371                 return ret;
372         }
373
374         /**
375          * Checks if this feature is required.
376          */
377         public bool requires_payment_secret() {
378                 bool ret = bindings.NodeFeatures_requires_payment_secret(this.ptr);
379                 GC.KeepAlive(this);
380                 return ret;
381         }
382
383         /**
384          * Set this feature as optional.
385          */
386         public void set_basic_mpp_optional() {
387                 bindings.NodeFeatures_set_basic_mpp_optional(this.ptr);
388                 GC.KeepAlive(this);
389         }
390
391         /**
392          * Set this feature as required.
393          */
394         public void set_basic_mpp_required() {
395                 bindings.NodeFeatures_set_basic_mpp_required(this.ptr);
396                 GC.KeepAlive(this);
397         }
398
399         /**
400          * Checks if this feature is supported.
401          */
402         public bool supports_basic_mpp() {
403                 bool ret = bindings.NodeFeatures_supports_basic_mpp(this.ptr);
404                 GC.KeepAlive(this);
405                 return ret;
406         }
407
408         /**
409          * Checks if this feature is required.
410          */
411         public bool requires_basic_mpp() {
412                 bool ret = bindings.NodeFeatures_requires_basic_mpp(this.ptr);
413                 GC.KeepAlive(this);
414                 return ret;
415         }
416
417         /**
418          * Set this feature as optional.
419          */
420         public void set_wumbo_optional() {
421                 bindings.NodeFeatures_set_wumbo_optional(this.ptr);
422                 GC.KeepAlive(this);
423         }
424
425         /**
426          * Set this feature as required.
427          */
428         public void set_wumbo_required() {
429                 bindings.NodeFeatures_set_wumbo_required(this.ptr);
430                 GC.KeepAlive(this);
431         }
432
433         /**
434          * Checks if this feature is supported.
435          */
436         public bool supports_wumbo() {
437                 bool ret = bindings.NodeFeatures_supports_wumbo(this.ptr);
438                 GC.KeepAlive(this);
439                 return ret;
440         }
441
442         /**
443          * Checks if this feature is required.
444          */
445         public bool requires_wumbo() {
446                 bool ret = bindings.NodeFeatures_requires_wumbo(this.ptr);
447                 GC.KeepAlive(this);
448                 return ret;
449         }
450
451         /**
452          * Set this feature as optional.
453          */
454         public void set_anchors_nonzero_fee_htlc_tx_optional() {
455                 bindings.NodeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(this.ptr);
456                 GC.KeepAlive(this);
457         }
458
459         /**
460          * Set this feature as required.
461          */
462         public void set_anchors_nonzero_fee_htlc_tx_required() {
463                 bindings.NodeFeatures_set_anchors_nonzero_fee_htlc_tx_required(this.ptr);
464                 GC.KeepAlive(this);
465         }
466
467         /**
468          * Checks if this feature is supported.
469          */
470         public bool supports_anchors_nonzero_fee_htlc_tx() {
471                 bool ret = bindings.NodeFeatures_supports_anchors_nonzero_fee_htlc_tx(this.ptr);
472                 GC.KeepAlive(this);
473                 return ret;
474         }
475
476         /**
477          * Checks if this feature is required.
478          */
479         public bool requires_anchors_nonzero_fee_htlc_tx() {
480                 bool ret = bindings.NodeFeatures_requires_anchors_nonzero_fee_htlc_tx(this.ptr);
481                 GC.KeepAlive(this);
482                 return ret;
483         }
484
485         /**
486          * Set this feature as optional.
487          */
488         public void set_anchors_zero_fee_htlc_tx_optional() {
489                 bindings.NodeFeatures_set_anchors_zero_fee_htlc_tx_optional(this.ptr);
490                 GC.KeepAlive(this);
491         }
492
493         /**
494          * Set this feature as required.
495          */
496         public void set_anchors_zero_fee_htlc_tx_required() {
497                 bindings.NodeFeatures_set_anchors_zero_fee_htlc_tx_required(this.ptr);
498                 GC.KeepAlive(this);
499         }
500
501         /**
502          * Checks if this feature is supported.
503          */
504         public bool supports_anchors_zero_fee_htlc_tx() {
505                 bool ret = bindings.NodeFeatures_supports_anchors_zero_fee_htlc_tx(this.ptr);
506                 GC.KeepAlive(this);
507                 return ret;
508         }
509
510         /**
511          * Checks if this feature is required.
512          */
513         public bool requires_anchors_zero_fee_htlc_tx() {
514                 bool ret = bindings.NodeFeatures_requires_anchors_zero_fee_htlc_tx(this.ptr);
515                 GC.KeepAlive(this);
516                 return ret;
517         }
518
519         /**
520          * Set this feature as optional.
521          */
522         public void set_shutdown_any_segwit_optional() {
523                 bindings.NodeFeatures_set_shutdown_any_segwit_optional(this.ptr);
524                 GC.KeepAlive(this);
525         }
526
527         /**
528          * Set this feature as required.
529          */
530         public void set_shutdown_any_segwit_required() {
531                 bindings.NodeFeatures_set_shutdown_any_segwit_required(this.ptr);
532                 GC.KeepAlive(this);
533         }
534
535         /**
536          * Checks if this feature is supported.
537          */
538         public bool supports_shutdown_anysegwit() {
539                 bool ret = bindings.NodeFeatures_supports_shutdown_anysegwit(this.ptr);
540                 GC.KeepAlive(this);
541                 return ret;
542         }
543
544         /**
545          * Checks if this feature is required.
546          */
547         public bool requires_shutdown_anysegwit() {
548                 bool ret = bindings.NodeFeatures_requires_shutdown_anysegwit(this.ptr);
549                 GC.KeepAlive(this);
550                 return ret;
551         }
552
553         /**
554          * Set this feature as optional.
555          */
556         public void set_taproot_optional() {
557                 bindings.NodeFeatures_set_taproot_optional(this.ptr);
558                 GC.KeepAlive(this);
559         }
560
561         /**
562          * Set this feature as required.
563          */
564         public void set_taproot_required() {
565                 bindings.NodeFeatures_set_taproot_required(this.ptr);
566                 GC.KeepAlive(this);
567         }
568
569         /**
570          * Checks if this feature is supported.
571          */
572         public bool supports_taproot() {
573                 bool ret = bindings.NodeFeatures_supports_taproot(this.ptr);
574                 GC.KeepAlive(this);
575                 return ret;
576         }
577
578         /**
579          * Checks if this feature is required.
580          */
581         public bool requires_taproot() {
582                 bool ret = bindings.NodeFeatures_requires_taproot(this.ptr);
583                 GC.KeepAlive(this);
584                 return ret;
585         }
586
587         /**
588          * Set this feature as optional.
589          */
590         public void set_onion_messages_optional() {
591                 bindings.NodeFeatures_set_onion_messages_optional(this.ptr);
592                 GC.KeepAlive(this);
593         }
594
595         /**
596          * Set this feature as required.
597          */
598         public void set_onion_messages_required() {
599                 bindings.NodeFeatures_set_onion_messages_required(this.ptr);
600                 GC.KeepAlive(this);
601         }
602
603         /**
604          * Checks if this feature is supported.
605          */
606         public bool supports_onion_messages() {
607                 bool ret = bindings.NodeFeatures_supports_onion_messages(this.ptr);
608                 GC.KeepAlive(this);
609                 return ret;
610         }
611
612         /**
613          * Checks if this feature is required.
614          */
615         public bool requires_onion_messages() {
616                 bool ret = bindings.NodeFeatures_requires_onion_messages(this.ptr);
617                 GC.KeepAlive(this);
618                 return ret;
619         }
620
621         /**
622          * Set this feature as optional.
623          */
624         public void set_channel_type_optional() {
625                 bindings.NodeFeatures_set_channel_type_optional(this.ptr);
626                 GC.KeepAlive(this);
627         }
628
629         /**
630          * Set this feature as required.
631          */
632         public void set_channel_type_required() {
633                 bindings.NodeFeatures_set_channel_type_required(this.ptr);
634                 GC.KeepAlive(this);
635         }
636
637         /**
638          * Checks if this feature is supported.
639          */
640         public bool supports_channel_type() {
641                 bool ret = bindings.NodeFeatures_supports_channel_type(this.ptr);
642                 GC.KeepAlive(this);
643                 return ret;
644         }
645
646         /**
647          * Checks if this feature is required.
648          */
649         public bool requires_channel_type() {
650                 bool ret = bindings.NodeFeatures_requires_channel_type(this.ptr);
651                 GC.KeepAlive(this);
652                 return ret;
653         }
654
655         /**
656          * Set this feature as optional.
657          */
658         public void set_scid_privacy_optional() {
659                 bindings.NodeFeatures_set_scid_privacy_optional(this.ptr);
660                 GC.KeepAlive(this);
661         }
662
663         /**
664          * Set this feature as required.
665          */
666         public void set_scid_privacy_required() {
667                 bindings.NodeFeatures_set_scid_privacy_required(this.ptr);
668                 GC.KeepAlive(this);
669         }
670
671         /**
672          * Checks if this feature is supported.
673          */
674         public bool supports_scid_privacy() {
675                 bool ret = bindings.NodeFeatures_supports_scid_privacy(this.ptr);
676                 GC.KeepAlive(this);
677                 return ret;
678         }
679
680         /**
681          * Checks if this feature is required.
682          */
683         public bool requires_scid_privacy() {
684                 bool ret = bindings.NodeFeatures_requires_scid_privacy(this.ptr);
685                 GC.KeepAlive(this);
686                 return ret;
687         }
688
689         /**
690          * Set this feature as optional.
691          */
692         public void set_zero_conf_optional() {
693                 bindings.NodeFeatures_set_zero_conf_optional(this.ptr);
694                 GC.KeepAlive(this);
695         }
696
697         /**
698          * Set this feature as required.
699          */
700         public void set_zero_conf_required() {
701                 bindings.NodeFeatures_set_zero_conf_required(this.ptr);
702                 GC.KeepAlive(this);
703         }
704
705         /**
706          * Checks if this feature is supported.
707          */
708         public bool supports_zero_conf() {
709                 bool ret = bindings.NodeFeatures_supports_zero_conf(this.ptr);
710                 GC.KeepAlive(this);
711                 return ret;
712         }
713
714         /**
715          * Checks if this feature is required.
716          */
717         public bool requires_zero_conf() {
718                 bool ret = bindings.NodeFeatures_requires_zero_conf(this.ptr);
719                 GC.KeepAlive(this);
720                 return ret;
721         }
722
723         /**
724          * Set this feature as optional.
725          */
726         public void set_keysend_optional() {
727                 bindings.NodeFeatures_set_keysend_optional(this.ptr);
728                 GC.KeepAlive(this);
729         }
730
731         /**
732          * Set this feature as required.
733          */
734         public void set_keysend_required() {
735                 bindings.NodeFeatures_set_keysend_required(this.ptr);
736                 GC.KeepAlive(this);
737         }
738
739         /**
740          * Checks if this feature is supported.
741          */
742         public bool supports_keysend() {
743                 bool ret = bindings.NodeFeatures_supports_keysend(this.ptr);
744                 GC.KeepAlive(this);
745                 return ret;
746         }
747
748         /**
749          * Checks if this feature is required.
750          */
751         public bool requires_keysend() {
752                 bool ret = bindings.NodeFeatures_requires_keysend(this.ptr);
753                 GC.KeepAlive(this);
754                 return ret;
755         }
756
757 }
758 } } }