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

Hex encoding message string breaks verification #5

Open
fusion44 opened this issue Sep 30, 2023 · 0 comments
Open

Hex encoding message string breaks verification #5

fusion44 opened this issue Sep 30, 2023 · 0 comments

Comments

@fusion44
Copy link

Encoding the message string in hexadecimal before passing it to the bip340 library results in failed verification. On the other hand, direct use of the bip340 library verifies messages successfully.

https://github.com/anasfik/nostr/blob/1ca24ce607d260917e6d06a5f4530c717985dc1d/lib/nostr/instance/keys/keys.dart#L171C1-L172C62.

In order to avoid unnecessary layers of abstraction, I suggest flattening the call stack.

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