Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
function nkeys.fromPublic
import { nkeys } from "https://deno.land/x/natsws@v1.29.2/src/mod.ts";
const { fromPublic } = nkeys;

Creates a KeyPair from a specified public key

Parameters

src: string

key in string format

Returns

Returns the created KeyPair.