Skip to content

Instantly share code, notes, and snippets.

@Zeemzo
Last active November 22, 2022 12:16
Show Gist options
  • Save Zeemzo/af0d4a9b426aedb613fb7bac28250b04 to your computer and use it in GitHub Desktop.
Save Zeemzo/af0d4a9b426aedb613fb7bac28250b04 to your computer and use it in GitHub Desktop.
Niftron-SDK Create Keypairs
import { NiftronConfig, NIFTRON, NiftronKeypair } from "niftron-sdk";
-------------------- Niftron-SDK Configuration --------------------------
// create asymmetricEncryption object
const asymmetricEncryption = new NIFTRON.utils.asymmetricEncryption();
// create asymmetricEncryption object
let keypairAlice = NiftronKeypair.random();
let keypairBob = NiftronKeypair.random();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment