Made message signing in Cryptography use SHA512 as the message content for... #1

Closed
netkas wants to merge 421 commits from master into dev
Showing only changes of commit 831f6cc8e2 - Show all commits

View file

@ -20,7 +20,8 @@
class AddressBookAddContact extends Method class AddressBookAddContact extends Method
{ {
/** /**
* Adds a contact to the authenticated peer's address book * Adds a contact to the authenticated peer's address book, returns True if the contact was added
* false if the contact already exists.
* *
* @inheritDoc * @inheritDoc
*/ */
@ -67,7 +68,7 @@
// Check if the contact already exists // Check if the contact already exists
if(ContactManager::isContact($peer, $address)) if(ContactManager::isContact($peer, $address))
{ {
return $rpcRequest->produceError(StandardError::FORBIDDEN, 'Contact already exists'); return $rpcRequest->produceResponse(false);
} }
// Create the contact // Create the contact