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

Some questions regarding the API #9

Open
francoisthire opened this issue Sep 24, 2023 · 0 comments
Open

Some questions regarding the API #9

francoisthire opened this issue Sep 24, 2023 · 0 comments

Comments

@francoisthire
Copy link

I have some questions regarding the API:

  • The API exposes modules D, I, and ID with generic functions. It seems redundant. Why not just have generic functions?
  • Considering the lack of conversion functions from string to encoded or hash, it seems that modules D, I or ID seems not usable in practice.
  • For the generic functions, Why does the hash function return both a hash and an encoded datatype? It seems only the second one can be used with verify.
  • More generally, what are the differences between a hash and encoded? Why not just use one datatype?
  • I am wondering why the hash function takes an encoded_len argument. It seems that this value comes from the function encoded_len. Wouldn't be simpler to not expose encoded_len and let the function hash compute this length by itself?
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