perawallet / connect

JavaScript SDK for integrating Pera Wallet to web applications.
https://perawallet.app
Other
64 stars 20 forks source link

QQ: signing arbitrary data #42

Closed nikitaeverywhere closed 12 months ago

nikitaeverywhere commented 2 years ago

Hello! Today I came across the fact that not all Algorand wallets (Pera included) support signing arbitrary (or structured) data.

In our application it is very critical to verify the ownership of the address without sending the transactions to the chain. Is there any way we can do it in Pera?

For instance, MyAlgo supports signing custom data.

Thanks!

nikitaeverywhere commented 2 years ago

I think the problem that signing standard exists, but it's not implemented in Pera Wallet. Hence I believe I asked about it in the right place.

adshodgson commented 1 year ago

@ZitRos Did you ever find a work around to this?

nikitaeverywhere commented 1 year ago

Nope. That's the question for the Pera Wallet team, they can implement it, but they don't do it.

CC @mucahit can you try bringing anyone relevant to this discussion? Or should I open it somewhere else?

yasincaliskan commented 1 year ago

Hello @nikitaeverywhere , Pera Wallet can now sign arbitrary data on Android and iOS. Did you have a chance to check?

nikitaeverywhere commented 1 year ago

Hello @yasincaliskan! Happy to hear it finally landed. By the time we finished that project, so I doubt I can test it now. However I can give some feedback on the API if you share one.

yasincaliskan commented 12 months ago

We added an example to the README file. You can also test it on the demo app. Please check it out https://github.com/perawallet/pera-demo-dapp @nikitaeverywhere

nikitaeverywhere commented 12 months ago

Readme looks good - thanks. I will close the issue now.

From the dApp side, make sure there's a meaningful way to detect whether older Pera version support signing.