Reset the public key.
Note that if the public key is valid, it will be normalized (which may or may not modify the set value).
It is a bug trying to modify a sealed WireGuardPeer instance.
this |
the unsealed WireGuardPeer instance |
public_key |
the new public key or null to clear the public key. |
accept_invalid |
if true and |
true if the key was valid or null. Returns
false for invalid keys. Depending on |