Skip to content

Commit

Permalink
installed lucid and wrote script to generate test address
Browse files Browse the repository at this point in the history
  • Loading branch information
wattsmainsanglais committed Mar 29, 2024
1 parent d05f5b2 commit 6f3dcde
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions generate-credentials.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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("me.sk", privateKey);

const address = await lucid
.selectWalletFromPrivateKey(privateKey)
.wallet.address();
await Deno.writeTextFile("me.addr", address);

1 change: 1 addition & 0 deletions me.addr
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addr_test1vpymmyaut6y543guzszn3e9jq6vm6zre8jnv633zdmxfq3qf43263
1 change: 1 addition & 0 deletions me.sk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ed25519_sk1f9e5n5ldrqpjsesyxsczjt9jwmyxc20yay8phgyfg8p4nwm764rs74hpdn

0 comments on commit 6f3dcde

Please sign in to comment.