Commit 21d556a
authored
Replace network id with key (#46)
* Update network key management to utilize raw public keys
- Refactored the key management system to transition from using derived network IDs to raw public keys for network identification, enhancing consistency and security in encryption processes.
- Updated method signatures across the `runar-ffi` and `runar-keys` modules to accept and handle public key byte arrays instead of string identifiers.
- Modified the `EnvelopeEncryptedData` structure to store the network public key directly, improving clarity in data handling.
- Adjusted tests and examples to reflect the new public key approach, ensuring comprehensive coverage and validation of key management workflows.
- Introduced new dependencies for cryptographic operations, enhancing the overall functionality and performance of the key management system.
* Refactor FFI key management tests and remove unused functions
- Updated the `linux_keystore_end_to_end_mobile_node_flow` test to simplify the conversion of raw parts to a vector, enhancing code clarity.
- Removed the unused `cstr_to_string` function, streamlining the codebase and improving maintainability.
- Ensured that the remaining tests reflect the latest changes in key management functionalities, maintaining comprehensive coverage.1 parent db870b7 commit 21d556a
File tree
30 files changed
+936
-403
lines changed- runar-cli/tests
- runar-ffi
- include
- src
- tests
- runar-keys
- src
- tests
- runar-nodejs-api
- src
- tests
- runar-node/src
- services
- runar-serializer/tests
- runar-test-utils/src
- runar-transport-tests
- src
- rust-examples
30 files changed
+936
-403
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 | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | | - | |
| 118 | + | |
| 119 | + | |
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
125 | | - | |
| 127 | + | |
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
129 | | - | |
| 131 | + | |
| 132 | + | |
130 | 133 | | |
131 | 134 | | |
132 | 135 | | |
133 | 136 | | |
134 | | - | |
| 137 | + | |
135 | 138 | | |
136 | 139 | | |
137 | 140 | | |
| |||
326 | 329 | | |
327 | 330 | | |
328 | 331 | | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
329 | 336 | | |
330 | | - | |
| 337 | + | |
331 | 338 | | |
332 | 339 | | |
333 | 340 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
182 | | - | |
| 183 | + | |
| 184 | + | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
| |||
248 | 250 | | |
249 | 251 | | |
250 | 252 | | |
251 | | - | |
| 253 | + | |
| 254 | + | |
252 | 255 | | |
253 | 256 | | |
254 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1571 | 1571 | | |
1572 | 1572 | | |
1573 | 1573 | | |
1574 | | - | |
| 1574 | + | |
1575 | 1575 | | |
1576 | 1576 | | |
1577 | 1577 | | |
| |||
1580 | 1580 | | |
1581 | 1581 | | |
1582 | 1582 | | |
1583 | | - | |
1584 | | - | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
1585 | 1589 | | |
1586 | 1590 | | |
1587 | 1591 | | |
| |||
1610 | 1614 | | |
1611 | 1615 | | |
1612 | 1616 | | |
1613 | | - | |
1614 | | - | |
| 1617 | + | |
| 1618 | + | |
1615 | 1619 | | |
1616 | 1620 | | |
1617 | 1621 | | |
| |||
1632 | 1636 | | |
1633 | 1637 | | |
1634 | 1638 | | |
1635 | | - | |
| 1639 | + | |
| 1640 | + | |
1636 | 1641 | | |
1637 | 1642 | | |
1638 | 1643 | | |
| |||
1642 | 1647 | | |
1643 | 1648 | | |
1644 | 1649 | | |
1645 | | - | |
1646 | | - | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
1647 | 1656 | | |
1648 | 1657 | | |
1649 | 1658 | | |
| |||
1679 | 1688 | | |
1680 | 1689 | | |
1681 | 1690 | | |
1682 | | - | |
1683 | | - | |
1684 | | - | |
1685 | | - | |
1686 | | - | |
1687 | | - | |
1688 | | - | |
| 1691 | + | |
1689 | 1692 | | |
1690 | | - | |
| 1693 | + | |
1691 | 1694 | | |
1692 | 1695 | | |
1693 | 1696 | | |
| |||
1710 | 1713 | | |
1711 | 1714 | | |
1712 | 1715 | | |
1713 | | - | |
| 1716 | + | |
| 1717 | + | |
1714 | 1718 | | |
1715 | 1719 | | |
1716 | 1720 | | |
1717 | 1721 | | |
1718 | 1722 | | |
1719 | 1723 | | |
1720 | 1724 | | |
1721 | | - | |
1722 | | - | |
| 1725 | + | |
| 1726 | + | |
1723 | 1727 | | |
1724 | | - | |
| 1728 | + | |
1725 | 1729 | | |
1726 | 1730 | | |
1727 | 1731 | | |
1728 | 1732 | | |
1729 | | - | |
1730 | | - | |
| 1733 | + | |
| 1734 | + | |
1731 | 1735 | | |
1732 | 1736 | | |
1733 | 1737 | | |
| |||
1745 | 1749 | | |
1746 | 1750 | | |
1747 | 1751 | | |
1748 | | - | |
1749 | | - | |
1750 | | - | |
1751 | | - | |
1752 | | - | |
1753 | | - | |
1754 | | - | |
1755 | | - | |
1756 | | - | |
1757 | | - | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
1758 | 1755 | | |
1759 | 1756 | | |
1760 | 1757 | | |
| |||
1768 | 1765 | | |
1769 | 1766 | | |
1770 | 1767 | | |
1771 | | - | |
1772 | | - | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
1773 | 1774 | | |
1774 | 1775 | | |
1775 | 1776 | | |
1776 | | - | |
1777 | | - | |
| 1777 | + | |
| 1778 | + | |
1778 | 1779 | | |
1779 | 1780 | | |
1780 | 1781 | | |
| |||
2302 | 2303 | | |
2303 | 2304 | | |
2304 | 2305 | | |
2305 | | - | |
| 2306 | + | |
| 2307 | + | |
2306 | 2308 | | |
2307 | 2309 | | |
2308 | 2310 | | |
| |||
2316 | 2318 | | |
2317 | 2319 | | |
2318 | 2320 | | |
2319 | | - | |
2320 | | - | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
2321 | 2327 | | |
2322 | 2328 | | |
2323 | 2329 | | |
| |||
2338 | 2344 | | |
2339 | 2345 | | |
2340 | 2346 | | |
2341 | | - | |
2342 | | - | |
2343 | | - | |
2344 | | - | |
2345 | | - | |
2346 | | - | |
2347 | | - | |
| 2347 | + | |
2348 | 2348 | | |
2349 | 2349 | | |
2350 | 2350 | | |
| |||
2361 | 2361 | | |
2362 | 2362 | | |
2363 | 2363 | | |
2364 | | - | |
| 2364 | + | |
2365 | 2365 | | |
2366 | 2366 | | |
2367 | 2367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
252 | | - | |
253 | | - | |
| 251 | + | |
| 252 | + | |
254 | 253 | | |
255 | 254 | | |
256 | 255 | | |
257 | 256 | | |
258 | 257 | | |
259 | 258 | | |
260 | | - | |
| 259 | + | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | 509 | | |
521 | 510 | | |
522 | 511 | | |
| |||
0 commit comments