Skip to content

Commit

Permalink
Merge pull request ethereum#1536 from fjl/fix-go1.5-build
Browse files Browse the repository at this point in the history
crypto: fix build with Go 1.5
  • Loading branch information
fjl committed Jul 27, 2015
2 parents d18d256 + 453d2c9 commit 572e78c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion crypto/curve.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,14 @@ type BitCurve struct {
}

func (BitCurve *BitCurve) Params() *elliptic.CurveParams {
return &elliptic.CurveParams{BitCurve.P, BitCurve.N, BitCurve.B, BitCurve.Gx, BitCurve.Gy, BitCurve.BitSize}
return &elliptic.CurveParams{
P: BitCurve.P,
N: BitCurve.N,
B: BitCurve.B,
Gx: BitCurve.Gx,
Gy: BitCurve.Gy,
BitSize: BitCurve.BitSize,
}
}

// IsOnBitCurve returns true if the given (x,y) lies on the BitCurve.
Expand Down

0 comments on commit 572e78c

Please sign in to comment.