Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
dbd28a52
Commit
dbd28a52
authored
Jan 10, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
224 to 256
parent
fbc59b73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dagger.go
dagger.go
+4
-4
No files found.
dagger.go
View file @
dbd28a52
...
...
@@ -84,9 +84,9 @@ func (dag *Dagger) Node(L uint64, i uint64) *big.Int {
m
=
big
.
NewInt
(
3
)
}
sha
:=
sha3
.
NewKeccak2
24
()
sha
:=
sha3
.
NewKeccak2
56
()
sha
.
Reset
()
d
:=
sha3
.
NewKeccak2
24
()
d
:=
sha3
.
NewKeccak2
56
()
b
:=
new
(
big
.
Int
)
ret
:=
new
(
big
.
Int
)
...
...
@@ -117,12 +117,12 @@ func (dag *Dagger) Eval(N *big.Int) *big.Int {
pow
:=
BigPow
(
2
,
26
)
dag
.
xn
=
N
.
Div
(
N
,
pow
)
sha
:=
sha3
.
NewKeccak2
24
()
sha
:=
sha3
.
NewKeccak2
56
()
sha
.
Reset
()
ret
:=
new
(
big
.
Int
)
for
k
:=
0
;
k
<
4
;
k
++
{
d
:=
sha3
.
NewKeccak2
24
()
d
:=
sha3
.
NewKeccak2
56
()
b
:=
new
(
big
.
Int
)
d
.
Reset
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment