-
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
base: 09-10-helpers_for_encoding_and_decoding_offchain_messages
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 0cc9210 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 |
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
BundleMonFiles added (3)
Files updated (4)
Unchanged files (126)
Total files change +18.68KB +5.18% Final result: ✅ View report in BundleMon website ➡️ |
|
Documentation Preview: https://kit-docs-7rcd76eug-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
d105ffc to
5a6ab95
Compare
45c38a5 to
a298187
Compare
5a6ab95 to
312ffe5
Compare
a298187 to
71a7da4
Compare
312ffe5 to
438ef45
Compare
71a7da4 to
6871171
Compare
438ef45 to
16fa1d8
Compare
6871171 to
bf0cdef
Compare
16fa1d8 to
978e54e
Compare
bf0cdef to
8482bf9
Compare
978e54e to
d411f9b
Compare
8482bf9 to
f8e8d25
Compare
d411f9b to
f25c626
Compare
f8e8d25 to
ef37ad5
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
bb721da to
0cc9210
Compare

No description provided.