This makes it clearer what the Repository interface actually needs:
just a Mapping of role names to some private key representation
(maybe that representation could even be a plain Signer, but right
now it's a bit more).
Also separate the two Keyring implementations: they are never needed at the same time.
This makes it clearer what the Repository interface actually needs: just a Mapping of role names to some private key representation (maybe that representation could even be a plain Signer, but right now it's a bit more).
Also separate the two Keyring implementations: they are never needed at the same time.