Skip to content

Adding functions for message_4#312

Merged
geonnave merged 20 commits intolake-rs:mainfrom
ElsaLopez133:message4_new
Nov 25, 2024
Merged

Adding functions for message_4#312
geonnave merged 20 commits intolake-rs:mainfrom
ElsaLopez133:message4_new

Conversation

@ElsaLopez133
Copy link
Copy Markdown
Collaborator

Adding trait to call the edhoc_exporter and edhoc_prk_update either when in state in message 3 or 4.
Adding functions to prepare, parse, and process message 4.
Corrected examples (coap and lakers-nrf52840).
Added tests.

Copy link
Copy Markdown
Collaborator

@geonnave geonnave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congrats on your first PR, it looks very good!

Did a first very quick review round, I will let you have CI passing for the test matrix and then do a more detailed one.

@geonnave
Copy link
Copy Markdown
Collaborator

Please also follow the project's convention for commit messages. We use a format loosely based on Conventional Commits. For example, you may change your first commit message to edhoc: add support for message_4. I recommend you take a look at git log and follow the style we use in the project.

Copy link
Copy Markdown
Collaborator

@geonnave geonnave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the examples code, looks good, left a few nitpick comments.

Adding functions for message_4
Adding trait to call the edhoc_exporter and edhoc_prk_update
either when in state in message 3 or 4.
Adding functions to prepare, parse, and process message 4
Copy link
Copy Markdown
Collaborator

@geonnave geonnave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update, my main comment is about prk_exporter. Let's discuss it offline.

Added test_handshake for 3 and 4 messages to derive prk_exporter in both cases
Added a function completed_without_message4 for handshake with 3 messages
Removed the trait for Done
Fix minor mistakes
remove test_handshake_message_4 in lib.rs
@chrysn
Copy link
Copy Markdown
Member

chrysn commented Nov 4, 2024

Using this with aiocoap broke interoperability; before I dig further in: Is this supposed to be a breaking API change on the Python side, or merely an extension?

@chrysn chrysn mentioned this pull request Nov 4, 2024
Copy link
Copy Markdown
Collaborator

@geonnave geonnave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost there @ElsaLopez133 ! Left a few more comments :)

@geonnave
Copy link
Copy Markdown
Collaborator

@ElsaLopez133 congrats on finishing your first PR on lakers! And it was a big one! Merging now.

@geonnave geonnave merged commit 975010e into lake-rs:main Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants