Params returns Koblitz Curve parameters.
()
| 88 | |
| 89 | // Params returns Koblitz Curve parameters. |
| 90 | func (BitCurve *BitCurve) Params() *elliptic.CurveParams { |
| 91 | return &elliptic.CurveParams{ |
| 92 | P: BitCurve.P, |
| 93 | N: BitCurve.N, |
| 94 | B: BitCurve.B, |
| 95 | Gx: BitCurve.Gx, |
| 96 | Gy: BitCurve.Gy, |
| 97 | BitSize: BitCurve.BitSize, |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | // IsOnCurve returns true if the given (x,y) lies on the BitCurve. |
| 102 | func (BitCurve *BitCurve) IsOnCurve(x, y *big.Int) bool { |