If the remote PeerId is known and passed as an option, the securing operation will throw if the remote peer cannot prove it has the private key that corresponds to the public key the remote PeerId is derived from.
Optional
If the remote PeerId is known and passed as an option, the securing operation will throw if the remote peer cannot prove it has the private key that corresponds to the public key the remote PeerId is derived from.