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

Creates a KeyPair from a specified seed.

Parameters

src: Uint8Array

seed key in Uint8Array

Returns

Returns the created KeyPair.