// import the Center Identity script <script src="centeridentity.js" type="text/javascript"></script> // Initialize Center Identity instance var ci = new CenterIdentity('API_KEY'); // get coordinates of your user's device or map input var coords = {latitude: 45.65464, longitude: -122.16818}; // get your user's username from input var username = 'username'; // set your user's seed phrase, WIF, or private key from input var seed = 'seed phrase, WIF, or private key'; // pass the params to center identity to save the encrypted seed on the blockchain await ci.set(user, coords.latitude, coords.longitude); // pass the params to center identity to recover the decrypted seed await ci.get(username, coords.latitude, coords.longitude);