Skip to content

refactor: remove RSA encryption from Binance travel rule#329

Merged
monsieurleberre merged 4 commits intodevfrom
chore/cleanup-travel-rule-encryption-useless-implementation
Feb 17, 2026
Merged

refactor: remove RSA encryption from Binance travel rule#329
monsieurleberre merged 4 commits intodevfrom
chore/cleanup-travel-rule-encryption-useless-implementation

Conversation

@monsieurleberre
Copy link
Copy Markdown
Contributor

Summary

Remove the speculative RSA encryption layer from Binance travel rule PII data. Binance requires plain-text PII, so the encryption service, cached public key, and encrypted payload construction were unnecessary complexity.

Changes

  • Delete IRsaEncryptionService, RsaEncryptionService, and RsaEncryptionServiceTests
  • Simplify BinanceTravelRuleService to use plain-text values for both withdrawal and deposit
  • Remove beneficiaryVASP section and IExchange_accountsClient dependency
  • Remove duplicate integration tests now covered by unit tests
  • Add skipped integration test placeholder for manual Binance withdrawal testing

Testing

  • Unit tests: 47 passed, 1 skipped, 0 failed
  • Build: 0 warnings, 0 errors

@monsieurleberre
Copy link
Copy Markdown
Contributor Author

@claude please review this PR. Focus on:

  • Code quality and best practices
  • Potential bugs or edge cases
  • Performance considerations
  • Security implications if applicable

@monsieurleberre
Copy link
Copy Markdown
Contributor Author

plot twist!!

image

@monsieurleberre monsieurleberre merged commit 79787da into dev Feb 17, 2026
6 checks passed
@monsieurleberre monsieurleberre deleted the chore/cleanup-travel-rule-encryption-useless-implementation branch February 17, 2026 16:37
monsieurleberre added a commit that referenced this pull request Feb 18, 2026
* Add Binance Travel Rule support with PII encryption (#328)

This is sub production level, OK, and breaking the build, but this is just a trace, and next commit will remove all the 💩

* refactor: remove RSA encryption from Binance travel rule (#329)

* refactor: remove RSA encryption from Binance travel rule

* Unbreak the build 🤞

* OK this time we fix the build 🙈

* revert ExchangeAccountsClientTests to 5cddfcf

* Chore/just put the encryption back the fun never ends (#331)

* add Binance Travel Rule support with PII encryption

* refactor: remove beneficiaryVASP and consolidate travel rule tests

* Sorry I missed this
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