ockam
ockam copied to clipboard
Move the `ockam_key_exchange_core` create into `ockam_core`.
This is essentially the same as #2288, but for ockam_key_exchange_core.
We're trying to reduce the number of crates, and part of that is moving ockam_key_exchange_core into a new key_exchange submodule of ockam_core. I think this basically looks like:
-
Make a new
pub mod key_exchange;inockam_core.- Note: unlike the other modules, I think we shouldn't
pub use key_exchange::*from the root here, since we'd like to move away from this.
- Note: unlike the other modules, I think we shouldn't
-
Move the code from
ockam_key_exchange_core/src/lib.rstoockam_core/src/key_exchange.rs. -
Update the doc comments so that it says "this module" rather than "this crate" and such. (Ask if you need help wording this).
-
Change uses of
ockam_key_exchange_core::Fooand such to useockam_core::key_exchange::Fooacross our crates. -
Delete the
ockam_key_exchange_corecrate, and any references to it (be sure to check.github/workflows, and to do a search forockam_key_exchange_core).
That's the basic idea anyway (I may have missed something). Feel free to ask questions if anything is unclear.
Can I help somehow?
Absolutely! I'll assign the issue to you, feel free to ask any questions here.
Hi @thomcc. It is my first contribution to ockam. As far as I understand (from the task description) it is a sort of simple code reorganisation rather than cryptography programming. Am I on the right track?
@fade2black yes that's right, only a code reorganisation.
@thomcc @mrinalwadhwa I removed all refs to the create, but we have a file rust_test_ockam_ockam_key_exchange_core.yml in the workflow folder. May/should I delete it?
yes please delete it
@mrinalwadhwa
I guess rust_build_ockam_ockam_key_exchange_core.yml and rust_lint_ockam_ockam_key_exchange_core.yml too?
Yes *ockam_ockam_key_exchange_core.yml can be deleted
@mrinalwadhwa I'm struggling with
use ockam_vault_core::Secret;
ockam_vault_core crate is used inside the key_exchange.rs.
I tried to include that crate but it leads to a cyclic dependency error since ockam_vault_core itself depends on ockam_core
[dependencies]
ockam_core = { path = "../ockam_core", version = "^0.41.0", default_features = false }
Any idea how to resolve the dependency?
@fade2black I think the simplest approach would be to wait for https://github.com/ockam-network/ockam/pull/2324 to land. Where @totsteps is moving ockam_vault_core as per https://github.com/ockam-network/ockam/issues/2288