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

Add @BitcoinAddress validator #11

Open
1 of 2 tasks
jossmoff opened this issue Jul 1, 2023 · 0 comments
Open
1 of 2 tasks

Add @BitcoinAddress validator #11

jossmoff opened this issue Jul 1, 2023 · 0 comments
Labels
✨ enhancement New feature or request 🧵string Relates to string based bean validation
Milestone

Comments

@jossmoff
Copy link
Owner

jossmoff commented Jul 1, 2023

Search before asking

  • I had searched in the issues and found no similar issues.

Description

It would be useful for a @BitcoinAddress validator as we have no existing solution for this and Bitcoin is a relatively prominent item currently.

Solution

A regular expression for a bitcoin address can be seen here. We can implement the isValid method using this.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@jossmoff jossmoff added the ✨ enhancement New feature or request label Jul 1, 2023
@jossmoff jossmoff added this to the Version 1.0.0 milestone Jul 1, 2023
@jossmoff jossmoff added the 🧵string Relates to string based bean validation label Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request 🧵string Relates to string based bean validation
Projects
None yet
Development

No branches or pull requests

1 participant