UNPKG

@meat-nuggets/wireguard-tools

Version:

The best way to interact with WireGuard from Node

15 lines (14 loc) 337 B
interface Options { preSharedKey: boolean; privateKey?: string; } /** * Generate a key pair using wg * optionally also generate a PreSharedKey */ export declare const generateKeyPair: (opts?: Options | undefined) => Promise<{ privateKey: string; publicKey: string; preSharedKey: string | undefined; }>; export {};