|
|
@ -84,9 +84,9 @@ func (dag *Dagger) Node(L uint64, i uint64) *big.Int { |
|
|
|
m = big.NewInt(3) |
|
|
|
m = big.NewInt(3) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
sha := sha3.NewKeccak224() |
|
|
|
sha := sha3.NewKeccak256() |
|
|
|
sha.Reset() |
|
|
|
sha.Reset() |
|
|
|
d := sha3.NewKeccak224() |
|
|
|
d := sha3.NewKeccak256() |
|
|
|
b := new(big.Int) |
|
|
|
b := new(big.Int) |
|
|
|
ret := new(big.Int) |
|
|
|
ret := new(big.Int) |
|
|
|
|
|
|
|
|
|
|
@ -117,12 +117,12 @@ func (dag *Dagger) Eval(N *big.Int) *big.Int { |
|
|
|
pow := BigPow(2, 26) |
|
|
|
pow := BigPow(2, 26) |
|
|
|
dag.xn = N.Div(N, pow) |
|
|
|
dag.xn = N.Div(N, pow) |
|
|
|
|
|
|
|
|
|
|
|
sha := sha3.NewKeccak224() |
|
|
|
sha := sha3.NewKeccak256() |
|
|
|
sha.Reset() |
|
|
|
sha.Reset() |
|
|
|
ret := new(big.Int) |
|
|
|
ret := new(big.Int) |
|
|
|
|
|
|
|
|
|
|
|
for k := 0; k < 4; k++ { |
|
|
|
for k := 0; k < 4; k++ { |
|
|
|
d := sha3.NewKeccak224() |
|
|
|
d := sha3.NewKeccak256() |
|
|
|
b := new(big.Int) |
|
|
|
b := new(big.Int) |
|
|
|
|
|
|
|
|
|
|
|
d.Reset() |
|
|
|
d.Reset() |
|
|
|