public function serialize(): void
    {
        $dag = $this->transaction['asset']['ipfs']['dag'];

        $this->buffer->writeUInt8(strlen($dag) / 2);
        $this->buffer->writeHexBytes($dag);
    }