private Script CreateEscrowScript()
 {
     return(EscrowScriptBuilder.CreateEscrow(
                new[]
     {
         InternalState.EscrowKey.PubKey,
         InternalState.OtherEscrowKey
     },
                InternalState.RedeemKey.PubKey,
                GetCycle().GetTumblerLockTime()));
 }
示例#2
0
        private ScriptCoin CreateEscrowCoin(PubKey escrow1, PubKey escrow2, PubKey redeemKey)
        {
            var redeem     = EscrowScriptBuilder.CreateEscrow(new[] { escrow1, escrow2 }, redeemKey, new LockTime(0));
            var scriptCoin = new Coin(new OutPoint(new uint256(RandomUtils.GetBytes(32)), 0),
                                      new TxOut
            {
                Value        = Money.Coins(1.5m),
                ScriptPubKey = redeem.Hash.ScriptPubKey
            }).ToScriptCoin(redeem);

            return(scriptCoin);
        }
示例#3
0
 public Script CreateEscrow(LockTime lockTime)
 {
     return(EscrowScriptBuilder.CreateEscrow(new PubKey[] { OurEscrowKey, OtherEscrowKey }, RedeemKey, lockTime));
 }