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

Provide hex representation of message hash #2104

Open
vpavlin opened this issue Aug 22, 2024 · 0 comments
Open

Provide hex representation of message hash #2104

vpavlin opened this issue Aug 22, 2024 · 0 comments

Comments

@vpavlin
Copy link
Member

vpavlin commented Aug 22, 2024

This is a feature request

Problem

message-hash package currently provides the hash in a form of byte array or string, it would be useful if it also allowed to obtain the msg has in the form of hex (0x...) to match representation logged in other clients like nwaku

messageHashStr output :

��.t����������`j�ɷ���[��3z��.r�

Proposed Solutions

Provide messageHashHex method returning the hash like

0x9c632f9cfb98aea3801545ba899791592cd7c37240143777fab489443c777300

This will make it easier to identify messages accros clients

Notes

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