You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
433 B

package secp256k1
import (
_ "embed"
)
//go:embed rawbytepoints.bin
var bytepoints []byte
var BytePointTable [32][256]JacobianPoint
func init() {
var cursor int
for i := range BytePointTable {
for j := range BytePointTable[i] {
BytePointTable[i][j].X.SetByteSlice(bytepoints[cursor:])
cursor += 32
BytePointTable[i][j].Y.SetByteSlice(bytepoints[cursor:])
cursor += 32
BytePointTable[i][j].Z.SetInt(1)
}
}
}