Skip to content

Suboptimal TXID calculation #8

@tevador

Description

@tevador

Some issues with the TXID calculation:

  1. Doesn't explain why the input key images are hashes twice. IMO it's sufficient to have them in the prefix, which would save 1 hash.
  2. The final hash hashes more than 128 bytes of data, which requires two calls to the Blake2b compression function. This has the same performance impact as one additional hash. Since 3 hashes take 96 bytes, the domain separation stuff could still fit into the remaining 32 bytes if it was less verbose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions