musig.partial_sign
musig.partial_sign "txid" input_index Compute MuSig2 partial signature for an input using adaptor challenge e' = H(R' || Q || m). IMPORTANT: Uses R' (adaptor nonce) not R (base nonce) for challenge computation. Arguments: 1. txid (string, required) Transaction ID 2. input_index (numeric, required) Input index Result: { (json object) "partial_sig" : "hex" (string) Partial signature (32 bytes) } Examples: > bitcoin-cli musig.partial_sign "txid" 0
Signature
musig.partial_sign(txid: string, input_index: number) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"musig.partial_sign","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 |
Result
Type: any
{ (json object) "partial_sig" : "hex" (string) Partial signature (32 bytes) }
Source: services/core-node/bcore/src/wallet/rpc/musig_adaptors.cpp:219
C++ symbol: musig_partial_sign