static public function create(KeyPair $kp, $data, $algorithm = 'keccak-512')
    {
        $sig = new static($privateKey, $publicKey, $algorithm);
        return $sig;
    }
static public function create(KeyPair $kp, $data, $algorithm = 'keccak-512')
    {
        $sig = new static($privateKey, $publicKey, $algorithm);
        return $sig;
    }
static public function create ( KeyPair $ kp , $ data , $ algorithm = 'keccak-512' ) { $ sig = new static ( $ privateKey , $ publicKey , $ algorithm ) ; return $ sig ; }
This method creates a Signature of said `data` with the
given `keyPair` KeyPair object.

@param   \NEM\Core\KeyPair          $keyPair      The KeyPair object with which you want to sign `data`.
@param   string|\NEM\Core\Buffer    $data         The data that needs to be signed.
@param   null|string                $algorithm    The hash algorithm that you wish to use for signature creation.
@return  \NEM\Core\Signature
@throws  \NEM\Errors\NISInvalidSignatureContent      On invalid `data` argument. Should be a \NEM\Core\Buffer or a string.
This method creates a Signature of said data with the given keyPair KeyPair object .