Make KeyMgr::generate return the selected key
The following discussion from !1689 (merged) should be addressed:
-
@nickm started a discussion: (+1 comment) FWIW I think that this return value convention is suboptimal. IMO we should either return the key whether we created it or not, or we should return the key on success and Err(AlreadyPresent) if we didn't generate the key.