Пример #1
0
        public override uint addInput(AccountKeys senderKeys, CryptoNote.TransactionTypes.InputKeyInfo info, KeyPair ephKeys)
        {
            checkIfSigning();
            KeyInput input = new KeyInput();

//C++ TO C# CONVERTER TODO TASK: The following line was determined to be a copy assignment (rather than a reference assignment) - this should be verified and a 'CopyFrom' method should be created:
//ORIGINAL LINE: input.amount = info.amount;
            input.amount.CopyFrom(info.amount);

            generate_key_image_helper(senderKeys, info.realOutput.transactionPublicKey, info.realOutput.outputInTransaction, ephKeys, input.keyImage);

            // fill outputs array and use relative offsets
            foreach (var @out in info.outputs)
            {
                input.outputIndexes.Add(@out.outputIndex);
            }

            input.outputIndexes = absolute_output_offsets_to_relative(input.outputIndexes);
            return(addInput(input));
        }
Пример #2
0
 public abstract uint AddInput(AccountKeys senderKeys, TransactionTypes.InputKeyInfo info, KeyPair ephKeys);