nostr-java icon indicating copy to clipboard operation
nostr-java copied to clipboard

Autogenerate "id" for NIP46.Request objects

Open kuiperanon opened this issue 10 months ago • 1 comments

It would be nice if there was a way to construct a NIP46.Request object with a constructor like: new Request(method, params) and have the id randomly autogenerated.

NOTE: It seems from my testing this generated id must be a hex string, or else it won't work with nsec.app. Not sure if this is true but it seems to be the case.

kuiperanon avatar Apr 10 '24 01:04 kuiperanon