10 lines
		
	
	
		
			356 B
		
	
	
	
		
			TypeScript
		
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			356 B
		
	
	
	
		
			TypeScript
		
	
	
	
import { Lucid } from "https://deno.land/x/lucid@0.8.3/mod.ts";
 | 
						|
 
 | 
						|
const lucid = await Lucid.new(undefined, "Preview");
 | 
						|
 
 | 
						|
const privateKey = lucid.utils.generatePrivateKey();
 | 
						|
await Deno.writeTextFile("key.sk", privateKey);
 | 
						|
 
 | 
						|
const address = await lucid.selectWalletFromPrivateKey(privateKey).wallet.address();
 | 
						|
await Deno.writeTextFile("key.addr", address);
 |