awwad / uptane

Uptane, security framework for automotive updates
https://uptane.github.io/
MIT License
10 stars 42 forks source link

Ref Impl: Refactor primary.py and secondary.py to pull out common elements #12

Closed awwad closed 7 years ago

awwad commented 7 years ago

Since these will be implemented separately and possibly very differently by OEMs, I'm slightly nervous about having a common module that they both employ, but otherwise, we're just dealing with lots of copied code, which is problematic.

Examples:

I thought about the Primary class inheriting from the Secondary class and adding functionality, which makes a lot of sense in the abstract, but... we have a certain aversion to complex object-oriented code.

awwad commented 7 years ago

This issue was moved to uptane/uptane#14