Skip to content

Commit 44ddc10

Browse files
committed
Move get_my_privkey into Musig2
1 parent 02a6152 commit 44ddc10

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ public class Musig2 {
66
static {
77
System.loadLibrary("musig2_dll");
88
}
9-
9+
10+
public static native String get_my_privkey(String phrase, String pd_passphrase);
11+
1012
public static native String get_my_pubkey(String jarg1);
1113

1214
public static native long get_round1_state();
@@ -23,6 +25,10 @@ public class Musig2 {
2325

2426
public static native String get_key_agg(String jarg1);
2527

28+
public static String getMyPrivkey(String phrase, String pd_passphrase) {
29+
return get_my_privkey(phrase, pd_passphrase);
30+
};
31+
2632
public static String getMyPubkey(String priv) {
2733
return get_my_pubkey(priv);
2834
};

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ public static native String build_raw_script_tx(String base_tx,
2828

2929
public static native String generate_schnorr_signature(String message, String privkey);
3030

31-
public static native String get_my_privkey(String phrase, String pd_passphrase);
32-
3331
public static native String get_script_pubkey(String addr);
3432

3533
public static native String get_spent_outputs(String prev_tx, long input_index);
-4 KB
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)