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 a validate address function #1141

Open
thomas-senechal opened this issue Aug 30, 2023 · 2 comments
Open

Add a validate address function #1141

thomas-senechal opened this issue Aug 30, 2023 · 2 comments

Comments

@thomas-senechal
Copy link
Member

Context
We need a function that will check if an address is valid. This function must handle User and SC addresses.

This function will be especially useful for builders

User flow
Describe the user flow using user stories so the end result is super clear - PM

How to
List the step-by-step to get it do if needed - PM

Technical details
Give the technical insights so anyone in the team can tackle the tasks - Dev

QA testing
Does this task require some QA tests ?
If yes, explain how to validate it

@B-Naoufal
Copy link
Contributor

I already added one in station, check : pkg/dnshelper/dnshelper.go
'func IsValidAddress(addr string) bool'

@thomas-senechal
Copy link
Member Author

I already added one in station, check : pkg/dnshelper/dnshelper.go 'func IsValidAddress(addr string) bool'

This function does not handle User addresses and does not check for the length of the public key
That's why we can't just use it

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