z_test.go 396 B

123456789101112131415161718192021222324
  1. package curve
  2. import (
  3. "context"
  4. "math/big"
  5. "testing"
  6. "time"
  7. "git.ali33.ru/fcg-xvii/curve/v2/tools"
  8. )
  9. func TestCurveInit(t *testing.T) {
  10. ctx, _ := context.WithDeadline(context.Background(), time.Now().Add(time.Second*30))
  11. curve, err := NewCurve(
  12. big.NewInt(2),
  13. big.NewInt(4),
  14. tools.Exp64(big.NewInt(2), 20),
  15. ctx,
  16. )
  17. if err != nil {
  18. t.Fatal(err)
  19. }
  20. curve.Map().LogPretty()
  21. }