Browse Source

Added credit on encoding fix. See #1.

hk-custom-address
Stefan Thomas 13 years ago
parent
commit
d985697d8f
  1. 2
      src/ecdsa.js

2
src/ecdsa.js

@ -18,6 +18,8 @@ ECPointFp.prototype.getEncoded = function (compressed) {
var x = this.getX().toBigInteger();
var y = this.getY().toBigInteger();
// Get value as a 32-byte Buffer
// Fixed length based on a patch by bitaddress.org and Casascius
var enc = integerToBytes(x, 32);
if (compressed) {

Loading…
Cancel
Save