Ejemplo n.º 1
0
 /**
  * @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);
 }
Ejemplo n.º 2
0
 /**
  * Signs MicroTX.
  *
  * @param string[]|string $hexPrivateKey
  * @return $this
  * @throws \Exception
  */
 public function sign($hexPrivateKey)
 {
     $this->setSignatures(Signer::signMultiple($this->tosign, $hexPrivateKey));
     return $this;
 }