Repository navigation
rpc: doc: use "output script" terminology consistently in "asm"/"hex" results - #30408
Conversation
… results The wording "public key script" was likely chosen as a human-readable form of the technical term `scriptPubKey`, but it doesn't seem to be really widespread. Replace it by the more common term "output script" instead. Note that the argument for the `decodescript` RPC is not necessarily an output script (it could e.g. be also a redeem script), so in this case we just stay generic and use "script". See also the draft BIP "Terminology for Transaction Components" (https://github.com/murchandamus/bips/blob/2022-04-tx-terminology/bip-tx-terminology.mediawiki) which suggests to use "output script" as well. Affects the help text of the following RPCs: - decodepsbt - decoderawtransaction - decodescript - getblock (if verbosity=3) - getrawtransaction (if verbosity=2,3) - gettxout
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
ACK 29eafd5 |
| "address of P2SH script wrapping this redeem script (not returned for types that should not be wrapped)"}, | ||
| {RPCResult::Type::OBJ, "segwit", /*optional=*/true, | ||
| "Result of a witness script public key wrapping this redeem script (not returned for types that should not be wrapped)", | ||
| "Result of a witness output script wrapping this redeem script (not returned for types that should not be wrapped)", |
There was a problem hiding this comment.
nit:
witness program or output script seems like it might be more accurate than witness output script.
There was a problem hiding this comment.
witness programoroutput scriptseems like it might be more accurate thanwitness output script.
No. A witness program is different from the witness output script. The witness output script consists of both, the "version byte" and the "witness program". You can refer to BIP 141 for more details: https://en.bitcoin.it/wiki/BIP_0141#Witness_program
|
ACK 29eafd5 |
Looks like 3 RPCs were forgotten, so I created #30524 |
fa5755b doc: rpc: Use "output script" consistently (2/2) (MarcoFalke) Pull request description: Small follow-up to #30408 to fixup the RPCs that were forgotten. ACKs for top commit: theStack: lgtm ACK fa5755b Tree-SHA512: f1fc0aabb59017da216d6fe0f08a2274336d04db332ad6ce3d9608cd6f03667be1c76423f24a489ac8e7d536011a129dca752ab64b4621b7bc1d4d53f68602e4
The wording "public key script" was likely chosen as a human-readable form of the technical term
scriptPubKey, but it doesn't seem to be really widespread. Replace it by the more (probably most?) common term "output script" instead. Note that the argument for thedecodescriptRPC is not necessarily an output script (it could e.g. be also a redeem script), so in this case we just stay generic and use "script".See also the draft BIP "Terminology for Transaction Components" (https://github.com/murchandamus/bips/blob/2022-04-tx-terminology/bip-tx-terminology.mediawiki) from murchandamus which suggests to use "output script" as well.
Affects the help text of the following RPCs: