pub fn construct_auth_message<S: SignatureKey + 'static>(
    public_key: &S,
    peer_id: &PeerId,
    private_key: &S::PrivateKey
) -> Result<Vec<u8>>
Expand description

Create an sign an authentication message to be sent to the remote peer

§Errors

  • If we fail to sign the public key
  • If we fail to serialize the authentication message