Skip to content

Script disassembly for short byte arrays is confusing #7996

Open

Description

@TheBlueMatt

ScriptToAsmString will convert any push shorter than 4 bytes to a number before display. This can lead to some confusion if you were expecting a hex-encoded blob as it does for longer-than-4-byte chunks. I'm not sure this is even documented anywhere.

Activity

  1. apoelstra commented on May 4, 2016

    @apoelstra
    Contributor

    This is stronger than just confusion -- for numbers between 10 000 000 and 2^32, it is ambiguous whether they are decimal numbers or hex-encoded data.

  2. laanwj commented on May 5, 2016

    @laanwj
    Member

    I think this has always been the case. It'd make some sense if at least the hexadecimal were clearly distinguishable from decimal values, for example with a prefix. But as @apoelstra already says this is now ambiguous.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions