Commit 88e2b6a
committed
Add support for Ed25519 key generation
Fixes #6
Add support for Ed25519 key generation in the MPVSS implementation.
* **src/mpvss.rs**
- Import `ed25519_dalek` crate for Ed25519 key generation.
- Add `KeyAlgorithm` enum to represent key generation algorithms.
- Update `MPVSS` struct to include `key_algorithm` field.
- Add `generate_ed25519_keypair` function to generate Ed25519 key pairs.
- Update `generate_private_key` and `generate_public_key` functions to support both original and Ed25519 algorithms.
* **README.md**
- Update "Initialization" section to include Ed25519 key generation.
- Add a note about Ed25519 key generation in the "In the futures" section.
* **tests/mpvss_tests.rs**
- Add `test_ed25519_key_generation` function to verify Ed25519 key generation.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/AlexiaChen/mpvss-rs/issues/6?shareId=XXXX-XXXX-XXXX-XXXX).1 parent 98b8963 commit 88e2b6a
3 files changed
+62
-335
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
57 | 65 | | |
58 | 66 | | |
59 | 67 | | |
| |||
143 | 151 | | |
144 | 152 | | |
145 | 153 | | |
| 154 | + | |
| 155 | + | |
146 | 156 | | |
147 | 157 | | |
148 | 158 | | |
| |||
168 | 178 | | |
169 | 179 | | |
170 | 180 | | |
171 | | - | |
| 181 | + | |
0 commit comments