Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Flip locators endianness #296

@sr-gi

Description

@sr-gi

Currently we are constructing locators using the big-endian representation of the dispute txid, given data is always queried to bitcoind and that's the format used to display data.

However, transaction ids are internally represented as little-endian, so this may be an issue when trying to integrate with other software that, internally, represents sha256d hashes in the same way as bitcoind does.

Therefore, locators may be better computed using the internal endianness representation (i.e. little-endian).

PS: double-checked with @Roasbeef and lnd does compute hints using little-endian txids.

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