Constellation-Labs / constellation

:milky_way::satellite: Decentralized Application Integration Platform
Apache License 2.0
153 stars 40 forks source link

Improve transaction address validation to check if address conforms to the address generation logic #1511

Closed TheMMaciek closed 3 years ago

TheMMaciek commented 3 years ago

We want to add validation step for the transaction validation flow, that checks if the addresses (source and destination or destination only as source is being validated by comparing with address generated from Id - please check) conform to the generation logic hence if they appear to be correct addresses.

For the address creation logic see: KeyUtils.publicKeyToAddressString() function.