Not implemented: crypto.generateKeyPairSync

I don't understand why I'm getting this error. The code is:
import { generateKeyPairSync } from "https://deno.land/std@0.177.0/node/crypto.ts";
console.log(generateKeyPairSync("ed25519"));
import { generateKeyPairSync } from "https://deno.land/std@0.177.0/node/crypto.ts";
console.log(generateKeyPairSync("ed25519"));
3 Replies
bartlomieju
bartlomieju3y ago
that API is currently not implemented. IIRC @iuioiua is working on the polyfill for the API
netop://ウィビ
Aww man. Thanks for the info, I'll find an npm alternative.
iuioiua
iuioiua3y ago
I’m actually working on crypto.createSecretKey(). crypto.generateKeyPairSync() is up for grabs.

Did you find this page helpful?