-
Notifications
You must be signed in to change notification settings - Fork 26
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
Fork or replace postcard #63
Comments
If we replace, a possible alternative would be bincode v2 (unreleased), given its widespread use outside embedded. |
This is less a technical question than a migration/user question first. I don't think it is an option to invalidate all FIDO credentials with a firmware update. So we first need a migration strategy, right? My take on this would be:
So far I understand, forking postcard would be the only option if we would not like to do this, right? From the technical point of view, I don't really have an opinion, but benchmarks seem to swing in favor of |
As far as I see, postcard deserialization is only used once: to deserialize trussed/src/mechanisms/chacha8poly1305.rs Lines 210 to 214 in 8e347ab
Lines 382 to 385 in 8e347ab
|
Here is a quick draft of how a manual implementation could look like: robin-nitrokey@11429b7 It’s not trivial, but not too bad either – 50 lines of code that are rather easy to review and to test, no external dependencies. |
Nice - this amount of code seems reasonable to keep around for a rather long "reasonable migration time". |
Upgrading postcard from 0.7 to 1.0 would be a breaking change and invalidate existing FIDO credentials generated with
fido-authenticator
. To avoid outdated dependencies, we should consider forking or replacing postcard.The text was updated successfully, but these errors were encountered: