When calling NDKEvent.publish the event is auto-signed, but when calling NDK.publish it is not.
Suggested solution:
The NDK.publish could attempt to auto-sign the event as well, based on the signer.
If there is not signer then it'd be helpful to throw an NDK error like "Attempting to publish unsigned event". Right now you'd rely on the relay letting you know the signature is missing, which they don't always do.
When calling
NDKEvent.publish
the event is auto-signed, but when callingNDK.publish
it is not.Suggested solution:
The
NDK.publish
could attempt to auto-sign the event as well, based on the signer.If there is not signer then it'd be helpful to throw an NDK error like "Attempting to publish unsigned event". Right now you'd rely on the relay letting you know the signature is missing, which they don't always do.
Reproducible Code