Use/study TUF (The Update Framework) for security design
Created by: sptankard
In there interest of doing things the right way from the beginning, I think looking at TUF and potentially using some of the codebase may be a good idea (there's a rust-lang version). What TUF is:
The Update Framework (TUF) helps developers maintain the security of a software update system, even against attackers that compromise the repository or signing keys. TUF provides a flexible framework and specification that developers can adopt into any software update system.
https://github.com/theupdateframework/tuf https://theupdateframework.github.io/security.html https://github.com/theupdateframework/specification/blob/master/tuf-spec.md#the-update-framework-specification
Implementation in Rust: https://github.com/heartsucker/rust-tuf https://docs.rs/tuf