예제 #1
0
        public byte[] GetSignatureHash(Script redeemScript, ITxOutput spentOutput)
        {
            var coin = ((BitcoinBasedTxOutput)spentOutput).Coin;

            var scriptCoint = new ScriptCoin(coin, redeemScript);

            return(Tx.GetSignatureHash(scriptCoint).ToBytes());
        }
예제 #2
0
 public byte[] GetSignatureHash(
     ITxOutput spentOutput)
 {
     return(Tx.GetSignatureHash(((BitcoinBasedTxOutput)spentOutput).Coin).ToBytes());
 }