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

Testnet-prefix A2 is wrongly considered invalid #7

Open
fullmetalScience opened this issue Dec 31, 2019 · 2 comments
Open

Testnet-prefix A2 is wrongly considered invalid #7

fullmetalScience opened this issue Dec 31, 2019 · 2 comments

Comments

@fullmetalScience
Copy link

fullmetalScience commented Dec 31, 2019

A2.. is a valid prefix. I don't know if this error is specific to this combination. Could it be that others are falsely considered invalid too?

@fullmetalScience
Copy link
Author

Mainnet 4C.. is considered invalid as well. What method is employed to determine valid vs invalid addresses?

@Equim-chan
Copy link
Owner

What method is employed to determine valid vs invalid addresses?

https://github.com/monero-ecosystem/vanity-monero/blob/master/vanity.go#L34

The check goes through length check, base58 check and elliptic curve property check. The last one simply checks if the prefix can fit in [MinKey, MaxKey].

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