precomps.go raw

   1  package secp256k1
   2  
   3  import (
   4  	_ "embed"
   5  )
   6  
   7  //go:embed rawbytepoints.bin
   8  var bytepoints []byte
   9  var BytePointTable [32][256]JacobianPoint
  10  
  11  func init() {
  12  	var cursor int
  13  	for i := range BytePointTable {
  14  		for j := range BytePointTable[i] {
  15  			BytePointTable[i][j].X.SetByteSlice(bytepoints[cursor:])
  16  			cursor += 32
  17  			BytePointTable[i][j].Y.SetByteSlice(bytepoints[cursor:])
  18  			cursor += 32
  19  			BytePointTable[i][j].Z.SetInt(1)
  20  		}
  21  	}
  22  }
  23