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

test: document bech32 test vectors #730

Merged
merged 2 commits into from
Apr 5, 2019

Conversation

tynes
Copy link
Member

@tynes tynes commented Mar 15, 2019

Adds additional information about the bech32 test vectors.
Updated to document both the valid and invalid test cases.
Pulled from https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki

@codecov-io

This comment has been minimized.

@tynes tynes added the quick Can be fixed quickly, code change less than 10 lines label Mar 16, 2019
@braydonf
Copy link
Contributor

The valid test cases above this are also from the BIP173 specification test vectors. Also, for what it's worth, several of these vectors are also included in bstring at https://github.com/bcoin-org/bstring/blob/master/test/bech32-test.js

@tynes
Copy link
Member Author

tynes commented Mar 20, 2019

Updated to better document the fact that all of the test cases are taken from the test vectors in bip173.
Regarding the duplicate tests between bstring and bcoin, I think that its important to have the tests in bcoin as it has CI while bstring does not. I don't feel like those files will change much though

@braydonf braydonf merged commit 9a56851 into bcoin-org:master Apr 5, 2019
braydonf added a commit that referenced this pull request Apr 5, 2019
test: document bech32 test vectors
@braydonf braydonf added this to the 2.0.0 milestone Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
quick Can be fixed quickly, code change less than 10 lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants