Register and Generate Keys
import { NotVault } from '@notcentralised/notvault-sdk';const vault = new NotVault();await vault.register( '... Wallet Address ...', '... Email or 0xWallet ...', '... Secret Key ...', async () => { return '... Public Key ...'; }, // Retrieve public key from crypto wallet async (encryptedPrivateKey: string) => { return '... Private Key ...'; }, // Decrypt with crypt wallet async (publicKey: string, contactId: string) => { console.log('Success!', publicKey, contactId); } // Success );
Last updated