Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove cbor_serialize_message helper #106

Merged
merged 1 commit into from
Oct 25, 2024
Merged

Remove cbor_serialize_message helper #106

merged 1 commit into from
Oct 25, 2024

Conversation

robin-nitrokey
Copy link
Member

The cbor_serialize_message helper mixed re-exports of cbor-smol from trussed and ctap-types. This can be problematic if both select different versions. It could be fixed by keeping both in sync, but to avoid this problem entirely, we can also just use cbor_serialize_bytes from Trussed directly.

Copy link

@sosthene-nitrokey sosthene-nitrokey left a comment

Choose a reason for hiding this comment

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

I don't fully understand the thing about mixing versions, isn't mixing version going to be a problem even without this helper?

But indeed the wrapper is not very useful.

@robin-nitrokey
Copy link
Member Author

For fido-authenticator, it’s not a problem because we don’t really care about the duplication when working on the crate. And for the final firmware, we can spend more effort to make sure to select the proper versions. The current situation means that a duplication in the locked versions for fido-authenticator leads to compiler errors.

The cbor_serialize_message helper mixed re-exports of cbor-smol from
trussed and ctap-types.  This can be problematic if both select
different versions.  It could be fixed by keeping both in sync, but to
avoid this problem entirely, we can also just use cbor_serialize_bytes
from Trussed directly.
@robin-nitrokey robin-nitrokey merged commit c145a45 into main Oct 25, 2024
3 checks passed
@robin-nitrokey robin-nitrokey deleted the serde branch October 25, 2024 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants