-
Notifications
You must be signed in to change notification settings - Fork 124
Add functions that let you sign offchain message envelopes #984
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 functions that let you sign offchain message envelopes #984
Conversation
🦋 Changeset detectedLatest commit: a9a8c4f The changes in this PR will be included in the next version bump. This PR includes changesets to release 42 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
BundleMonFiles updated (4)
Unchanged files (129)
Total files change +1.32KB +0.35% Final result: ✅ View report in BundleMon website ➡️ |
|
Documentation Preview: https://kit-docs-8jlkfjxq9-anza-tech.vercel.app |
d55bac1 to
a484c1a
Compare
fea355e to
20a5a3c
Compare
a484c1a to
a1ea049
Compare
|
Added code that verifies the message starts with the signing domain before signing it. |
a1ea049 to
0b93aa0
Compare
5ef6547 to
c543d03
Compare
0b93aa0 to
ed801e2
Compare
c543d03 to
9fbcb37
Compare
869ed66 to
5c5dca7
Compare
489ce4d to
fd499f3
Compare
4a7997a to
a7dba9f
Compare
fd499f3 to
c3058bb
Compare
| function uint8ArraysEqual(arr1: ReadonlyUint8Array, arr2: ReadonlyUint8Array) { | ||
| return arr1.length === arr2.length && arr1.every((value, index) => value === arr2[index]); | ||
| } |
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.
This would be a nice one to add next to containsBytes as equalBytes or something on @solana/codecs-core.
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.
Agree with this - we have this copied in a few places now.
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.
a7dba9f to
929898e
Compare
dacb5f4 to
e8781ec
Compare
7de741a to
de31b52
Compare
e8781ec to
d8b4eb4
Compare
de31b52 to
0fc610e
Compare
12f263f to
bb721da
Compare
0fc610e to
cab36be
Compare
cab36be to
0c9fd99
Compare
0cc9210 to
533e9a4
Compare
0c9fd99 to
86bb124
Compare
533e9a4 to
e86203c
Compare
86bb124 to
330a70f
Compare
e86203c to
ccbaf1e
Compare
330a70f to
06766b6
Compare
ccbaf1e to
b02e5c9
Compare
06766b6 to
23a561d
Compare
Merge activity
|
b02e5c9 to
a9a8c4f
Compare

This PR introduces
partiallySignOffchainMessageEnvelope andsignOffchainMessageEnvelope methods that you can use to sign an offchain message using aCryptoKey.See the next PR in this stack for the implementation of the Signers API.