aeternity / aepp-sdk-js

JavaScript SDK for the æternity blockchain
http://docs.aeternity.com/aepp-sdk-js/
ISC License
120 stars 59 forks source link

Need documentation for message signing/verifying #1941

Open nikita-fuchs opened 9 months ago

nikita-fuchs commented 9 months ago

As partners want to implement SH wallet as a login mechanism, they need documentation for signing messages using the wallet and verifying the signatures. I guess the only thing necessary here are the proper sdk functions, whereas the wallet part should handle itself?

davidyuk commented 9 months ago

would be good to have a guide about message signing/verifying

I guess the only thing necessary here are the proper sdk functions, whereas the wallet part should handle itself?

yep, except for deep links, sdk doesn't define anything there yet

related issue https://github.com/superhero-com/superhero-wallet/issues/2688

Things should be mentioned there:

https://docs.aeternity.com/aepp-sdk-js/v13.2.2/api/classes/AccountBase.html#signMessage https://docs.aeternity.com/aepp-sdk-js/v13.2.2/api/functions/verifyMessage.html https://github.com/aeternity/aepp-sdk-js/blob/71da12b5df56b41f7317d1fb064e44e8ea118d6c/test/integration/contract.ts#L65-L103