Skip to content

fix: align MuxedAccount decoding and C-address routing compliance#210

Merged
codeZe-us merged 1 commit intomainfrom
cleanup
Apr 1, 2026
Merged

fix: align MuxedAccount decoding and C-address routing compliance#210
codeZe-us merged 1 commit intomainfrom
cleanup

Conversation

@codeZe-us
Copy link
Copy Markdown
Contributor

This PR aligns the library's core implementations across TypeScript, Go, and Dart to strictly adhere to the normative specification and official SDK best practices. It refactors the TypeScript decodeMuxed function to directly utilize the official @stellar/stellar-sdk's MuxedAccount.fromAddress method, removing redundant manual bitwise operations while strictly preserving the required BigInt safety bounds to prevent precision loss. Additionally, it resolves a compliance gap in the TypeScript version of extractRouting by ensuring that Contract (C) addresses provided as destinations correctly throw an INVALID_DESTINATION error rather than a generic sender warning, fully mirroring the logic already present in the Dart and Go implementations. All cross-language test suites and validation vectors have been executed and pass flawlessly.

@codeZe-us codeZe-us merged commit 9c9ebee into main Apr 1, 2026
1 check 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.

1 participant