Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const generateWallet = async (point, ticket, boot) => {
const config = {
ticket: ticket,
seedSize: SEED_LENGTH_BYTES,
ship: point,
password: '',
revisions: {},
boot: boot,
};
// This is here to notify anyone who opens console because the thread
// hangs, blocking UI updates so this cannot be done in the UI
console.log('Generating Wallet for point address: ', point);
const wallet = await kg.generateWallet(config);
return wallet;
};
export const urbitWalletFromTicket = async (ticket, point, passphrase) => {
return await kg.generateWallet({
ticket: ticket,
ship: point,
passphrase: passphrase,
});
};