Unirep-Social icon indicating copy to clipboard operation
Unirep-Social copied to clipboard

Username duplicate determination

Open kittybest opened this issue 2 years ago • 4 comments

Describe the bug If a username is used by me before and I changed mine to another username, the previous username should be used by others or me again.

To Reproduce Steps to reproduce the behavior:

  1. create account A
  2. set username to kitty1
  3. set username to kitty2
  4. set username to kitty1 again
  5. should display error: username already exists

Expected behavior Reading the code in contract, should release username after changing it.

Screenshots image

kittybest avatar Jan 04 '23 10:01 kittybest

Won't fix due to sunsetting the project

ChialiT avatar Mar 02 '23 09:03 ChialiT

I have a different opinion, I think this problem still exists if we are still going to do social media kind of app.

kittybest avatar Mar 02 '23 18:03 kittybest

reopen issue for us to remind us how to build better in next one.

ChialiT avatar Mar 03 '23 01:03 ChialiT

I think this could be solved by letting user reveal the epoch key nonce. I will write it in v2 tests.

vivianjeng avatar Mar 03 '23 02:03 vivianjeng