-
Notifications
You must be signed in to change notification settings - Fork 332
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
How to Verify Address #31
Comments
Hey! If you create that transaction and the B address is wrong, nothing can be done. This is why you need to 100% sure that the B address is right before creating the transaction. Best |
Hi, |
To be safe (in real world), I think (i) the wallet can check the address is a valid code somehow or (ii) you can go to the blockchain explorer to find the address first ... it may be the wrong address but at least it cannot be invalid. As this is programming exercise here, I think my scheme would be:
http://localhost:3001/operator/e155df3a1bac05f88321b73931b48b54ea4300be9d1225e0b62638f537e5544/balance which returns
and for a valid address http://localhost:3001/operator/e155df3a1bac05f88321b73931b48b54ea4300be9d1225e0b62638f537e5544c/balance which will return this json response
and
... |
@demenvil @kwccoin IMO it's hard to implement that kind of verification if the generation of the address is based on a password. The resulting address could be anything generated anywhere, meaning that for a given password any random address can be created. Without centralizing the address creation (government, central authority or something like that), it's impossible to know if the destination address is valid and if it's from whom you think it is. (I'm not saying that is impossible to determine that, but this imply that a good change to the concept of naivecoin would need to happen). Coins like Bitcoin, Litecoin and so on use different ways to generate an address, and because of that, they can at least verify if the address is a valid bitcoin/litecoin address. Maybe we could change the way we generate the address by putting an additional The options that @kwccoin showed above are valid approaches to identify the possibility of the target address to be an existing one/real one, however, I think this could be used only as a warning and in the Do you agree? Best |
@conradoqg - I really like the idea of changing up the address generation. Support for prefixes would be a "nice to have" in the config for sure. |
As far as I know mostly every wallet/currency has the API-Methode validateaddress for right this purpose. Right? |
You have done a great work. Thank you!
I have a question ;
if a send some coin from a to b , if b address is wrong address how to Verify Address
The text was updated successfully, but these errors were encountered: