Skip to content

Commit

Permalink
Move get_my_privkey into Musig2
Browse files Browse the repository at this point in the history
  • Loading branch information
hacpy committed Nov 19, 2021
1 parent 02a6152 commit 44ddc10
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
8 changes: 7 additions & 1 deletion musig2/src/main/java/com/chainx/musig2bitcoin/Musig2.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ public class Musig2 {
static {
System.loadLibrary("musig2_dll");
}


public static native String get_my_privkey(String phrase, String pd_passphrase);

public static native String get_my_pubkey(String jarg1);

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

public static native String get_key_agg(String jarg1);

public static String getMyPrivkey(String phrase, String pd_passphrase) {
return get_my_privkey(phrase, pd_passphrase);
};

public static String getMyPubkey(String priv) {
return get_my_pubkey(priv);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ public static native String build_raw_script_tx(String base_tx,

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

public static native String get_my_privkey(String phrase, String pd_passphrase);

public static native String get_script_pubkey(String addr);

public static native String get_spent_outputs(String prev_tx, long input_index);
Expand Down
Binary file modified musig2/src/main/jniLibs/arm64-v8a/libmusig2_dll.so
Binary file not shown.
Binary file modified musig2/src/main/jniLibs/armeabi-v7a/libmusig2_dll.so
Binary file not shown.

0 comments on commit 44ddc10

Please sign in to comment.