Meets Altered Carbon. But if you wake up in virtual reality, when you enter your key, how can you keep them from taking it from you? You'll never know if you are being man-in-the-middled.
Although I’m not sure how you would verify your messages with private key without revealing to whatever is managing your consciousness’ memory.