a few questions for make more clear the prepare-device flow.
Is it possibile setting the key
outside the prepare-device?
I know that snapctl work only within a snap, while outside snap it is necessary to use snap command to set up key value.
What is the snap accountable for the previous keys - snap command need of snap to apply?
Can the process to get serial assertion on a board be triggered outside the prepare-device hook?