-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQC-153: Support for verifyOwner
#320
Conversation
# Conflicts: # examples/angular/src/app/components/content/content.component.html # examples/angular/src/app/components/content/content.component.ts # examples/react/components/Content.tsx
signMessage
verifyOwner
verifyOwner
verifyOwner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Just one thing, in that Ledger is not supported currently; signing of messages other than transactions is not possible for the current ledger app.
@@ -219,6 +220,41 @@ const Ledger: WalletBehaviourFactory<HardwareWallet> = async ({ | |||
return getAccounts(); | |||
}, | |||
|
|||
async verifyOwner({ message = "verify owner", signerId, publicKey } = {}) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently the NEAR Ledger app can only sign valid transactions; it will not be able to sign any payload that is not a transaction -- so this is not implemented currently and should be throwing a 'Method not Supported' type error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, for the feedback. I will make the changes tomorrow when I start working.
@kujtimprenkuSQA Can you make the change to the ledger implementation to throw a method not implemented error before we try to connect to the ledger and request the public key from the device, and resolve the build check that started failing in 1a6e10f ? Once these are set I think this can be landed. |
# Conflicts: # packages/core/src/lib/wallet/wallet.types.ts
# Conflicts: # packages/core/src/lib/wallet/wallet.types.ts
When I merged with the dev there were some changes to |
Hey @MaximusHaximus I will be closing this PR because I was unable to quickly fix the build errors, I have copied all the code in new branch and addressed the requested changes in separate commits: #391 |
Description
verifyOwner
to all wallet integrations.Signer
interface when locked.signMessage
- presumably it has some logic that detects if themessage
is a Transaction and discards anything else?Note
This feature is only supported on MyNearWallet on testnet
Closes #318.
Checklist:
Type of change.