diff --git a/Sources/Musig2Bitcoin.xcframework/Info.plist b/Sources/Musig2Bitcoin.xcframework/Info.plist index 1e14bca..dc889f8 100644 --- a/Sources/Musig2Bitcoin.xcframework/Info.plist +++ b/Sources/Musig2Bitcoin.xcframework/Info.plist @@ -6,29 +6,29 @@ LibraryIdentifier - ios-x86_64-simulator + ios-arm64 LibraryPath Musig2Bitcoin.framework SupportedArchitectures - x86_64 + arm64 SupportedPlatform ios - SupportedPlatformVariant - simulator LibraryIdentifier - ios-arm64 + ios-x86_64-simulator LibraryPath Musig2Bitcoin.framework SupportedArchitectures - arm64 + x86_64 SupportedPlatform ios + SupportedPlatformVariant + simulator CFBundlePackageType diff --git a/Sources/Musig2Bitcoin.xcframework/ios-arm64/Musig2Bitcoin.framework/Headers/Musig2Bitcoin.h b/Sources/Musig2Bitcoin.xcframework/ios-arm64/Musig2Bitcoin.framework/Headers/Musig2Bitcoin.h index 691b558..7bcfd9b 100644 --- a/Sources/Musig2Bitcoin.xcframework/ios-arm64/Musig2Bitcoin.framework/Headers/Musig2Bitcoin.h +++ b/Sources/Musig2Bitcoin.xcframework/ios-arm64/Musig2Bitcoin.framework/Headers/Musig2Bitcoin.h @@ -2,7 +2,7 @@ // Musig2Bitcoin.h // Musig2Bitcoin // -// Created by daiwei on 2021/12/1. +// Created by daiwei on 2021/12/3. // #import diff --git a/Sources/Musig2Bitcoin.xcframework/ios-arm64/Musig2Bitcoin.framework/Headers/Musig2Header.h b/Sources/Musig2Bitcoin.xcframework/ios-arm64/Musig2Bitcoin.framework/Headers/Musig2Header.h index 5cbdcc5..be5c03c 100644 --- a/Sources/Musig2Bitcoin.xcframework/ios-arm64/Musig2Bitcoin.framework/Headers/Musig2Header.h +++ b/Sources/Musig2Bitcoin.xcframework/ios-arm64/Musig2Bitcoin.framework/Headers/Musig2Header.h @@ -34,14 +34,14 @@ char *generate_threshold_pubkey(const char *pubkeys, uint8_t threshold); char *generate_control_block(const char *pubkeys, uint8_t threshold, const char *agg_pubkey); -char *get_base_tx(const char *txid, uint32_t index); +char *get_base_tx(const char *prev_tx, const char *txid, uint32_t index); -char *add_input(const char *base_tx, const char *txid, uint32_t index); +char *add_input(const char *base_tx, const char *prev_tx, const char *txid, uint32_t index); char *add_output(const char *base_tx, const char *address, uint64_t amount); -char *get_sighash(const char *prev_tx, - const char *tx, +char *get_sighash(const char *base_tx, + const char *txid, uint32_t input_index, const char *agg_pubkey, uint32_t sigversion); diff --git a/Sources/Musig2Bitcoin.xcframework/ios-arm64/Musig2Bitcoin.framework/Modules/Musig2Bitcoin.swiftmodule/arm64-apple-ios.swiftinterface b/Sources/Musig2Bitcoin.xcframework/ios-arm64/Musig2Bitcoin.framework/Modules/Musig2Bitcoin.swiftmodule/arm64-apple-ios.swiftinterface index 5c89764..0d2c637 100644 --- a/Sources/Musig2Bitcoin.xcframework/ios-arm64/Musig2Bitcoin.framework/Modules/Musig2Bitcoin.swiftmodule/arm64-apple-ios.swiftinterface +++ b/Sources/Musig2Bitcoin.xcframework/ios-arm64/Musig2Bitcoin.framework/Modules/Musig2Bitcoin.swiftmodule/arm64-apple-ios.swiftinterface @@ -19,8 +19,8 @@ public func generateThresholdPubkey(pubkeys: [Swift.String], threshold: Swift.UI public func generateControlBlock(pubkeys: [Swift.String], threshold: Swift.UInt8, agg_pubkey: Swift.String) -> Swift.String public func generateSchnorrSignature(message: Swift.String, privkey: Swift.String) -> Swift.String public func getScriptPubkey(addr: Swift.String) -> Swift.String -public func generateRawTx(txids: [Swift.String], input_indexs: [Swift.UInt32], addresses: [Swift.String], amounts: [Swift.UInt64]) -> Swift.String -public func getSighash(prev_tx: Swift.String, tx: Swift.String, input_index: Swift.UInt32, agg_pubkey: Swift.String, sigversion: Swift.UInt32) -> Swift.String +public func generateRawTx(pre_txs: [Swift.String], txids: [Swift.String], input_indexs: [Swift.UInt32], addresses: [Swift.String], amounts: [Swift.UInt64]) -> Swift.String +public func getSighash(base_tx: Swift.String, txid: Swift.String, input_index: Swift.UInt32, agg_pubkey: Swift.String, sigversion: Swift.UInt32) -> Swift.String public func buildThresholdTx(tx: Swift.String, agg_signature: Swift.String, agg_pubkey: Swift.String, control: Swift.String, txid: Swift.String, input_index: Swift.UInt32) -> Swift.String public func buildTaprootTx(tx: Swift.String, signature: Swift.String, txid: Swift.String, input_index: Swift.UInt32) -> Swift.String public func generateSpentOutputs(prev_txs: [Swift.String], input_indexs: [Swift.UInt32]) -> Swift.String diff --git a/Sources/Musig2Bitcoin.xcframework/ios-arm64/Musig2Bitcoin.framework/Modules/Musig2Bitcoin.swiftmodule/arm64.swiftinterface b/Sources/Musig2Bitcoin.xcframework/ios-arm64/Musig2Bitcoin.framework/Modules/Musig2Bitcoin.swiftmodule/arm64.swiftinterface index 5c89764..0d2c637 100644 --- a/Sources/Musig2Bitcoin.xcframework/ios-arm64/Musig2Bitcoin.framework/Modules/Musig2Bitcoin.swiftmodule/arm64.swiftinterface +++ b/Sources/Musig2Bitcoin.xcframework/ios-arm64/Musig2Bitcoin.framework/Modules/Musig2Bitcoin.swiftmodule/arm64.swiftinterface @@ -19,8 +19,8 @@ public func generateThresholdPubkey(pubkeys: [Swift.String], threshold: Swift.UI public func generateControlBlock(pubkeys: [Swift.String], threshold: Swift.UInt8, agg_pubkey: Swift.String) -> Swift.String public func generateSchnorrSignature(message: Swift.String, privkey: Swift.String) -> Swift.String public func getScriptPubkey(addr: Swift.String) -> Swift.String -public func generateRawTx(txids: [Swift.String], input_indexs: [Swift.UInt32], addresses: [Swift.String], amounts: [Swift.UInt64]) -> Swift.String -public func getSighash(prev_tx: Swift.String, tx: Swift.String, input_index: Swift.UInt32, agg_pubkey: Swift.String, sigversion: Swift.UInt32) -> Swift.String +public func generateRawTx(pre_txs: [Swift.String], txids: [Swift.String], input_indexs: [Swift.UInt32], addresses: [Swift.String], amounts: [Swift.UInt64]) -> Swift.String +public func getSighash(base_tx: Swift.String, txid: Swift.String, input_index: Swift.UInt32, agg_pubkey: Swift.String, sigversion: Swift.UInt32) -> Swift.String public func buildThresholdTx(tx: Swift.String, agg_signature: Swift.String, agg_pubkey: Swift.String, control: Swift.String, txid: Swift.String, input_index: Swift.UInt32) -> Swift.String public func buildTaprootTx(tx: Swift.String, signature: Swift.String, txid: Swift.String, input_index: Swift.UInt32) -> Swift.String public func generateSpentOutputs(prev_txs: [Swift.String], input_indexs: [Swift.UInt32]) -> Swift.String diff --git a/Sources/Musig2Bitcoin.xcframework/ios-arm64/Musig2Bitcoin.framework/Musig2Bitcoin b/Sources/Musig2Bitcoin.xcframework/ios-arm64/Musig2Bitcoin.framework/Musig2Bitcoin index ee9d071..cf53640 100644 Binary files a/Sources/Musig2Bitcoin.xcframework/ios-arm64/Musig2Bitcoin.framework/Musig2Bitcoin and b/Sources/Musig2Bitcoin.xcframework/ios-arm64/Musig2Bitcoin.framework/Musig2Bitcoin differ diff --git a/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/Headers/Musig2Bitcoin.h b/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/Headers/Musig2Bitcoin.h index 691b558..7bcfd9b 100644 --- a/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/Headers/Musig2Bitcoin.h +++ b/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/Headers/Musig2Bitcoin.h @@ -2,7 +2,7 @@ // Musig2Bitcoin.h // Musig2Bitcoin // -// Created by daiwei on 2021/12/1. +// Created by daiwei on 2021/12/3. // #import diff --git a/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/Headers/Musig2Header.h b/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/Headers/Musig2Header.h index 5cbdcc5..be5c03c 100644 --- a/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/Headers/Musig2Header.h +++ b/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/Headers/Musig2Header.h @@ -34,14 +34,14 @@ char *generate_threshold_pubkey(const char *pubkeys, uint8_t threshold); char *generate_control_block(const char *pubkeys, uint8_t threshold, const char *agg_pubkey); -char *get_base_tx(const char *txid, uint32_t index); +char *get_base_tx(const char *prev_tx, const char *txid, uint32_t index); -char *add_input(const char *base_tx, const char *txid, uint32_t index); +char *add_input(const char *base_tx, const char *prev_tx, const char *txid, uint32_t index); char *add_output(const char *base_tx, const char *address, uint64_t amount); -char *get_sighash(const char *prev_tx, - const char *tx, +char *get_sighash(const char *base_tx, + const char *txid, uint32_t input_index, const char *agg_pubkey, uint32_t sigversion); diff --git a/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/Modules/Musig2Bitcoin.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/Modules/Musig2Bitcoin.swiftmodule/x86_64-apple-ios-simulator.swiftinterface index 2ca26e3..064e26c 100644 --- a/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/Modules/Musig2Bitcoin.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +++ b/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/Modules/Musig2Bitcoin.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -19,8 +19,8 @@ public func generateThresholdPubkey(pubkeys: [Swift.String], threshold: Swift.UI public func generateControlBlock(pubkeys: [Swift.String], threshold: Swift.UInt8, agg_pubkey: Swift.String) -> Swift.String public func generateSchnorrSignature(message: Swift.String, privkey: Swift.String) -> Swift.String public func getScriptPubkey(addr: Swift.String) -> Swift.String -public func generateRawTx(txids: [Swift.String], input_indexs: [Swift.UInt32], addresses: [Swift.String], amounts: [Swift.UInt64]) -> Swift.String -public func getSighash(prev_tx: Swift.String, tx: Swift.String, input_index: Swift.UInt32, agg_pubkey: Swift.String, sigversion: Swift.UInt32) -> Swift.String +public func generateRawTx(pre_txs: [Swift.String], txids: [Swift.String], input_indexs: [Swift.UInt32], addresses: [Swift.String], amounts: [Swift.UInt64]) -> Swift.String +public func getSighash(base_tx: Swift.String, txid: Swift.String, input_index: Swift.UInt32, agg_pubkey: Swift.String, sigversion: Swift.UInt32) -> Swift.String public func buildThresholdTx(tx: Swift.String, agg_signature: Swift.String, agg_pubkey: Swift.String, control: Swift.String, txid: Swift.String, input_index: Swift.UInt32) -> Swift.String public func buildTaprootTx(tx: Swift.String, signature: Swift.String, txid: Swift.String, input_index: Swift.UInt32) -> Swift.String public func generateSpentOutputs(prev_txs: [Swift.String], input_indexs: [Swift.UInt32]) -> Swift.String diff --git a/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/Modules/Musig2Bitcoin.swiftmodule/x86_64.swiftinterface b/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/Modules/Musig2Bitcoin.swiftmodule/x86_64.swiftinterface index 2ca26e3..064e26c 100644 --- a/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/Modules/Musig2Bitcoin.swiftmodule/x86_64.swiftinterface +++ b/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/Modules/Musig2Bitcoin.swiftmodule/x86_64.swiftinterface @@ -19,8 +19,8 @@ public func generateThresholdPubkey(pubkeys: [Swift.String], threshold: Swift.UI public func generateControlBlock(pubkeys: [Swift.String], threshold: Swift.UInt8, agg_pubkey: Swift.String) -> Swift.String public func generateSchnorrSignature(message: Swift.String, privkey: Swift.String) -> Swift.String public func getScriptPubkey(addr: Swift.String) -> Swift.String -public func generateRawTx(txids: [Swift.String], input_indexs: [Swift.UInt32], addresses: [Swift.String], amounts: [Swift.UInt64]) -> Swift.String -public func getSighash(prev_tx: Swift.String, tx: Swift.String, input_index: Swift.UInt32, agg_pubkey: Swift.String, sigversion: Swift.UInt32) -> Swift.String +public func generateRawTx(pre_txs: [Swift.String], txids: [Swift.String], input_indexs: [Swift.UInt32], addresses: [Swift.String], amounts: [Swift.UInt64]) -> Swift.String +public func getSighash(base_tx: Swift.String, txid: Swift.String, input_index: Swift.UInt32, agg_pubkey: Swift.String, sigversion: Swift.UInt32) -> Swift.String public func buildThresholdTx(tx: Swift.String, agg_signature: Swift.String, agg_pubkey: Swift.String, control: Swift.String, txid: Swift.String, input_index: Swift.UInt32) -> Swift.String public func buildTaprootTx(tx: Swift.String, signature: Swift.String, txid: Swift.String, input_index: Swift.UInt32) -> Swift.String public func generateSpentOutputs(prev_txs: [Swift.String], input_indexs: [Swift.UInt32]) -> Swift.String diff --git a/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/Musig2Bitcoin b/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/Musig2Bitcoin index caade3e..5778617 100644 Binary files a/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/Musig2Bitcoin and b/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/Musig2Bitcoin differ diff --git a/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/_CodeSignature/CodeDirectory b/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/_CodeSignature/CodeDirectory index 73ee0d4..7348e69 100644 Binary files a/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/_CodeSignature/CodeDirectory and b/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/_CodeSignature/CodeDirectory differ diff --git a/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/_CodeSignature/CodeRequirements-1 b/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/_CodeSignature/CodeRequirements-1 index d503e5d..85cad6f 100644 Binary files a/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/_CodeSignature/CodeRequirements-1 and b/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/_CodeSignature/CodeRequirements-1 differ diff --git a/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/_CodeSignature/CodeResources b/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/_CodeSignature/CodeResources index 72b1add..f711fd8 100644 --- a/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/_CodeSignature/CodeResources +++ b/Sources/Musig2Bitcoin.xcframework/ios-x86_64-simulator/Musig2Bitcoin.framework/_CodeSignature/CodeResources @@ -10,11 +10,11 @@ Headers/Musig2Bitcoin.h - f91lR9prUZ6H0iqsuuoYEDtK/nM= + 0S9tW5+zSOdngOFZoKklKy+pbjI= Headers/Musig2Header.h - bYhiFc42gXQ31Rtlmn561aIugN0= + UVQIS1uIr4woGvF4z1g7y6G9+hY= Info.plist @@ -26,11 +26,11 @@ Modules/Musig2Bitcoin.swiftmodule/x86_64-apple-ios-simulator.swiftinterface - Pn1iy8YmFkeQiGatvATWruwgkjQ= + 876PlavO3QXYU4I1i1aeogIYSdo= Modules/Musig2Bitcoin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule - dSNjpYmnuLi9p6IDHAfdSKDIya0= + DDFZHrfNDGKVCeDzKk4x/ipJaCY= Modules/Musig2Bitcoin.swiftmodule/x86_64.swiftdoc @@ -38,11 +38,11 @@ Modules/Musig2Bitcoin.swiftmodule/x86_64.swiftinterface - Pn1iy8YmFkeQiGatvATWruwgkjQ= + 876PlavO3QXYU4I1i1aeogIYSdo= Modules/Musig2Bitcoin.swiftmodule/x86_64.swiftmodule - dSNjpYmnuLi9p6IDHAfdSKDIya0= + DDFZHrfNDGKVCeDzKk4x/ipJaCY= Modules/module.modulemap @@ -66,22 +66,22 @@ hash - f91lR9prUZ6H0iqsuuoYEDtK/nM= + 0S9tW5+zSOdngOFZoKklKy+pbjI= hash2 - fg5dt4tP60n6lWfy7bspV+MlO1B7xZ1HszTgM42sgcQ= + 3r5QVUw3FXcfLpr2VbrrlQ2/tESpCf91/hYBtojdJ2Y= Headers/Musig2Header.h hash - bYhiFc42gXQ31Rtlmn561aIugN0= + UVQIS1uIr4woGvF4z1g7y6G9+hY= hash2 - V8QfwJOTrjBTw0wicyhIycVjlECkVeB0HD/qsq2na5U= + cezVUAtB450M+YxrlJ5iDiYYlUMfWkl0QOiK9oQTqfQ= Modules/Musig2Bitcoin.swiftmodule/x86_64-apple-ios-simulator.swiftdoc @@ -99,22 +99,22 @@ hash - Pn1iy8YmFkeQiGatvATWruwgkjQ= + 876PlavO3QXYU4I1i1aeogIYSdo= hash2 - 5FZVGLoAeLuJuC8LpAhK+CxeqjP7WiO4eV/q90ijmjs= + b1H2e4pn01UWjrphItuuxz51Lt3bjSE1NINzwP36zFM= Modules/Musig2Bitcoin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule hash - dSNjpYmnuLi9p6IDHAfdSKDIya0= + DDFZHrfNDGKVCeDzKk4x/ipJaCY= hash2 - 7TTTUzJkAnvkvUbAsX7Ehh0kf42csNER7u0Yvk8XX1o= + CSRY4iOTQAhFuQbJrMGl9KkY3wyBdOQ0ON8PGovSuZ8= Modules/Musig2Bitcoin.swiftmodule/x86_64.swiftdoc @@ -132,22 +132,22 @@ hash - Pn1iy8YmFkeQiGatvATWruwgkjQ= + 876PlavO3QXYU4I1i1aeogIYSdo= hash2 - 5FZVGLoAeLuJuC8LpAhK+CxeqjP7WiO4eV/q90ijmjs= + b1H2e4pn01UWjrphItuuxz51Lt3bjSE1NINzwP36zFM= Modules/Musig2Bitcoin.swiftmodule/x86_64.swiftmodule hash - dSNjpYmnuLi9p6IDHAfdSKDIya0= + DDFZHrfNDGKVCeDzKk4x/ipJaCY= hash2 - 7TTTUzJkAnvkvUbAsX7Ehh0kf42csNER7u0Yvk8XX1o= + CSRY4iOTQAhFuQbJrMGl9KkY3wyBdOQ0ON8PGovSuZ8= Modules/module.modulemap