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)); }
public override UInt160[] GetScriptHashesForVerifying() { UInt160 issuer = SignatureContract.CreateSignatureRedeemScript(Issuer).ToScriptHash(); return(base.GetScriptHashesForVerifying().Union(new UInt160[] { issuer, Admin }).OrderBy(p => p).ToArray()); }