crypto.publicDecrypt doesn't seem to work

  • Version: 13.0.1
  • Platform: MacOS Catalina

image

pub doesn't work. Only priv and bob.publicKey but I know that priv should work because in docs: Because RSA public keys can be derived from private keys, a private key may be passed instead of a public key. I really want to know why pub isn't working.

It's showing that:

image