* Two objects with NULL inner values will be considered "equal" here.
*/
public bool eq(org.ldk.structs.RevocationKey b) {
- bool ret = bindings.RevocationKey_eq(this.ptr, b == null ? 0 : b.ptr);
+ bool ret = bindings.RevocationKey_eq(this.ptr, b.ptr);
GC.KeepAlive(this);
GC.KeepAlive(b);
if (this != null) { this.ptrs_to.AddLast(b); };
* [`chan_utils::derive_private_revocation_key`]: crate::ln::chan_utils::derive_private_revocation_key
*/
public static RevocationKey from_basepoint(org.ldk.structs.RevocationBasepoint countersignatory_basepoint, byte[] per_commitment_point) {
- long ret = bindings.RevocationKey_from_basepoint(countersignatory_basepoint == null ? 0 : countersignatory_basepoint.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(per_commitment_point, 33)));
+ long ret = bindings.RevocationKey_from_basepoint(countersignatory_basepoint.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(per_commitment_point, 33)));
GC.KeepAlive(countersignatory_basepoint);
GC.KeepAlive(per_commitment_point);
if (ret >= 0 && ret <= 4096) { return null; }