public function testHash() { $stringData = \random_bytes(32); $hash = \Sodium\crypto_generichash($stringData); $node = new Node($stringData); $this->assertSame($stringData, $node->getData()); $this->assertSame($hash, $node->getHash(true)); }