File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1698,7 +1698,7 @@ var cnUtil = function(currencyConfig) {
1698
1698
for ( let i = 0 ; i < rows ; i ++ ) {
1699
1699
M [ i ] = [ ] ;
1700
1700
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
1702
1702
for ( let j = 0 ; j < outPk . length ; j ++ ) {
1703
1703
M [ i ] [ 1 ] = this . ge_sub ( M [ i ] [ 1 ] , outPk [ j ] ) ; // subtract all output commitments
1704
1704
}
@@ -1750,7 +1750,8 @@ var cnUtil = function(currencyConfig) {
1750
1750
//mixRing is matrix of pubkey, commit (dest, mask)
1751
1751
//amountKeys is vector of scalars
1752
1752
//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
1754
1755
this . genRct = function (
1755
1756
message ,
1756
1757
inSk ,
You can’t perform that action at this time.
0 commit comments