From: Roland Haeder Date: Mon, 11 May 2015 23:39:04 +0000 (+0200) Subject: Wrong naming ... :-( X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ac64ddb114a5ce36549f01c7834f48362515a88f;p=hub.git Wrong naming ... :-( Signed-off-by: Roland Haeder --- diff --git a/application/hub/main/package/class_NetworkPackage.php b/application/hub/main/package/class_NetworkPackage.php index 688b978d2..46c0e311e 100644 --- a/application/hub/main/package/class_NetworkPackage.php +++ b/application/hub/main/package/class_NetworkPackage.php @@ -654,7 +654,7 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R // Fake array $data = array( self::PACKAGE_CONTENT_SENDER => $senderId, - self::PACKAGE_CONTENT_CONTENT => $content, + self::PACKAGE_CONTENT_MESSAGE => $content, self::PACKAGE_CONTENT_HASH => '' ); @@ -676,7 +676,7 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R private function isPackageHashValid (array $decodedArray) { // Check validity //* DEBUG-DIE: */ die(__METHOD__ . ': decodedArray=' . print_r($decodedArray, TRUE)); - $isHashValid = Scrypt::checkScrypt($decodedArray[self::PACKAGE_CONTENT_SENDER] . ':' . $decodedArray[self::PACKAGE_CONTENT_CONTENT] . ':' . $this->determineSenderPrivateKeyHash($decodedArray), $decodedArray[self::PACKAGE_CONTENT_HASH]); + $isHashValid = Scrypt::checkScrypt($decodedArray[self::PACKAGE_CONTENT_SENDER] . ':' . $decodedArray[self::PACKAGE_CONTENT_MESSAGE] . ':' . $this->determineSenderPrivateKeyHash($decodedArray), $decodedArray[self::PACKAGE_CONTENT_HASH]); // Return it //* DEBUG-DIE: */ die(__METHOD__ . ': isHashValid=' . intval($isHashValid) . ',decodedArray=' . print_r($decodedArray, TRUE));