onlydustxyz / starklings

An interactive tutorial to get you up and running with Starknet
309 stars 83 forks source link

Flask API: Register new user route #231

Open ExoMonk opened 2 years ago

ExoMonk commented 2 years ago

Create/update an endpoint under the starklings-backend/starklings-backend/route.py file to register a new user given a wallet address, a signature and inserting it to the MySQL Database (starklings_user) :

Make sure to check signature validity ( signature is a 2value-Array)

e.g: “[’1231341123’, ‘1313413434’]”

/registerUser
:param wallet_address
:param signature

return:
{
  'result': userData
}

Pull Request on feat/backend

ashutoshkrris commented 2 years ago

Hi @ExoMonk I'd like to work on this issue.