|
@@ -119,8 +119,8 @@ discard block |
|
|
block discarded – undo |
|
119
|
119
|
$this->keyInfo = array( |
|
120
|
120
|
'private_key_hex' => $this->encodeHex($point['random_number']), |
|
121
|
121
|
'private_key_dec' => $point['random_number'], |
|
122
|
|
- 'public_key' => '04' . $point['Rx_hex'] . $point['Ry_hex'], |
|
123
|
|
- 'public_key_compressed' => $comp_prefix . $point['Rx_hex'], |
|
|
122
|
+ 'public_key' => '04'.$point['Rx_hex'].$point['Ry_hex'], |
|
|
123
|
+ 'public_key_compressed' => $comp_prefix.$point['Rx_hex'], |
|
124
|
124
|
'public_key_x' => $point['Rx_hex'], |
|
125
|
125
|
'public_key_y' => $point['Ry_hex'], |
|
126
|
126
|
); |
|
@@ -157,7 +157,7 @@ discard block |
|
|
block discarded – undo |
|
157
|
157
|
$pointX = substr($pubkey, 2); |
|
158
|
158
|
$pointY = substr($this->calcYfromX($pointX, $prefix), 2); |
|
159
|
159
|
|
|
160
|
|
- $parsedValue = $this->prepAndClean($pointX . $pointY); |
|
|
160
|
+ $parsedValue = $this->prepAndClean($pointX.$pointY); |
|
161
|
161
|
|
|
162
|
162
|
return ($returnHex === false) ? $parsedValue : $this->encodeHex($parsedValue); |
|
163
|
163
|
} |
Please login to merge, or discard this patch.