worldwide-asset-exchange / waxjs

Javascript API for integration with the WAX Cloud Wallet.
MIT License
126 stars 103 forks source link

How to verify account ownership? #102

Closed ismyhc closed 1 year ago

ismyhc commented 2 years ago

Is there a way to verify a users ownership of wax account via WaxJS? I need to be able to verify from the backend. Having the client pass to me simply an account name is not sufficient.

I can do this with anchor via their IdentityProof after initiating a login, or with eosjs by asking the user to sign an arbitrary message and verifying that. I haven't seen a way to do something like this via WaxJS.

Could someone point me in the write direction? It would be preferable to be able to do this without pushing a transaction on chain.

Any help much appreciated :)

kinsen commented 2 years ago

hi @ismyhc , did you find a solution?

ismyhc commented 1 year ago

hi @ismyhc , did you find a solution?

Unfortunately on solution found...

niksad8 commented 1 year ago

we dont have this right now but we are planning to implement something like this soon

niksad8 commented 1 year ago

there are two new functions in waxjs added for account verification one, is wax.waxProof(nonce) and the other is wax.userAccountProof(nonce)