Added credit on encoding fix. See #1.
This commit is contained in:
parent
d7ce1e5db8
commit
d985697d8f
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue