Fixed issue with js util naming
This commit is contained in:
parent
04fba31293
commit
0e7f5e89f2
|
@ -189,7 +189,7 @@ PrivateKey.fromWIF = function(str) {
|
||||||
* @returns {PrivateKey} A new valid instance of PrivateKey
|
* @returns {PrivateKey} A new valid instance of PrivateKey
|
||||||
*/
|
*/
|
||||||
PrivateKey.fromJSON = function(json) {
|
PrivateKey.fromJSON = function(json) {
|
||||||
if (JSUtil.isValidJson(json)) {
|
if (JSUtil.isValidJSON(json)) {
|
||||||
json = JSON.parse(json);
|
json = JSON.parse(json);
|
||||||
}
|
}
|
||||||
var bn = BN(json.bn, 'hex');
|
var bn = BN(json.bn, 'hex');
|
||||||
|
|
|
@ -162,7 +162,7 @@ PublicKey._transformX = function(odd, x){
|
||||||
* @returns {PublicKey} A new valid instance of PublicKey
|
* @returns {PublicKey} A new valid instance of PublicKey
|
||||||
*/
|
*/
|
||||||
PublicKey.fromJSON = function(json) {
|
PublicKey.fromJSON = function(json) {
|
||||||
if (JSUtil.isValidJson(json)) {
|
if (JSUtil.isValidJSON(json)) {
|
||||||
json = JSON.parse(json);
|
json = JSON.parse(json);
|
||||||
}
|
}
|
||||||
var x = BN(json.x, 'hex');
|
var x = BN(json.x, 'hex');
|
||||||
|
|
Loading…
Reference in New Issue