Skip to content

Conversation

@mohd-kashif
Copy link
Contributor

@mohd-kashif mohd-kashif commented Jan 22, 2026

  • Added sortAddressesByHex and sortAddressBuffersByHex utility functions to sort addresses lexicographically by byte value.
  • Updated AtomicTransactionBuilder to sort UTXO addresses before computing addressesIndex, ensuring alignment with on-chain storage order.
  • Introduced computeAddressesIndexFromParsed method for consistent address indexing when parsing existing transactions.
  • Removed redundant computeAddressesIndexFromParsed methods from ExportInPTxBuilder and ImportInCTxBuilder.
  • Added unit tests to verify address sorting functionality and its impact on transaction building for both ExportInP and ImportInC transactions.

@mohd-kashif mohd-kashif self-assigned this Jan 22, 2026
@mohd-kashif mohd-kashif marked this pull request as ready for review January 22, 2026 17:20
@mohd-kashif mohd-kashif requested a review from a team as a code owner January 22, 2026 17:20
@mohd-kashif mohd-kashif merged commit a8e7402 into master Jan 22, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants