Skip to content

Commit

Permalink
Update App.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
yashovardhan committed Sep 3, 2024
1 parent c2f2bbc commit e893411
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torus-js/torus-js-quick-start/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function App() {
}
const seed = Buffer.from(seedHex, "hex");

const keyPair = Keypair.fromSeed(seed);
const keyPair = Keypair.fromSeed(new Uint8Array(seed));

const privateKey = Buffer.from(keyPair.secretKey).toString("hex");
const { publicKey } = keyPair;
Expand All @@ -147,7 +147,7 @@ function App() {
"Expanded Private Key (64 bytes):": privateKey,
"Public Key X:": torusKey.finalKeyData.X,
"Public Key Y:": torusKey.finalKeyData.Y,
"Public Key (32 bytes):": publicKey,
"Public Key (32 bytes):": publicKey.toBuffer().toString("hex"),
"Address from Public Key:": publicKey.toBase58(),
"Address from Web3Auth:": torusKey.finalKeyData.walletAddress,
};
Expand Down

0 comments on commit e893411

Please sign in to comment.