Skip to content

Commit c5e8243

Browse files
authored
Fix one annoying typo (#44)
1 parent 9eeefe8 commit c5e8243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/x25519.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async function importX25519Key(key: Uint8Array): Promise<CryptoKey> {
7676
throw new Error("X25519 private key must be 32 bytes")
7777
}
7878
const pkcs8 = new Uint8Array([...pkcs8Prefix, ...key])
79-
// Annoingly, importKey (at least on Node.js) computes the public key, which
79+
// Annoyingly, importKey (at least on Node.js) computes the public key, which
8080
// is a waste if we're only going to run deriveBits.
8181
return crypto.subtle.importKey("pkcs8", pkcs8, { name: "X25519" }, exportable, ["deriveBits"])
8282
}

0 commit comments

Comments
 (0)