Skip to content

numToVarInt uses big endian instead of little endian #2774

Closed

Description

@shesek

This only causes issues for values >= 0xfd that are represented using multiple bytes. I encountered it while serializing multisig transactions that has large scriptSig (it works fine with regular transactions, since they usually don't have >= 0xfd values).

I attempted to reverse it myself, but it didn't work well - seems like some parts of the code expects it to return big endian?

Activity

  1. sipa commented on Jun 18, 2013

    @sipa
    Member

    There is no numToVarInt anywhere in our code, as far as I can see. Are you sure you didn't want to file this with (a guess:) bitcoin-js?

  2. jgarzik commented on Jun 18, 2013

    @jgarzik
    Contributor

    Not this project

  3. shesek commented on Jun 18, 2013

    @shesek
    ContributorAuthor

    Oops! Indeed, I meant to file that in bitcoinjs. My bad, sorry :)

  4. locked as resolved and limited conversation to collaborators on Sep 8, 2021
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions