Added credit on encoding fix. See #1.
This commit is contained in:
parent
d7ce1e5db8
commit
d985697d8f
@ -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…
Reference in New Issue
Block a user