Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brainstorm design of Address #36

Open
andreibancioiu opened this issue Dec 15, 2023 · 0 comments
Open

Brainstorm design of Address #36

andreibancioiu opened this issue Dec 15, 2023 · 0 comments
Assignees

Comments

@andreibancioiu
Copy link
Contributor

andreibancioiu commented Dec 15, 2023

Possibly define Address as a basic holder of the public key. Then, hold the creation, formatting and transformation logic into a separate component, e.g. AddressComputer, AddressFormatter or something similar. This allows the code that operates with addresses (basically, references of on-chain accounts) to be agnostic of address representation strategies.

That is, the code that operates with addresses should be concerned as little as possible with the different possible ways of formatting one.

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

No branches or pull requests

1 participant