@@ -343,7 +343,7 @@ public byte[] release_commitment_secret(long idx) {
343343 * irrelevant or duplicate preimages.
344344 */
345345 public Result_NoneNoneZ validate_holder_commitment (HolderCommitmentTransaction holder_tx , byte [][] preimages ) {
346- long ret = bindings .BaseSign_validate_holder_commitment (this .ptr , holder_tx == null ? 0 : holder_tx .ptr & ~ 1 , preimages != null ? Arrays .stream (preimages ).map (preimages_conv_8 -> InternalUtils .check_arr_len (preimages_conv_8 , 32 )).toArray (byte [][]::new ) : null );
346+ long ret = bindings .BaseSign_validate_holder_commitment (this .ptr , holder_tx == null ? 0 : holder_tx .ptr , preimages != null ? Arrays .stream (preimages ).map (preimages_conv_8 -> InternalUtils .check_arr_len (preimages_conv_8 , 32 )).toArray (byte [][]::new ) : null );
347347 Reference .reachabilityFence (this );
348348 Reference .reachabilityFence (holder_tx );
349349 Reference .reachabilityFence (preimages );
@@ -380,7 +380,7 @@ public byte[] channel_keys_id() {
380380 * irrelevant or duplicate preimages.
381381 */
382382 public Result_C2Tuple_SignatureCVec_SignatureZZNoneZ sign_counterparty_commitment (CommitmentTransaction commitment_tx , byte [][] preimages ) {
383- long ret = bindings .BaseSign_sign_counterparty_commitment (this .ptr , commitment_tx == null ? 0 : commitment_tx .ptr & ~ 1 , preimages != null ? Arrays .stream (preimages ).map (preimages_conv_8 -> InternalUtils .check_arr_len (preimages_conv_8 , 32 )).toArray (byte [][]::new ) : null );
383+ long ret = bindings .BaseSign_sign_counterparty_commitment (this .ptr , commitment_tx == null ? 0 : commitment_tx .ptr , preimages != null ? Arrays .stream (preimages ).map (preimages_conv_8 -> InternalUtils .check_arr_len (preimages_conv_8 , 32 )).toArray (byte [][]::new ) : null );
384384 Reference .reachabilityFence (this );
385385 Reference .reachabilityFence (commitment_tx );
386386 Reference .reachabilityFence (preimages );
@@ -420,7 +420,7 @@ public Result_NoneNoneZ validate_counterparty_revocation(long idx, byte[] secret
420420 * May return Err if key derivation fails. Callers, such as ChannelMonitor, will panic in such a case.
421421 */
422422 public Result_C2Tuple_SignatureCVec_SignatureZZNoneZ sign_holder_commitment_and_htlcs (HolderCommitmentTransaction commitment_tx ) {
423- long ret = bindings .BaseSign_sign_holder_commitment_and_htlcs (this .ptr , commitment_tx == null ? 0 : commitment_tx .ptr & ~ 1 );
423+ long ret = bindings .BaseSign_sign_holder_commitment_and_htlcs (this .ptr , commitment_tx == null ? 0 : commitment_tx .ptr );
424424 Reference .reachabilityFence (this );
425425 Reference .reachabilityFence (commitment_tx );
426426 if (ret >= 0 && ret <= 4096 ) { return null ; }
@@ -477,7 +477,7 @@ public Result_SignatureNoneZ sign_justice_revoked_output(byte[] justice_tx, long
477477 * (which is committed to in the BIP 143 signatures).
478478 */
479479 public Result_SignatureNoneZ sign_justice_revoked_htlc (byte [] justice_tx , long input , long amount , byte [] per_commitment_key , HTLCOutputInCommitment htlc ) {
480- long ret = bindings .BaseSign_sign_justice_revoked_htlc (this .ptr , justice_tx , input , amount , InternalUtils .check_arr_len (per_commitment_key , 32 ), htlc == null ? 0 : htlc .ptr & ~ 1 );
480+ long ret = bindings .BaseSign_sign_justice_revoked_htlc (this .ptr , justice_tx , input , amount , InternalUtils .check_arr_len (per_commitment_key , 32 ), htlc == null ? 0 : htlc .ptr );
481481 Reference .reachabilityFence (this );
482482 Reference .reachabilityFence (justice_tx );
483483 Reference .reachabilityFence (input );
@@ -510,7 +510,7 @@ public Result_SignatureNoneZ sign_justice_revoked_htlc(byte[] justice_tx, long i
510510 * BIP 143 signature.
511511 */
512512 public Result_SignatureNoneZ sign_counterparty_htlc_transaction (byte [] htlc_tx , long input , long amount , byte [] per_commitment_point , HTLCOutputInCommitment htlc ) {
513- long ret = bindings .BaseSign_sign_counterparty_htlc_transaction (this .ptr , htlc_tx , input , amount , InternalUtils .check_arr_len (per_commitment_point , 33 ), htlc == null ? 0 : htlc .ptr & ~ 1 );
513+ long ret = bindings .BaseSign_sign_counterparty_htlc_transaction (this .ptr , htlc_tx , input , amount , InternalUtils .check_arr_len (per_commitment_point , 33 ), htlc == null ? 0 : htlc .ptr );
514514 Reference .reachabilityFence (this );
515515 Reference .reachabilityFence (htlc_tx );
516516 Reference .reachabilityFence (input );
@@ -530,7 +530,7 @@ public Result_SignatureNoneZ sign_counterparty_htlc_transaction(byte[] htlc_tx,
530530 * chosen to forgo their output as dust.
531531 */
532532 public Result_SignatureNoneZ sign_closing_transaction (ClosingTransaction closing_tx ) {
533- long ret = bindings .BaseSign_sign_closing_transaction (this .ptr , closing_tx == null ? 0 : closing_tx .ptr & ~ 1 );
533+ long ret = bindings .BaseSign_sign_closing_transaction (this .ptr , closing_tx == null ? 0 : closing_tx .ptr );
534534 Reference .reachabilityFence (this );
535535 Reference .reachabilityFence (closing_tx );
536536 if (ret >= 0 && ret <= 4096 ) { return null ; }
@@ -551,7 +551,7 @@ public Result_SignatureNoneZ sign_closing_transaction(ClosingTransaction closing
551551 * protocol.
552552 */
553553 public Result_C2Tuple_SignatureSignatureZNoneZ sign_channel_announcement (UnsignedChannelAnnouncement msg ) {
554- long ret = bindings .BaseSign_sign_channel_announcement (this .ptr , msg == null ? 0 : msg .ptr & ~ 1 );
554+ long ret = bindings .BaseSign_sign_channel_announcement (this .ptr , msg == null ? 0 : msg .ptr );
555555 Reference .reachabilityFence (this );
556556 Reference .reachabilityFence (msg );
557557 if (ret >= 0 && ret <= 4096 ) { return null ; }
@@ -573,7 +573,7 @@ public Result_C2Tuple_SignatureSignatureZNoneZ sign_channel_announcement(Unsigne
573573 * Will be called before any signatures are applied.
574574 */
575575 public void ready_channel (ChannelTransactionParameters channel_parameters ) {
576- bindings .BaseSign_ready_channel (this .ptr , channel_parameters == null ? 0 : channel_parameters .ptr & ~ 1 );
576+ bindings .BaseSign_ready_channel (this .ptr , channel_parameters == null ? 0 : channel_parameters .ptr );
577577 Reference .reachabilityFence (this );
578578 Reference .reachabilityFence (channel_parameters );
579579 this .ptrs_to .add (channel_parameters );
0 commit comments