Commit a01f784b authored by George Hotz's avatar George Hotz

save a bunch more

parent 88711eab
...@@ -48,7 +48,7 @@ func main() { ...@@ -48,7 +48,7 @@ func main() {
fmt.Fprintln(fi, "// Auto-generated file (see genprecomps.go)") fmt.Fprintln(fi, "// Auto-generated file (see genprecomps.go)")
fmt.Fprintln(fi, "// DO NOT EDIT") fmt.Fprintln(fi, "// DO NOT EDIT")
fmt.Fprintln(fi) 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() a1, b1, a2, b2 := btcec.S256().EndomorphismVectors()
fmt.Println("The following values are the computed linearly " + fmt.Println("The following values are the computed linearly " +
......
...@@ -18,8 +18,8 @@ import ( ...@@ -18,8 +18,8 @@ import (
// data structure at init time with this approach versus computing the table. // data structure at init time with this approach versus computing the table.
func loadS256BytePoints() error { func loadS256BytePoints() error {
// There will be no byte points to load when generating them. // There will be no byte points to load when generating them.
bp := secp256k1BytePoints serialized := secp256k1BytePoints
if len(bp) == 0 { if len(serialized) == 0 {
return nil return nil
} }
...@@ -34,7 +34,6 @@ func loadS256BytePoints() error { ...@@ -34,7 +34,6 @@ func loadS256BytePoints() error {
if err != nil { if err != nil {
return err return err
}*/ }*/
serialized := []byte(bp)
// Deserialize the precomputed byte points and set the curve to them. // Deserialize the precomputed byte points and set the curve to them.
offset := 0 offset := 0
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment