Function peerIdFromPrivateKey