-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f31fdd8
commit 9548577
Showing
2 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts"; | ||
import { PrivateKey } from "./key.ts"; | ||
import { InMemoryAccountContext, prepareNormalNostrEvent, verifyEvent } from "./nostr.ts"; | ||
|
||
Deno.test("Verify Event", async () => { | ||
let pri = PrivateKey.Generate(); | ||
let event = await prepareNormalNostrEvent(InMemoryAccountContext.New(pri), 1, [], ""); | ||
let ok = await verifyEvent(event); | ||
assertEquals(ok, true); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters