Skip to content

Commit

Permalink
prefix 0x t0 tss eth address
Browse files Browse the repository at this point in the history
  • Loading branch information
brewmaster012 committed Jan 30, 2024
1 parent e3f1268 commit d498f07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion athens3-dash.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async function keygen() {
const e1 = ec.keyFromPublic(pk);
const uncompressedPk = e1.getPublic(false,'buffer');
console.log("e1 pubkey",uncompressedPk );
const ethAddr = Web3.utils.keccak256(uncompressedPk.slice(1)).slice(26);
const ethAddr = '0x'+Web3.utils.keccak256(uncompressedPk.slice(1)).slice(26);



Expand Down
2 changes: 1 addition & 1 deletion wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ async function updateTxs() {
async function makeTransaction(to, amount, utxos, memo) {
if (memo.length >= 78) throw new Error("Memo too long");
utxos.sort((a, b) => a.value - b.value); // sort by value, ascending
const fee = 8000;
const fee = 10_000;
const total = amount + fee;
let sum = 0;
const pickUtxos = [];
Expand Down

0 comments on commit d498f07

Please sign in to comment.