nostr-tools 0.14.0 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/event.js +1 -1
  2. package/package.json +1 -1
package/event.js CHANGED
@@ -32,7 +32,7 @@ export function getEventHash(event) {
32
32
 
33
33
  export function verifySignature(event) {
34
34
  if (event.id !== getEventHash(event)) return false
35
- return secp256k1.schnorr.verify(event.id, event.pubkey, event.sig)
35
+ return secp256k1.schnorr.verify(event.sig, event.id, event.pubkey)
36
36
  }
37
37
 
38
38
  export async function signEvent(event, key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nostr-tools",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "Tools for making a Nostr client.",
5
5
  "repository": {
6
6
  "type": "git",