pub fn set_peer_active(did: &str, active: bool) -> Result<(), String>
Set the active flag on the peer with the given did, then persist.
active
did
Returns an error if no peer with that did is stored.