Пример #1
0
        public TransactionImpl()
        {
            CryptoNote.KeyPair txKeys = new CryptoNote.KeyPair(CryptoNote.generateKeyPair());

            TransactionExtraPublicKey pk = new TransactionExtraPublicKey(txKeys.publicKey);

            extra.set(pk);

            transaction.version    = CURRENT_TRANSACTION_VERSION;
            transaction.unlockTime = 0;
            transaction.extra      = new List <ushort>(extra.serialize());

            secretKey = txKeys.secretKey;
        }
Пример #2
0
 public static bool FunctorMethod(TransactionExtraPublicKey t)
 {
     return(CryptoNote.GlobalMembers.addTransactionPublicKeyToExtra(extra, t.publicKey));
 }