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

        if (! isset($this->transaction['version']) || 1 === $this->transaction['version']) {
            foreach ($this->transaction['asset']['multisignature']['keysgroup'] as $key) {
                $keysgroup[] = '+' === substr($key, 0, 1)
                    ? substr($key, 1)
                    : $key;
            }
        } else {
            $keysgroup = $this->transaction['asset']['multisignature']['keysgroup'];
        }

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

        if (! isset($this->transaction['version']) || 1 === $this->transaction['version']) {
            foreach ($this->transaction['asset']['multisignature']['keysgroup'] as $key) {
                $keysgroup[] = '+' === substr($key, 0, 1)
                    ? substr($key, 1)
                    : $key;
            }
        } else {
            $keysgroup = $this->transaction['asset']['multisignature']['keysgroup'];
        }

        $this->buffer->writeUInt8($this->transaction['asset']['multisignature']['min']);
        $this->buffer->writeUInt8(count($this->transaction['asset']['multisignature']['keysgroup']));
        $this->buffer->writeUInt8($this->transaction['asset']['multisignature']['lifetime']);
        $this->buffer->writeHexBytes(implode('', $keysgroup));
    }
public function serialize ( ) : void { $ keysgroup = [ ] ; if ( ! isset ( $ this -> transaction [ 'version' ] ) || 1 === $ this -> transaction [ 'version' ] ) { foreach ( $ this -> transaction [ 'asset' ] [ 'multisignature' ] [ 'keysgroup' ] as $ key ) { $ keysgroup [ ] = '+' === substr ( $ key , 0 , 1 ) ? substr ( $ key , 1 ) : $ key ; } } else { $ keysgroup = $ this -> transaction [ 'asset' ] [ 'multisignature' ] [ 'keysgroup' ] ; } $ this -> buffer -> writeUInt8 ( $ this -> transaction [ 'asset' ] [ 'multisignature' ] [ 'min' ] ) ; $ this -> buffer -> writeUInt8 ( count ( $ this -> transaction [ 'asset' ] [ 'multisignature' ] [ 'keysgroup' ] ) ) ; $ this -> buffer -> writeUInt8 ( $ this -> transaction [ 'asset' ] [ 'multisignature' ] [ 'lifetime' ] ) ; $ this -> buffer -> writeHexBytes ( implode ( '' , $ keysgroup ) ) ; }
Handle the serialization of "multi signature registration" data.

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