コード例 #1
0
 public EnrollmentTransaction GetTransaction()
 {
     return(Program.CurrentWallet.MakeTransaction(new EnrollmentTransaction
     {
         PublicKey = (ECPoint)comboBox1.SelectedItem,
         Outputs = new[]
         {
             new TransactionOutput
             {
                 AssetId = Blockchain.AntCoin.Hash,
                 Value = Fixed8.Parse(textBox1.Text),
                 ScriptHash = SignatureContract.CreateSignatureRedeemScript((ECPoint)comboBox1.SelectedItem).ToScriptHash()
             }
         }
     }, Fixed8.Zero));
 }
コード例 #2
0
        public override UInt160[] GetScriptHashesForVerifying()
        {
            UInt160 issuer = SignatureContract.CreateSignatureRedeemScript(Issuer).ToScriptHash();

            return(base.GetScriptHashesForVerifying().Union(new UInt160[] { issuer, Admin }).OrderBy(p => p).ToArray());
        }