Skip to content

Commit

Permalink
very confused how this got lost
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed May 13, 2024
1 parent 3add6bd commit 3ea88ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mixing/dcnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ func SRMixPads(kp [][]byte, my uint32) []*big.Int {

pads := make([]*big.Int, len(kp))
partialPad := new(big.Int)
for j := uint32(0); int(j) < len(kp); j++ {
for j := uint32(0); j < uint32(len(kp)); j++ {
pads[j] = new(big.Int)
binary.LittleEndian.PutUint64(scratch, uint64(j)+1)
for i := uint32(0); int(i) < len(kp); i++ {
for i := uint32(0); i < uint32(len(kp)); i++ {
if my == i {
continue
}
Expand Down Expand Up @@ -152,7 +152,7 @@ func IsRoot(m *big.Int, a []*big.Int) bool {
func DCMixPads(kp []wire.MixVect, my uint32) Vec {
pads := make(Vec, len(kp))
for i := range kp {
if i == int(my) {
if uint32(i) == my {
continue
}
pads.Xor(pads, Vec(kp[i]))
Expand Down

0 comments on commit 3ea88ed

Please sign in to comment.