+ /**
+ * The node id of the peer pertaining to the logged record.
+ *
+ * Note that in some cases a [`Self::channel_id`] may be filled in but this may still be
+ * `None`, depending on if the peer information is readily available in LDK when the log is
+ * generated.
+ *
+ * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
+ */
+ public get_peer_id(): Uint8Array {
+ const ret: number = bindings.Record_get_peer_id(this.ptr);
+ const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
+ return ret_conv;
+ }
+
+ /**
+ * The node id of the peer pertaining to the logged record.
+ *
+ * Note that in some cases a [`Self::channel_id`] may be filled in but this may still be
+ * `None`, depending on if the peer information is readily available in LDK when the log is
+ * generated.
+ *
+ * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
+ */
+ public set_peer_id(val: Uint8Array|null): void {
+ bindings.Record_set_peer_id(this.ptr, bindings.encodeUint8Array(bindings.check_arr_len(val, 33)));
+ }
+
+ /**
+ * The channel id of the channel pertaining to the logged record. May be a temporary id before
+ * the channel has been funded.
+ */
+ public get_channel_id(): Option_ThirtyTwoBytesZ {
+ const ret: bigint = bindings.Record_get_channel_id(this.ptr);
+ const ret_hu_conv: Option_ThirtyTwoBytesZ = Option_ThirtyTwoBytesZ.constr_from_ptr(ret);
+ CommonBase.add_ref_from(ret_hu_conv, this);
+ return ret_hu_conv;
+ }
+
+ /**
+ * The channel id of the channel pertaining to the logged record. May be a temporary id before
+ * the channel has been funded.
+ */
+ public set_channel_id(val: Option_ThirtyTwoBytesZ): void {
+ bindings.Record_set_channel_id(this.ptr, CommonBase.get_ptr_of(val));
+ CommonBase.add_ref_from(this, val);
+ }
+