on 3791b8a help sign in
bridge/src/worker/WalletGenerator.ts
13 lines 331 B history raw
1import kg from 'urbit-key-generation';
3export const WalletGenerator = {
4 async generateWallet(data: string): Promise<UrbitWallet> {
5 // Process the data without stalling the UI
6 const config = JSON.parse(data);
7 const wallet = await kg.generateWallet(config);
9 return wallet;
10 },
13export default WalletGenerator;