Esempio n. 1
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);
        }