pub fn set_peer_endpoint( did: &str, endpoint: Option<&str>, ) -> Result<(), String>
Set (or clear) the peer’s last-known transport endpoint (host:port), then persist. Empty endpoint clears it. Errors if no such peer.
host:port
endpoint