diff --git a/lnbits/extensions/cashu/static/js/dhke.js b/lnbits/extensions/cashu/static/js/dhke.js index 9c7aee1b..41c2fb46 100644 --- a/lnbits/extensions/cashu/static/js/dhke.js +++ b/lnbits/extensions/cashu/static/js/dhke.js @@ -22,7 +22,7 @@ async function hashToCurve(secretMessage) { async function step1Alice(secretMessage) { // todo: document & validate `secretMessage` format secretMessage = uint8ToBase64.encode(secretMessage) - secretMessage = new TextEncoder().encode(secretMessage); + secretMessage = new TextEncoder().encode(secretMessage) const Y = await hashToCurve(secretMessage) const rpk = nobleSecp256k1.utils.randomPrivateKey() const r = bytesToNumber(rpk)