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

Library does not contain any code to correctly validate cashaddr with length greater than 160 #5

Open
Steve132 opened this issue May 16, 2018 · 6 comments

Comments

@Steve132
Copy link

As seen in the cashaddr spec, cashaddr is supposed to have the bottom 3 bits of the version byte be an indicator of the size of the address. This means that valid version bytes can be like, 0x04 (indicating a 320 bit hash, for example).

This means if someone tries to use your lib to parse avalid larger cashaddress with lower version bits set, the lib will silently and strangely fail.

@oskyk
Copy link
Owner

oskyk commented May 16, 2018

I have noticed that you for forked the repo do you plan to fix it yourself? (I would welcome the PR and help you if needed) or will you leave that to me?

@Steve132
Copy link
Author

Steve132 commented May 17, 2018 via email

@oskyk
Copy link
Owner

oskyk commented May 17, 2018

Put it in I will test it :)

@Steve132
Copy link
Author

#6

@oskyk
Copy link
Owner

oskyk commented May 23, 2018

can you provide me with some valid addresses longer than 160bit?

@Steve132
Copy link
Author

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

2 participants