public byte[] GetSignatureHash(Script redeemScript, ITxOutput spentOutput) { var coin = ((BitcoinBasedTxOutput)spentOutput).Coin; var scriptCoint = new ScriptCoin(coin, redeemScript); return(Tx.GetSignatureHash(scriptCoint).ToBytes()); }
public byte[] GetSignatureHash( ITxOutput spentOutput) { return(Tx.GetSignatureHash(((BitcoinBasedTxOutput)spentOutput).Coin).ToBytes()); }