diff --git a/musig2/src/main/java/com/chainx/musig2bitcoin/Mast.java b/musig2/src/main/java/com/chainx/musig2bitcoin/Mast.java index 1f583a0..23f4ec6 100644 --- a/musig2/src/main/java/com/chainx/musig2bitcoin/Mast.java +++ b/musig2/src/main/java/com/chainx/musig2bitcoin/Mast.java @@ -11,7 +11,7 @@ public class Mast { public static native String generate_control_block(String jarg1, long jarg2, String jarg3); - public static String generateThresholdPubkey(String[] pubkeys, byte threshold, String network) { + public static String generateThresholdAddress(String[] pubkeys, byte threshold, String network) { return generate_threshold_pubkey(TextUtils.join("", pubkeys).toString(), threshold, network); } diff --git a/musig2/src/main/java/com/chainx/musig2bitcoin/Transaction.java b/musig2/src/main/java/com/chainx/musig2bitcoin/Transaction.java index 9b15d83..73893cc 100644 --- a/musig2/src/main/java/com/chainx/musig2bitcoin/Transaction.java +++ b/musig2/src/main/java/com/chainx/musig2bitcoin/Transaction.java @@ -97,7 +97,7 @@ public static String generateSpentOutputs(String[] prev_txs, long[] indexs) { return spent_outputs; } - public static String generateBtcAddress(String pubkey, String network) { + public static String getMyAddress(String pubkey, String network) { return generate_btc_address(pubkey, network); } }