/** * @param PrivateKeyInterface $privKey * @param Buffer $hash * @param $sigHashType * @return TransactionSignature */ public function sign(PrivateKeyInterface $privKey, Buffer $hash, $sigHashType) { return new TransactionSignature($this->ecAdapter->sign($hash, $privKey, $this->deterministicSignatures ? new Rfc6979($this->ecAdapter, $privKey, $hash, 'sha256') : new Random()), $sigHashType); }