Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
exchain
nebula
Commits
a01f784b
Commit
a01f784b
authored
Oct 06, 2021
by
George Hotz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save a bunch more
parent
88711eab
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
genprecomps.go
minigeth/crypto/btcec/genprecomps.go
+1
-1
precompute.go
minigeth/crypto/btcec/precompute.go
+2
-3
secp256k1.go
minigeth/crypto/btcec/secp256k1.go
+1
-1
No files found.
minigeth/crypto/btcec/genprecomps.go
View file @
a01f784b
...
...
@@ -48,7 +48,7 @@ func main() {
fmt
.
Fprintln
(
fi
,
"// Auto-generated file (see genprecomps.go)"
)
fmt
.
Fprintln
(
fi
,
"// DO NOT EDIT"
)
fmt
.
Fprintln
(
fi
)
fmt
.
Fprintf
(
fi
,
"var secp256k1BytePoints =
%q
\n
"
,
string
(
serialized
))
fmt
.
Fprintf
(
fi
,
"var secp256k1BytePoints =
[]byte(%q)
\n
"
,
string
(
serialized
))
a1
,
b1
,
a2
,
b2
:=
btcec
.
S256
()
.
EndomorphismVectors
()
fmt
.
Println
(
"The following values are the computed linearly "
+
...
...
minigeth/crypto/btcec/precompute.go
View file @
a01f784b
...
...
@@ -18,8 +18,8 @@ import (
// data structure at init time with this approach versus computing the table.
func
loadS256BytePoints
()
error
{
// There will be no byte points to load when generating them.
bp
:=
secp256k1BytePoints
if
len
(
bp
)
==
0
{
serialized
:=
secp256k1BytePoints
if
len
(
serialized
)
==
0
{
return
nil
}
...
...
@@ -34,7 +34,6 @@ func loadS256BytePoints() error {
if err != nil {
return err
}*/
serialized
:=
[]
byte
(
bp
)
// Deserialize the precomputed byte points and set the curve to them.
offset
:=
0
...
...
minigeth/crypto/btcec/secp256k1.go
View file @
a01f784b
This diff is collapsed.
Click to expand it.
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