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 1bdfc310e5 - Show all commits

View file

@ -13,7 +13,7 @@ class SessionRecord implements SerializableInterface
private string $publicKey; private string $publicKey;
private SessionState $state; private SessionState $state;
private DateTime $created; private DateTime $created;
private DateTime $lastRequest; private ?DateTime $lastRequest;
public function __construct(array $data) public function __construct(array $data)
{ {
@ -53,12 +53,12 @@ class SessionRecord implements SerializableInterface
return $this->state; return $this->state;
} }
public function getCreated(): int public function getCreated(): DateTime
{ {
return $this->created; return $this->created;
} }
public function getLastRequest(): int public function getLastRequest(): ?DateTime
{ {
return $this->lastRequest; return $this->lastRequest;
} }