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 f9a268058f - Show all commits

View file

@ -292,7 +292,12 @@
*/ */
public function toStandardPeer(): Peer public function toStandardPeer(): Peer
{ {
return Peer::fromArray($this->toArray()); return Peer::fromArray([
'address' => $this->getAddress(),
'display_name' => $this->displayName,
'flags' => array_map(fn(PeerFlags $flag) => $flag->value, $this->flags),
'registered' => $this->created->getTimestamp()
]);
} }
/** /**