pub(crate) fn keyring_from_peerstate(
    peerstate: Option<&Peerstate>
) -> Vec<SignedPublicKey>