Skip to content

Commit 87a7438

Browse files
committed
Get unsigned raw tx
1 parent c660964 commit 87a7438

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

musig2/src/main/java/com/chainx/musig2bitcoin/Transaction.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ public static native String get_sighash(String base_tx,
1717
String agg_pubkey,
1818
long sigversion);
1919

20+
public static native String get_unsigned_tx(String base_tx);
21+
2022
public static native String build_raw_script_tx(String base_tx,
2123
String agg_signature,
2224
String agg_pubkey,
@@ -76,6 +78,10 @@ public static String getSighash(String tx, String txid, long input_index, String
7678
return get_sighash(tx, txid, input_index, agg_pubkey, sigversion);
7779
}
7880

81+
public static String getUnsignedTx(String tx) {
82+
return get_unsigned_tx(tx);
83+
}
84+
7985
public static String buildThresholdTx(String tx, String agg_signature, String agg_pubkey, String control, String txid, long input_index) {
8086
return build_raw_script_tx(tx, agg_signature, agg_pubkey, control, txid, input_index);
8187
}
-16 KB
Binary file not shown.
-12 KB
Binary file not shown.

0 commit comments

Comments
 (0)