PublicKey: Added toAddress prototype. Closes #599