bitcoinjs/bitcoinjs-lib — pull request #130 by dcousens (2014-04-16 11:29:33+00:00)
Title: Renames ecparams to curve to avoid confusion

`ECPointFp.decodeFrom` specifies its first parameter as `ecparams`, which is a suitable name on its own; is highly confusing when combined with its only usage:

```
var decode = function(x) { return ECPointFp.decodeFrom(ecparams.getCurve(), x) }
```

Therefore, as implied by the above usage and inherent nature of the `decodeFrom` function, I have renamed the first variable to `curve`.

See the `ECPointFp` constructor for another example of why this makes sense: https://github.com/dcousens/bitcoinjs-lib/blob/a689c6fc9af33fc47497e86ceb85caffe3da3820/src/jsbn/ec.js#L64.