Skip to main content
2 votes
Accepted

Comparing multiple flags at once

if (flag1 == flag2 == flag3 == flag4 == "false") resolves to if ( flag1 == flag2 /*"false" == "false" => true*/ == flag3 /*true != "false" => false*...
KooiInc's user avatar
  • 123k
1 vote

How to derive public key from private key using WebCryptoApi?

Yes, You can derive public key from private key. Here is an example using WebCrypto API // privateKeyValue can be base64 or Uint8Array or ArrayBuffer async function getX25519Keys(privateKeyValue) { ...
1 vote

Nuxt 4: import aliases don't work in test files

i think you need to update the setup on vitest.config.ts import { defineVitestProject } from "@nuxt/test-utils/config"; import { defineConfig } from "vitest/config"; export ...
Buat Iseng's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible