Skip to content

Non-backward compatible change to issuance message #3171

Closed

Description

@Jpja

This issuance was valid on Horizon (v11) but not on other explorers : tx_hash = 9adf03f0e989eb825a7b888148603fe3179aa49abb0d0cfe4a39f7e10ccc1b6a
Raw issuance message: 434e54525052545916871b**00ff0cb8ba130ed2**15f4f4f4605818706c61792077656e2073747566662069732066756e6e7920

This transaction is valid on v10 : tx_hash = b9ca52249eb0a2f11d2e9ae65edca6877c6af5c0447f4630eb73bc661fdcf927
Raw issuace message: 434e54525052545916**00ff0cb8ba130ed2**0000000000000015000000504c41592054485320434152442057454e2053484954532046554e4e5920414741494e

Right before the asset name (00ff0cb8ba130ed2 which translates to TOOFUNNYPEPE) there are two bytes 871b in the v11 version that are not present in v10.

  1. What are these bytes for?

  2. For non-backward compatible changes, a new massage ID should be used not to break things.

Activity

  1. ouziel-slama commented on May 28, 2025

    @ouziel-slama
    Member
    1. https://github.com/CounterpartyXCP/counterparty-core/blob/master/counterparty-core/counterpartycore/lib/messages/versions/enhancedsend.py#L178-L191
    2. There's no reason to change the ID. The old format is no longer supported once the new one is enabled.

    anyway the PR for v11 has been open for weeks, precisely for this kind of discussion. It's too late now.

  2. Jpja commented on May 28, 2025

    @Jpja
    Author
    1. Well, this only happened to TOOFUNNYPEPE, not other issuances, and before taproot enabled, right? It might be worth investigating if v11 introduces a BigInt bug. TOOFUNNYPEPE translates to an ID above the standard integer range. 99% of assets will not encounter this issue, only some 12 letter names do.

    2. This breaks all libraries that build txs locally, which is best practice for light wallets. It also means two characters less for the description if you want to fit a standard 80 byte op_return. This is a real concern when you want to fit a url or a hash.

  3. adamkrellenstein commented on May 28, 2025

    @adamkrellenstein
    Member

    This is not a bug with v11. The issue was that Horizon Market was accidentally pointed to a development node which was running a pre-release version of v11 that had for a short time already activated the protocol change which alters the encoding scheme.

    It's perfectly fine to discuss the trade-offs associated with feature development and protocol changes. However it is not okay to:

    1. Complain about changes that have been in discussion and development for months only after they have been implemented and released.
    2. Find a problem (in this case, Horizon Market pointed to the wrong node) and exploit it rather than reporting it responsibly.
  4. locked as resolved and limited conversation to collaborators on May 28, 2025
  5. adamkrellenstein commented on May 29, 2025

    @adamkrellenstein
    Member

    Okay so the real issue here is that client-side libraries need to change with this update. That's effectively a non–backwards compatible API change that wasn't discussed as part of v11 development. Opening this issue up to have that discussion: #3173

  6. unlocked this conversation on May 30, 2025
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