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

Add new records for use in the application layer #48

Merged
merged 1 commit into from
Jun 30, 2024

Conversation

s2quake
Copy link
Owner

@s2quake s2quake commented Jun 30, 2024

When using the various types used in blockchain, it is often necessary to define additional methods in the application. Since each type is in the form of an external library, if it needs to define and use a new method, a static class should be used.
When using methods through this class, the static class must always be named, which increases the number of characters per line of code and reduces readability.
To improve this and make it more usable from an application perspective, I created an application-specific type as shown below.

  • PrivateKey -> AppPrivateKey
  • PublicKey -> AppPublicKey
  • Address -> AppAddress
  • EndPoint -> AppEndPoint
  • BoundPeer -> AppPeer

@s2quake s2quake force-pushed the refactor/record-in-app branch 2 times, most recently from 0407f0b to e601a35 Compare June 30, 2024 12:14
…y, address, end point, bound peer in application layer.
@s2quake s2quake force-pushed the refactor/record-in-app branch from e601a35 to 39a7998 Compare June 30, 2024 13:09
@s2quake s2quake marked this pull request as ready for review June 30, 2024 13:11
@s2quake s2quake merged commit b39e5a5 into main Jun 30, 2024
2 checks passed
@s2quake s2quake deleted the refactor/record-in-app branch June 30, 2024 13:14
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