Issue Details

Number
27795
Title
Remove Ambiguity of Script ASM Hex and Decimal Integer Representations
Description
### Please describe the feature you'd like to see added. Distinguish between decimal and hex integers in the script ASM to avoid ambiguity. Hex integers/data can be prefixed with `0x` to avoid ambiguity. ### Is your feature related to a problem, if so please describe it. When scripts are decoded into ASM, two different integers can be displayed identically, with one as hex and the other as decimal. `decodescript 0511121314150457c74942` produces ASM of `1112131415 1112131415` , despite the integers being different. There is no distinction between hex and decimal. ### Describe the solution you'd like Prefixing `0x` makes the most sense to me. ### Describe any alternatives you've considered All data could be provided as hex, or "d" could be added to decimals. Removing ambiguity is the primary concern here. ### Please leave any additional context _No response_
URL
https://github.com/bitcoin/bitcoin/issue/27795
Closed by
#28824
Back to List