Skip to content

Commit 4d99ca6

Browse files
author
HenryNguyen5
committed
Update comments for accuracy
1 parent 675b0c2 commit 4d99ca6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cryptonote_utils/cryptonote_utils.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,7 +1698,7 @@ var cnUtil = function(currencyConfig) {
16981698
for (let i = 0; i < rows; i++) {
16991699
M[i] = [];
17001700
M[i][0] = pubs[0][i].dest;
1701-
M[i][1] = this.ge_add(M[i][1] || this.identity(), pubs[0][i].mask); // add input commitments
1701+
M[i][1] = this.ge_add(M[i][1] || this.identity(), pubs[0][i].mask); // start with input commitment
17021702
for (let j = 0; j < outPk.length; j++) {
17031703
M[i][1] = this.ge_sub(M[i][1], outPk[j]); // subtract all output commitments
17041704
}
@@ -1750,7 +1750,8 @@ var cnUtil = function(currencyConfig) {
17501750
//mixRing is matrix of pubkey, commit (dest, mask)
17511751
//amountKeys is vector of scalars
17521752
//indices is vector
1753-
//txnFee is string
1753+
//txnFee is string, with its endian not swapped (e.g d2s is not called before passing it in as an argument)
1754+
//to this function
17541755
this.genRct = function(
17551756
message,
17561757
inSk,

0 commit comments

Comments
 (0)