Request for Tutorial on how to authorize wallet from standalone Unity Game

I have a game template in Unity that asks users to manually sign a message to prove ownership of their wallet. (I use this for counterparty which is token platform on Bitcoin).

For some reason no waves client allows you to manually sign a message (they should!). I created a thread in the developer category but it didn’t turn out how I wanted (was even called lazy in that thread). I can’t seem to figure out how to authorize with the web client and standalone through code.

There are over a million Unity Devs out there, lets make it easy for them to interact with Waves. I see Enjin coin and KIN advertising in the Asset store but those platforms suck compared to waves when it comes to Tokens ang gaming.

Thanks

1 Like

If I understood your use case correctly, You can use Waves Auth API as explained here:
https://docs.wavesplatform.com/en/waves-api-and-sdk/client-api/auth-api.html

or you can use Waves Keeper API(https://docs.wavesplatform.com/en/waves-api-and-sdk/waves-keeper-api.html)

Yes I’m confused about how to do that. I’ve been trying thats why i’m asking for a tutorial. How do I reference waves keeper when I’m not even using a browser… How do I get the redirect URL back into Unity after sending to the web api. This is what confuses me. If I had a simple manual address signing in the wallet without all the api stuff I could have a game running already while I figure out the rest.

  • How do I reference waves keeper when I’m not even using a browser?
    I think, you can’t do it, waves keeper is only available in the browser for now.

  • How do I get the redirect URL back into Unity after sending to the web api?
    I did not understand how you want to see it. You can use Waves SDK inside the unity, here is some examples.

I’ve checked it out thanks. But how does one prove ownership of a wallet with the gaming sdk. I do not want to deal with private keys etc.

You can use our npm package - https://github.com/wavesplatform/waves-crypto
or you can use just the Waves keeper in your browser