@nenicloud is on PowPing!

PowPing is a place where you can earn Bitcoin simply by socializing, for FREE.
Never tried Bitcoin? It's OK! Just come, socialize, and earn Bitcoin.
Check out nenicloud's activities

Build on Bitcoin

visit channel home
Total Economy: 0.16 USD
I am looking for some guidance on how to create a registration/login just like powping does using moneybutton for a webapp. I want first time users to have to set a username when they swipe moneybutton login for their first time. Then, swiping moneybutton in the future just logs the user in.@unwriter@satchmo Any info is appreciated.
glauce tipped:
I found a good, easy way to set up a basic log in using MoneyButton. ;)
Basically what you want to do is implement a challenge / response handshake. Login: - Visitor lands on the page. A request is made to the backend to get a "challenge" which can be any random string. The goal here is nobody could guess it ahead of time. - Frontend now has the challenge. Use moneyButton sign function to generate a signature from the visitor's wallet - Send the signature to the backlend. Server checks if the signature is valid for the user's public key against the given challenge message. You should be able to use the verify message function from bsv.js to validate it. - If this is the first time they logged in, you store a user record with their public moneybutton id so you can associate future logins to the user. Hope that helps some
mrz tipped:
glauce tipped:
nenicloud tipped:
nenicloud replied:
that helped along with some people on the atlantis slack workspace. Thanks@satchmo