Skip to content
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

feat: Sign message #193

Merged
merged 10 commits into from
May 28, 2024
Merged

feat: Sign message #193

merged 10 commits into from
May 28, 2024

Conversation

zavodil
Copy link
Contributor

@zavodil zavodil commented May 16, 2024

This PR enables the use of the signMessage method from the wallet-selector. The user can sign a message with any of the connected wallets for further signature verification on a third-party authentication server.

Copy link

@frol frol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@evgenykuzyakov Looks good to me, but I don't know if the version update should be part of this PR or a separate effort and whether we should merge it into dev branch first

Copy link
Contributor

@evgenykuzyakov evgenykuzyakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a changelog

src/lib/vm/vm.js Outdated Show resolved Hide resolved
src/lib/vm/vm.js Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@evgenykuzyakov evgenykuzyakov changed the base branch from master to dev May 27, 2024 18:02
Copy link
Contributor

@evgenykuzyakov evgenykuzyakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased to dev

CHANGELOG.md Outdated
@@ -1,5 +1,16 @@
# Changelog

## 2.6.2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## 2.6.2
## Pending

src/lib/vm/vm.js Outdated
@@ -1612,6 +1612,21 @@ export default class VM {
};

const Near = {
signMessage: (...args) => {
if (args.length < 3) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add similar API to call, where if the only 1 argument is given and it's an object, then it passes it directly

@evgenykuzyakov evgenykuzyakov merged commit 257ded3 into NearSocial:dev May 28, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants