//C++ TO C# CONVERTER WARNING: 'const' methods are not available in C#:
//ORIGINAL LINE: virtual void getOutput(uint index, KeyOutput& output, ulong& amount) const override
        public override void getOutput(uint index, ref KeyOutput output, ref ulong amount)
        {
            auto @out = getOutputChecked(m_txPrefix, index, TransactionTypes.OutputType.Key);

            output = boost::get <KeyOutput>(@out.target);
            amount = @out.amount;
        }
示例#2
0
        public override uint addOutput(ulong amount, KeyOutput @out)
        {
            checkIfSigning();
            uint outputIndex          = transaction.outputs.Count;
            TransactionOutput realOut = new TransactionOutput(amount, @out);

            transaction.outputs.emplace_back(realOut);
            invalidateHash();
            return(outputIndex);
        }
示例#3
0
        public override uint addOutput(ulong amount, AccountPublicAddress to)
        {
            checkIfSigning();

            KeyOutput outKey = new KeyOutput();

            GlobalMembers.derivePublicKey(to, txSecretKey(), transaction.outputs.Count, outKey.key);
            TransactionOutput @out = new TransactionOutput(amount, outKey);

            transaction.outputs.emplace_back(@out);
            invalidateHash();

            return(transaction.outputs.Count - 1);
        }
示例#4
0
 public abstract uint AddOutput(ulong amount, KeyOutput @out);
示例#5
0
 public abstract void GetOutput(uint index, KeyOutput output, ulong amount);
 public static ushort functorMethod(CryptoNote.KeyOutput UnnamedParameter)
 {
     return(0x2);
 }