Skip to content

Commit

Permalink
nice!
Browse files Browse the repository at this point in the history
  • Loading branch information
bokkypoobah committed Dec 28, 2023
1 parent 98aed4a commit a71e904
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1858,9 +1858,9 @@ <h5>Stealth Meta-Address</h5>
const stealthPrivateKeyString = stealthPrivateKeyNumber.toString(16);
result.stealthPrivateKey = "0x" + stealthPrivateKeyString.padStart(64, '0');
// console.log(" stealthPrivateKey: ", result.stealthPrivateKey);
result.stealthPublicKey = nobleCurves.secp256k1.ProjectivePoint.fromPrivateKey(stealthPrivateKeyNumber);
result.stealthPublicKey = "0x" + nobleCurves.secp256k1.ProjectivePoint.fromPrivateKey(stealthPrivateKeyNumber).toHex(false);
// console.log(" stealthPublicKey: ", result.stealthPublicKey.toHex(true));
result.stealthAddress = ethers.utils.computeAddress("0x" + result.stealthPublicKey.toHex(false));
result.stealthAddress = ethers.utils.computeAddress(result.stealthPublicKey);
// console.log(" stealthAddress: ", result.stealthAddress);
return result;
}
Expand Down Expand Up @@ -1889,10 +1889,10 @@ <h5>Stealth Meta-Address</h5>
// }
if (status && status.match) {
const computedStealthKey = computeStealthKey(stealthAddress, ephemeralPublicKey, viewingPrivateKey, spendingPrivateKey);
console.log("computedStealthKey: " + computedStealthKey.stealthAddress + " vs stealthAddress: " + stealthAddress);
// // for (const [k, v] of Object.entries(status)) {
// // console.log(" ", k, "=>", v);
// // }
console.log(" computedStealthKey: " + computedStealthKey.stealthAddress + " vs stealthAddress: " + stealthAddress);
// for (const [k, v] of Object.entries(computedStealthKey)) {
// console.log(" ", k, "=>", v);
// }
}
}
}
Expand Down

0 comments on commit a71e904

Please sign in to comment.