From 2caf7c6471a6aedd05ec9932965378ece27862c3 Mon Sep 17 00:00:00 2001 From: "Ryan X. Charles" Date: Wed, 17 Sep 2014 16:08:42 -0700 Subject: [PATCH] bn -> BN canonical capitalization --- lib/point.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/point.js b/lib/point.js index 25fd5c9..4296705 100644 --- a/lib/point.js +++ b/lib/point.js @@ -1,4 +1,4 @@ -var bn = require('./bn'); +var BN = require('./bn'); var elliptic = require('elliptic'); var ec = elliptic.curves.secp256k1; @@ -20,18 +20,18 @@ Point.getG = function() { }; Point.getN = function() { - return bn(ec.curve.n.toArray()); + return BN(ec.curve.n.toArray()); }; Point.prototype._getX = Point.prototype.getX; Point.prototype.getX = function() { - var n = bn(this._getX().toArray()); - return bn(this._getX().toArray()); + var n = BN(this._getX().toArray()); + return BN(this._getX().toArray()); }; Point.prototype._getY = Point.prototype.getY; Point.prototype.getY = function() { - return bn(this._getY().toArray()); + return BN(this._getY().toArray()); }; //https://www.iacr.org/archive/pkc2003/25670211/25670211.pdf