Commit 827feef
authored
- Remove validate_init_data module and ValidationKey
- Remove verify_init_data_hash from interop
- Remove dependencies: hmac-sha256, hex, base64, ed25519-dalek
- Update README to recommend init-data-rs for backend validation
- Delete validation tests
Validation must happen on the server with bot token.
Client-side SDK should not handle server responsibilities.
Recommend init-data-rs crate for backend validation.
1 parent 52719d2 commit 827feef
File tree
13 files changed
+155
-582
lines changed- demo/dist
- src
- core/interop
- utils
- webapp
- tests
13 files changed
+155
-582
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | 45 | | |
48 | | - | |
49 | | - | |
50 | 46 | | |
51 | 47 | | |
52 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
681 | | - | |
682 | | - | |
683 | | - | |
| 681 | + | |
684 | 682 | | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
690 | 686 | | |
691 | | - | |
692 | | - | |
693 | | - | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
694 | 693 | | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
705 | 698 | | |
706 | | - | |
707 | | - | |
| 699 | + | |
708 | 700 | | |
709 | 701 | | |
710 | 702 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | 259 | | |
264 | 260 | | |
265 | 261 | | |
266 | 262 | | |
267 | | - | |
268 | | - | |
| 263 | + | |
| 264 | + | |
269 | 265 | | |
270 | 266 | | |
271 | 267 | | |
272 | 268 | | |
273 | 269 | | |
274 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| |||
Binary file not shown.
0 commit comments