Ejemplo n.º 1
0
 /**
  * @param string $description
  * @param Binary $currency
  * @param Output $output
  * @param Signer $signer
  * @return Base
  */
 public static function signedBase($description, Binary $currency, Output $output, Signer $signer)
 {
     return new Base($currency, $description, $output, $signer->getAddress(), $signer->sign([$currency, $description, $output]));
 }
Ejemplo n.º 2
0
 /**
  * @param Binary $issuerAddress
  * @param Signer $signer
  * @return Authorization
  */
 public static function signed(Binary $issuerAddress, Signer $signer)
 {
     return new Authorization($issuerAddress, $signer->getAddress(), $signer->sign($issuerAddress));
 }