Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "eosjs-ecc", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Elliptic curve cryptography functions", | ||
@@ -12,3 +12,3 @@ "keywords": "ECC, Private Key, Public Key, Signature, AES, Encryption, Decryption", | ||
"type": "git", | ||
"url": "git://github.com/eosjs/ecc.git" | ||
"url": "git://github.com/EOSIO/eosjs-ecc.git" | ||
}, | ||
@@ -15,0 +15,0 @@ "dependencies": { |
@@ -57,3 +57,3 @@ [](https://www.npmjs.org/package/eosjs-ecc) | ||
```bash | ||
git clone https://github.com/eosjs/ecc.git | ||
git clone https://github.com/EOSIO/eosjs-ecc.git ecc | ||
cd ecc | ||
@@ -60,0 +60,0 @@ yarn |
@@ -67,3 +67,5 @@ const ecurve = require('ecurve'); | ||
if (checksum.toString() !== new_checksum.toString()) | ||
throw new Error('Invalid WIF key (checksum miss-match)') | ||
throw new Error('Invalid WIF key (checksum miss-match), ' + | ||
`${checksum.toString('hex')} != ${new_checksum.toString('hex')}` | ||
) | ||
@@ -70,0 +72,0 @@ private_key = private_key.slice(1); |
@@ -95,3 +95,6 @@ const BigInteger = require('bigi'); | ||
new_checksum = new_checksum.slice(0, 4); | ||
assert.deepEqual(checksum, new_checksum, 'Checksum did not match'); | ||
assert.deepEqual(checksum, new_checksum, | ||
'Checksum did not match, ' + | ||
`${checksum.toString('hex')} != ${new_checksum.toString('hex')}` | ||
); | ||
return PublicKey.fromBuffer(public_key); | ||
@@ -98,0 +101,0 @@ } |
70457
1028