musig.partial_sig_agg
musig.partial_sig_agg "txid" input_index ["partial_sig",...] Aggregate MuSig2 partial signatures to create adaptor pre-signature s'. Arguments: 1. txid (string, required) Transaction ID 2. input_index (numeric, required) Input index 3. partial_sigs (json array, required) Array of partial signatures from all co-signers [ "partial_sig", (string, required) Partial signature (32-byte hex) ... ] Result: { (json object) "adaptor_presig" : "hex" (string) Aggregated adaptor pre-signature s' (32 bytes) } Examples: > bitcoin-cli musig.partial_sig_agg "txid" 0 '["partial1", "partial2"]'
Signature
musig.partial_sig_agg(txid: string, input_index: number, partial_sigs: array) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"musig.partial_sig_agg","params":["\"<txid>\"",0,[]]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| txid | string | yes | Transaction ID |
| input_index | number | yes | Input index |
| partial_sigs | any[] | yes | Array of partial signatures from all co-signers [ "partial_sig", (string, required) Partial signature (32-byte hex) ... ] |
Result
Type: any
{ (json object) "adaptor_presig" : "hex" (string) Aggregated adaptor pre-signature s' (32 bytes) }
Source: services/core-node/bcore/src/wallet/rpc/musig_adaptors.cpp:325
C++ symbol: musig_partial_sig_agg