You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have some doubt about the use-case of 2 functions : account.verifyMessageHash() and account.verifyMessage().
I have been alerted by a user on Discord, who was lost on this subject.
For me, only people without the privKey have interest to use these functions.
But as they are not static methods, you need to create an account object to access to these functions. Create an account object needs the privKey.
It means that you need to have the privKey to access to functions useful for non privKey holders….
Expected behavior
ec.verify() function has sense, because it do not need a privKey.
My feeling is that these 2 functions should be shadowed in doc, because I see no practical use-case for DAPP devs.
Desktop (please complete the following information):
Browser & version : N/A
Node version N/A
Starknet.js version v4.17.1
Network N/A
The text was updated successfully, but these errors were encountered:
But as they are not static methods, you need to create an account object to access to these functions. Creating an account object needs the privKey.
It means that you need to have the privKey to access functions useful for non-privKey holders….
You can create an Account object with a custom implementation of the Signer, as so using secondary privKey.
But you also have a point there regarding usage, I do not know what use cases are there. @janek26@dhruvkelawala Are you guys using these is wallets or what is the use-case here ?
Describe the bug
I have some doubt about the use-case of 2 functions : account.verifyMessageHash() and account.verifyMessage().
I have been alerted by a user on Discord, who was lost on this subject.
For me, only people without the privKey have interest to use these functions.
But as they are not static methods, you need to create an account object to access to these functions. Create an account object needs the privKey.
It means that you need to have the privKey to access to functions useful for non privKey holders….
Expected behavior
ec.verify() function has sense, because it do not need a privKey.
My feeling is that these 2 functions should be shadowed in doc, because I see no practical use-case for DAPP devs.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: