pub(crate) fn sign( state: &AppState, did: &str, token: ServiceAuth<'_>, ) -> Result<String, ApiError>
Signs token as did, through the registry that holds its key.
token
did