What do you want to encrypt?

The challenge message?

It won't work anyway.

If you try to encrypt the entire event JSON, You are making things harder than nostr promised.

Reply to this note

Please Login to reply.

Discussion

What NIP-42 actually does is basically this:

Relay: Who are you?

Client: I am connected to .

Relay: Hello . Yes is me.

And then the relay know who the client was, and allows some certain events to be retrieved.