Skip to content

Commit 634e811

Browse files
committedDec 8, 2014
Merge pull request XRPLF#220 from geertweening/update_sjcl
[TASK] update sjcl
2 parents 12e4287 + 3204998 commit 634e811

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1330
-281
lines changed
 

‎src/js/ripple/keypair.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var UInt256 = require('./uint256').UInt256;
55
var Base = require('./base').Base;
66

77
function KeyPair() {
8-
this._curve = sjcl.ecc.curves.c256;
8+
this._curve = sjcl.ecc.curves.k256;
99
this._secret = null;
1010
this._pubkey = null;
1111
};
@@ -15,7 +15,7 @@ KeyPair.from_bn_secret = function(j) {
1515
};
1616

1717
KeyPair.prototype.parse_bn_secret = function(j) {
18-
this._secret = new sjcl.ecc.ecdsa.secretKey(sjcl.ecc.curves.c256, j);
18+
this._secret = new sjcl.ecc.ecdsa.secretKey(sjcl.ecc.curves.k256, j);
1919
return this;
2020
};
2121

‎src/js/ripple/seed.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var KeyPair = require('./keypair').KeyPair;
1616

1717
var Seed = extend(function () {
1818
// Internal form: NaN or BigInteger
19-
this._curve = sjcl.ecc.curves.c256;
19+
this._curve = sjcl.ecc.curves.k256;
2020
this._value = NaN;
2121
}, UInt);
2222

0 commit comments

Comments
 (0)