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

client: implemented messaging signing. #171

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

ardevd
Copy link
Contributor

@ardevd ardevd commented Jan 14, 2024

added support for the main RPC implementation of message signing.

@guggero guggero linked an issue Jan 15, 2024 that may be closed by this pull request
Copy link
Member

@guggero guggero left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

lightning_client.go Outdated Show resolved Hide resolved
lightning_client.go Show resolved Hide resolved
lightning_client.go Outdated Show resolved Hide resolved
@ardevd ardevd force-pushed the feat-message-sign branch 2 times, most recently from e31e58d to 49a6e93 Compare January 15, 2024 08:33
@guggero guggero requested a review from bhandras January 15, 2024 08:36
Copy link
Member

@bhandras bhandras left a comment

Choose a reason for hiding this comment

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

I believe you need to update permissions.json to make the test pass.
Other than that LGTM 🎉

@ardevd
Copy link
Contributor Author

ardevd commented Jan 15, 2024

I believe you need to update permissions.json to make the test pass. Other than that LGTM 🎉

Not entirely sure what update is needed to permissions.json. Something like:

"/lnrpc.Lightning/Signmessage": {
            "permissions": [
                {
                    "entity": "onchain",
                    "action": "read"
                }
            ]
        },

?

@guggero
Copy link
Member

guggero commented Jan 15, 2024

Yes, that should be enough.

@ardevd
Copy link
Contributor Author

ardevd commented Jan 15, 2024

Actually, on further inspection, a similar block is already present in permissions.json.

"/lnrpc.Lightning/SignMessage": {
            "permissions": [
                {
                    "entity": "message",
                    "action": "write"
                }
            ]
        },

on line 563

@guggero
Copy link
Member

guggero commented Jan 15, 2024

Ah, I think you need to bump Line 15 in

.
Since a new permission is now being used by the lndclient.

added support for the main RPC implementation of message signing.
@ardevd ardevd force-pushed the feat-message-sign branch from 1e5f10a to 51ff079 Compare January 15, 2024 15:21
@guggero guggero merged commit 05065f4 into lightninglabs:master Jan 15, 2024
1 check passed
@ardevd ardevd deleted the feat-message-sign branch January 15, 2024 15:27
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.

No support for Main RPC message signing?
3 participants