-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Add off-chain messages support #27456
Conversation
08f123d
to
aa52c1c
Compare
edc8903
to
91473a9
Compare
just realizing i haven't finished addressing the final open issues in the spec. i'll try to wrap that up today |
53fbd75
to
2d8bbef
Compare
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.
Thanks for all the changes! I have a couple more thoughts, but getting close I think.
impl OffchainMessage { | ||
pub const SIGNING_DOMAIN: &'static [u8] = b"\xffsolana offchain"; | ||
// Header Length = Signing Domain (16) + Header Version (1) | ||
pub const HEADER_LEN: usize = Self::SIGNING_DOMAIN.len() + 1; |
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.
const_assert_eq!
here?
197c171
to
d29b2e8
Compare
d29b2e8
to
a240a94
Compare
a240a94
to
5f95b3e
Compare
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.
One super nitty nit. Otherwise, that's all from me! Thanks for the improvements on this
Problem
#21366
Summary of Changes
Adds signing of non-transaction messages with a Solana wallet. This feature can be used to authenticate users or provide proof of wallet ownership.
See Docs for more details.
In accordance with the Proposal.
Off-chain messages can be signed and verfied using Solana CLI and any of the supported wallets including Ledger. Latest firmware and Solana Ledger App v1.3.0 or higher is required for this feature to work.
Fixes #