Why Nostr? What is Njump?
2023-03-12 01:54:14
in reply to

LeoWandersleb on Nostr: JS doesn't care if the method would accept more parameters so it should be backwards ...

JS doesn't care if the method would accept more parameters so it should be backwards compatible or in other words, that extra parameter may be undefined in which case it would behave as before.

On the other hand as the client would need to be changed to take advantage of this, a new method could be introduced. It would just clutter the API if you had both `encrypt()` and `encryptWith()`.
Author Public Key
npub1gm7tuvr9atc6u7q3gevjfeyfyvmrlul4y67k7u7hcxztz67ceexs078rf6