nostr package part 2

This commit is contained in:
ennmichael
2023-02-21 23:46:00 +01:00
parent 7c74a777de
commit 9da110165b
7 changed files with 505 additions and 139 deletions

View File

@ -137,7 +137,7 @@ async function checkSignature(
}
}
async function serializeId(raw: RawEvent): Promise<EventId> {
export async function serializeId(raw: RawEvent): Promise<EventId> {
// It's not defined whether JSON.stringify produces a string with whitespace stripped.
// Building the JSON string manually this way ensures that there's no whitespace.
// In hindsight using JSON as a data format for hashing and signing is not the best