@@ -81,12 +81,12 @@ discard block |
||
81 | 81 | public function __toString() |
82 | 82 | { |
83 | 83 | return json_encode(array( |
84 | - 'WIF_address' => $this->WIF_address, |
|
85 | - 'private_key' => $this->private_key, |
|
86 | - 'network_type' => $this->network_type, |
|
87 | - 'compressed_pubkey' => $this->compressed_pubkey_format, |
|
88 | - 'checksum' => $this->checksum) |
|
89 | - ); |
|
84 | + 'WIF_address' => $this->WIF_address, |
|
85 | + 'private_key' => $this->private_key, |
|
86 | + 'network_type' => $this->network_type, |
|
87 | + 'compressed_pubkey' => $this->compressed_pubkey_format, |
|
88 | + 'checksum' => $this->checksum) |
|
89 | + ); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
@@ -382,9 +382,9 @@ discard block |
||
382 | 382 | $decoded_key = $this->stripHexPrefix($this->decodeBase58(trim($WIF_encoded_key))); |
383 | 383 | |
384 | 384 | list($private_key, $checksum_provided) = array( |
385 | - substr($decoded_key, 0, -8), |
|
386 | - substr($decoded_key, strlen($decoded_key) - 8) |
|
387 | - ); |
|
385 | + substr($decoded_key, 0, -8), |
|
386 | + substr($decoded_key, strlen($decoded_key) - 8) |
|
387 | + ); |
|
388 | 388 | |
389 | 389 | $private_key_type = substr($private_key, 0, 2); |
390 | 390 |