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

Re-design Convert class and methods #270

Open
jiyoonie9 opened this issue Mar 20, 2024 · 0 comments
Open

Re-design Convert class and methods #270

jiyoonie9 opened this issue Mar 20, 2024 · 0 comments

Comments

@jiyoonie9
Copy link
Contributor

Right now it's pretty easy to miss passing in EncodingFormat.XYZ into Convert constructor, and get the wrong output.

An alternative could be:

could scrap the constructor and provide these as static methods
Convert.Base64Url()
Convert.Zbase32()
Convert.Base58Btc()
Convert.String()
Convert.ByteArray()

when in turn return a convert instance that you can call toWhatever() on
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