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;
        }
 public static bool FunctorMethod(TransactionExtraPublicKey t)
 {
     return(CryptoNote.GlobalMembers.addTransactionPublicKeyToExtra(extra, t.publicKey));
 }