Commit 005026c
feat(lazer/sui): verify signatures against trusted signers (#2982)
* feat(lazer/sui): specify version
* feat(lazer-sui): add state module with trusted signer storage and tests
Co-Authored-By: Tejas Badadare <[email protected]>
* fix
Co-Authored-By: Tejas Badadare <[email protected]>
* fix(sui-lazer): finalize state module with trusted signer management and tests; verified with Sui CLI 1.53.2
Co-Authored-By: Tejas Badadare <[email protected]>
* chore(sui-lazer): remove warnings in state module; clean build on Sui CLI 1.53.2
Co-Authored-By: Tejas Badadare <[email protected]>
* feat(lazer/sui): add trusted signer state
* feat(lazer/sui): add package init and AdminCapability; share State and gate updates with admin cap
Co-Authored-By: Tejas Badadare <[email protected]>
* comments
* resolve warnings
* feat(sui-lazer): add admin-gated entry to update trusted signer via AdminCapability
Co-Authored-By: Tejas Badadare <[email protected]>
* Revert "feat(sui-lazer): add admin-gated entry to update trusted signer via AdminCapability"
This reverts commit 187f0e9.
* naming, make update_trusted_signer public
* feat(sui-lazer): use OTW for AdminCap in admin::init; add OTW to pyth_lazer::init; share State; add OTW doc comments
Co-Authored-By: Tejas Badadare <[email protected]>
* lint
* doc
* feat(lazer/sui): verify against trusted signers
* docs, clean up
* remove unneeded otw type check
* lint
* max verify_le_ecdsa_message package private
* fix imports
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>1 parent 3aed1cc commit 005026c
File tree
4 files changed
+282
-89
lines changed- lazer/contracts/sui
- sources
- tests
4 files changed
+282
-89
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | | - | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
6 | 4 | | |
7 | | - | |
8 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
19 | | - | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
34 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
35 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
36 | 77 | | |
37 | 78 | | |
38 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
39 | 89 | | |
40 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
41 | 94 | | |
42 | 95 | | |
43 | 96 | | |
| |||
55 | 108 | | |
56 | 109 | | |
57 | 110 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 111 | | |
66 | 112 | | |
67 | 113 | | |
68 | 114 | | |
69 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
70 | 120 | | |
71 | 121 | | |
72 | 122 | | |
| |||
97 | 147 | | |
98 | 148 | | |
99 | 149 | | |
100 | | - | |
| 150 | + | |
101 | 151 | | |
102 | 152 | | |
103 | 153 | | |
| |||
116 | 166 | | |
117 | 167 | | |
118 | 168 | | |
119 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
120 | 172 | | |
121 | 173 | | |
122 | 174 | | |
123 | 175 | | |
124 | 176 | | |
125 | 177 | | |
126 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
127 | 181 | | |
128 | 182 | | |
129 | 183 | | |
| |||
162 | 216 | | |
163 | 217 | | |
164 | 218 | | |
165 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
166 | 222 | | |
167 | 223 | | |
168 | 224 | | |
169 | 225 | | |
170 | 226 | | |
171 | 227 | | |
172 | | - | |
| 228 | + | |
173 | 229 | | |
174 | 230 | | |
175 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
21 | | - | |
| 19 | + | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
40 | | - | |
| 38 | + | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
| |||
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
55 | | - | |
| 53 | + | |
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
| |||
80 | 78 | | |
81 | 79 | | |
82 | 80 | | |
83 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
88 | | - | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
104 | 112 | | |
105 | 113 | | |
106 | 114 | | |
107 | 115 | | |
108 | 116 | | |
109 | 117 | | |
110 | | - | |
| 118 | + | |
111 | 119 | | |
112 | 120 | | |
113 | 121 | | |
| |||
117 | 125 | | |
118 | 126 | | |
119 | 127 | | |
120 | | - | |
| 128 | + | |
121 | 129 | | |
122 | 130 | | |
123 | 131 | | |
| |||
133 | 141 | | |
134 | 142 | | |
135 | 143 | | |
136 | | - | |
| 144 | + | |
137 | 145 | | |
138 | 146 | | |
139 | 147 | | |
140 | 148 | | |
141 | 149 | | |
142 | | - | |
| 150 | + | |
143 | 151 | | |
144 | 152 | | |
145 | 153 | | |
| |||
162 | 170 | | |
163 | 171 | | |
164 | 172 | | |
165 | | - | |
| 173 | + | |
166 | 174 | | |
167 | 175 | | |
168 | 176 | | |
169 | 177 | | |
170 | 178 | | |
171 | | - | |
| 179 | + | |
172 | 180 | | |
173 | 181 | | |
174 | 182 | | |
| |||
204 | 212 | | |
205 | 213 | | |
206 | 214 | | |
207 | | - | |
| 215 | + | |
208 | 216 | | |
209 | 217 | | |
210 | 218 | | |
| |||
0 commit comments