on 368f024 help sign in
bridge/src/worker/worker.ts
12 lines 318 B history raw
1import kg from 'urbit-key-generation';
3export async function generateWallet(data: string): Promise<string> {
4 console.log(2, data)
5 // Process the data without stalling the UI
6 const config = JSON.parse(data);
7 console.log(3)
8 const wallet = await kg.generateWallet(config);
9 console.log(4)
11 return wallet;