src/Transactions/Serializers/Vote.php
public function serialize(): void
    {
        $voteBytes = [];

        foreach ($this->transaction['asset']['votes'] as $vote) {
            $voteBytes[] = '+' === substr($vote, 0, 1)
                ? '01'.substr($vote, 1)
                : '00'.substr($vote, 1);
        }

        $this->buffer->writeUInt8(count($this->transaction['asset']['votes']));
        $this->buffer->writeHexBytes(implode('', $voteBytes));
    }
public function serialize(): void
    {
        $voteBytes = [];

        foreach ($this->transaction['asset']['votes'] as $vote) {
            $voteBytes[] = '+' === substr($vote, 0, 1)
                ? '01'.substr($vote, 1)
                : '00'.substr($vote, 1);
        }

        $this->buffer->writeUInt8(count($this->transaction['asset']['votes']));
        $this->buffer->writeHexBytes(implode('', $voteBytes));
    }
public function serialize ( ) : void { $ voteBytes = [ ] ; foreach ( $ this -> transaction [ 'asset' ] [ 'votes' ] as $ vote ) { $ voteBytes [ ] = '+' === substr ( $ vote , 0 , 1 ) ? '01' . substr ( $ vote , 1 ) : '00' . substr ( $ vote , 1 ) ; } $ this -> buffer -> writeUInt8 ( count ( $ this -> transaction [ 'asset' ] [ 'votes' ] ) ) ; $ this -> buffer -> writeHexBytes ( implode ( '' , $ voteBytes ) ) ; }
Handle the serialization of "second signature registration" data.

@return string
Handle the serialization of second signature registration data .