DiFronzo / blockchair

💰 Go (golang) client for the blockchair.com API
https://blockchair.vfiles.no
MIT License
11 stars 9 forks source link

🚀 Feature: Validate cryptocurrency addresses thorugh an deterministic finite automaton #10

Open DiFronzo opened 3 years ago

DiFronzo commented 3 years ago

🔖 Feature description

To make sure the user is sending a valid address(es) for a specific cryptocurrency. There should be somthing that is fast for validating but also strict.

🎤 Pitch

A solution is to use either DFA or NFA. Because NFA could be kind of time-consuming, I think that DFA is the best option.

DFA for the following crypto (must also support multi-signature addresses):

That is enough to start with.

Q: How can I test that the DFA is working for X crypto? A: Use Database Dumps from Blockchair.

👀 Have you spent some time to check if this issue has been raised before?