/** * @dataProvider invalidSignMultipleParameters * @test * @expectedException \InvalidArgumentException * @param $toSign */ public function should_only_allow_sign_multiple_data_from_an_array($toSign) { Signer::signMultiple($toSign, self::PRIVATE_KEY); }
/** * Signs MicroTX. * * @param string[]|string $hexPrivateKey * @return $this * @throws \Exception */ public function sign($hexPrivateKey) { $this->setSignatures(Signer::signMultiple($this->tosign, $hexPrivateKey)); return $this; }