├── .gitignore ├── COPYING ├── INSTALL ├── Makefile ├── README ├── README.md ├── bw32.sh ├── cloakcoin-qt.pro ├── cloakcoin-qt.pro.ORIG ├── cloakcoin-qt_plugin_import.cpp ├── cloakcoind └── nbproject │ ├── configurations.xml │ ├── private │ ├── CodeAssistancePathMapper.properties │ ├── Default.properties │ ├── configurations.xml │ ├── launcher.properties │ └── private.xml │ └── project.xml ├── cloakcure.sh ├── contrib ├── bitrpc │ └── bitrpc.py ├── gitian-descriptors │ ├── README-CLOAK-BUILD │ ├── gitian-linux-headless.yml │ ├── gitian-linux-qt.yml │ └── unused │ │ ├── boost-win32.yml │ │ ├── deps-win32.yml │ │ ├── gitian-win32.yml │ │ └── qt-win32.yml ├── gitian-downloader │ ├── bluematt-key.pgp │ ├── devrandom-key.pgp │ ├── gavinandresen-key.pgp │ ├── laanwj-key.pgp │ ├── linux-download-config │ ├── luke-jr-key.pgp │ ├── richardsmith-key.gpg │ ├── scottnadal-key.gpg │ ├── sipa-key.pgp │ ├── sunnyking-key.gpg │ ├── tcatm-key.pgp │ └── win32-download-config ├── innosetup │ ├── cloakcoin.iss │ ├── libcurl.dll │ ├── libeay32.dll │ ├── libidn-11.dll │ ├── librtmp.dll │ ├── libssh2.dll │ ├── logo-164x314.bmp │ ├── logo-55x58.bmp │ ├── ssleay32.dll │ ├── unzipper.dll │ └── zlib1.dll ├── macdeploy │ ├── LICENSE │ ├── background.png │ ├── background.psd │ ├── fancy.plist │ ├── macdeployqtplus │ └── notes.txt ├── qt_translations.py └── wallettools │ ├── walletchangepass.py │ └── walletunlock.py ├── doc ├── Doxyfile ├── README ├── README_windows.txt ├── RasPi-Cloak-Build.txt ├── assets-attribution.txt ├── bitcoin_logo_doxygen.png ├── build-extra-osx.txt ├── build-msw.txt ├── build-osx.txt ├── build-unix.txt ├── changelog.txt ├── coding.txt ├── readme-qt.rst ├── release-process.txt └── translation_process.md ├── ex_lib ├── libcurl │ ├── libcurl.a │ ├── libcurl.def │ └── libcurldll.a └── qrencode-3.4.1-1-mingw32-dev │ ├── include │ └── qrencode.h │ └── lib │ ├── libqrencode.dll.a │ └── pkgconfig │ └── libqrencode.pc ├── keys.dat ├── libEvent.dll.a ├── libevent.a ├── libevent └── event2 │ ├── bits │ └── netdb.h │ ├── buffer.h │ ├── buffer_compat.h │ ├── bufferevent.h │ ├── bufferevent_compat.h │ ├── bufferevent_ssl.h │ ├── bufferevent_struct.h │ ├── dns.h │ ├── dns_compat.h │ ├── dns_struct.h │ ├── event-config.h │ ├── event.h │ ├── event_compat.h │ ├── event_struct.h │ ├── features.h │ ├── http.h │ ├── http_compat.h │ ├── http_struct.h │ ├── in.h │ ├── keyvalq_struct.h │ ├── listener.h │ ├── netdb.h │ ├── rpc.h │ ├── rpc_compat.h │ ├── rpc_struct.h │ ├── tag.h │ ├── tag_compat.h │ ├── thread.h │ └── util.h ├── qrc_bitcoin.cpp ├── rpc-server-test.html ├── share ├── genbuild.sh ├── pixmaps │ ├── addressbook16.bmp │ ├── addressbook16mask.bmp │ ├── addressbook20.bmp │ ├── addressbook20mask.bmp │ ├── bitcoin-bc.ico │ ├── bitcoin.ico │ ├── bitcoin32.xpm │ ├── bitcoin80.xpm │ ├── bitgem32.xpm │ ├── bitgem80.xpm │ ├── check.ico │ ├── favicon.ico │ ├── nsis-header.bmp │ ├── nsis-wizard.bmp │ ├── send16.bmp │ ├── send16mask.bmp │ ├── send16masknoshadow.bmp │ ├── send20.bmp │ └── send20mask.bmp ├── qt │ ├── extract_strings_qt.py │ ├── img │ │ └── reload.xcf │ ├── make_spinner.py │ └── make_windows_icon.sh ├── setup.nsi └── ui.rc └── src ├── addrman.cpp ├── addrman.h ├── aes_helper.c ├── alert.cpp ├── alert.h ├── allocators.h ├── base58.h ├── bignum.h ├── bitcoin.h ├── bitcoinrpc.cpp ├── bitcoinrpc.h ├── blake.c ├── bmw.c ├── build_osx.txt ├── checkpoints.cpp ├── checkpoints.h ├── clientversion.h ├── cloakexception.cpp ├── cloakexception.h ├── cloakhelpers.cpp ├── cloakhelpers.h ├── coincontrol.h ├── compat.h ├── conemarketcreatelisting.cpp ├── conemarketcreatelisting.h ├── crypter.cpp ├── crypter.h ├── cubehash.c ├── db.cpp ├── db.h ├── echo.c ├── ecies ├── ecies.c ├── ecies.h └── keys.c ├── enigma ├── cloakingdata.cpp ├── cloakingdata.h ├── cloakingrequest.cpp ├── cloakingrequest.h ├── cloakshield.cpp ├── cloakshield.h ├── encryption.cpp ├── encryption.h ├── enigma.cpp ├── enigma.h ├── enigmaann.cpp ├── enigmaann.h ├── enigmapeer.cpp ├── enigmapeer.h ├── posaann.cpp.autosave ├── posaann.h.autosave ├── pow.cpp └── pow.h ├── filedownloader.cpp ├── filedownloader.h ├── fugue.c ├── groestl.c ├── hamsi.c ├── hamsi_helper.c ├── hashblock.h ├── hdkey.h ├── hdkeys.h ├── init.cpp ├── init.h ├── irc.cpp ├── irc.h ├── jh.c ├── json ├── LICENSE.txt ├── json_spirit.h ├── json_spirit_error_position.h ├── json_spirit_reader.cpp ├── json_spirit_reader.h ├── json_spirit_reader_template.h ├── json_spirit_stream_reader.h ├── json_spirit_utils.h ├── json_spirit_value.cpp ├── json_spirit_value.h ├── json_spirit_writer.cpp ├── json_spirit_writer.h └── json_spirit_writer_template.h ├── keccak.c ├── kernel.cpp ├── kernel.h ├── key.cpp ├── key.h ├── keyoriginal.cpp ├── keyoriginal.h ├── keystore.cpp ├── keystore.h ├── leveldb ├── .gitignore ├── AUTHORS ├── CONTRIBUTING.md ├── LICENSE ├── Makefile ├── NEWS ├── README ├── README.md ├── TODO ├── WINDOWS.md ├── build_detect_platform ├── db │ ├── autocompact_test.cc │ ├── builder.cc │ ├── builder.h │ ├── c.cc │ ├── c_test.c │ ├── corruption_test.cc │ ├── db_bench.cc │ ├── db_impl.cc │ ├── db_impl.h │ ├── db_iter.cc │ ├── db_iter.h │ ├── db_test.cc │ ├── dbformat.cc │ ├── dbformat.h │ ├── dbformat_test.cc │ ├── dumpfile.cc │ ├── filename.cc │ ├── filename.h │ ├── filename_test.cc │ ├── leveldb_main.cc │ ├── log_format.h │ ├── log_reader.cc │ ├── log_reader.h │ ├── log_test.cc │ ├── log_writer.cc │ ├── log_writer.h │ ├── memtable.cc │ ├── memtable.h │ ├── repair.cc │ ├── skiplist.h │ ├── skiplist_test.cc │ ├── snapshot.h │ ├── table_cache.cc │ ├── table_cache.h │ ├── version_edit.cc │ ├── version_edit.h │ ├── version_edit_test.cc │ ├── version_set.cc │ ├── version_set.h │ ├── version_set_test.cc │ ├── write_batch.cc │ ├── write_batch_internal.h │ └── write_batch_test.cc ├── doc │ ├── bench │ │ ├── db_bench_sqlite3.cc │ │ └── db_bench_tree_db.cc │ ├── benchmark.html │ ├── doc.css │ ├── impl.html │ ├── index.html │ ├── log_format.txt │ └── table_format.txt ├── helpers │ └── memenv │ │ ├── memenv.cc │ │ ├── memenv.h │ │ └── memenv_test.cc ├── include │ └── leveldb │ │ ├── c.h │ │ ├── cache.h │ │ ├── comparator.h │ │ ├── db.h │ │ ├── dumpfile.h │ │ ├── env.h │ │ ├── filter_policy.h │ │ ├── iterator.h │ │ ├── options.h │ │ ├── slice.h │ │ ├── status.h │ │ ├── table.h │ │ ├── table_builder.h │ │ └── write_batch.h ├── issues │ ├── issue178_test.cc │ └── issue200_test.cc ├── lib │ └── win │ │ └── x86 │ │ ├── libleveldb.a │ │ └── libmemenv.a ├── libleveldb.a ├── libmemenv.a ├── port │ ├── README │ ├── atomic_pointer.h │ ├── port.h │ ├── port_example.h │ ├── port_posix.cc │ ├── port_posix.h │ ├── port_win.cc │ ├── port_win.h │ ├── thread_annotations.h │ └── win │ │ └── stdint.h ├── table │ ├── block.cc │ ├── block.h │ ├── block_builder.cc │ ├── block_builder.h │ ├── filter_block.cc │ ├── filter_block.h │ ├── filter_block_test.cc │ ├── format.cc │ ├── format.h │ ├── iterator.cc │ ├── iterator_wrapper.h │ ├── merger.cc │ ├── merger.h │ ├── table.cc │ ├── table_builder.cc │ ├── table_test.cc │ ├── two_level_iterator.cc │ └── two_level_iterator.h └── util │ ├── arena.cc │ ├── arena.h │ ├── arena_test.cc │ ├── bloom.cc │ ├── bloom_test.cc │ ├── cache.cc │ ├── cache_test.cc │ ├── coding.cc │ ├── coding.h │ ├── coding_test.cc │ ├── comparator.cc │ ├── crc32c.cc │ ├── crc32c.h │ ├── crc32c_test.cc │ ├── env.cc │ ├── env_posix.cc │ ├── env_test.cc │ ├── env_win.cc │ ├── filter_policy.cc │ ├── hash.cc │ ├── hash.h │ ├── hash_test.cc │ ├── histogram.cc │ ├── histogram.h │ ├── logging.cc │ ├── logging.h │ ├── mutexlock.h │ ├── options.cc │ ├── posix_logger.h │ ├── random.h │ ├── status.cc │ ├── testharness.cc │ ├── testharness.h │ ├── testutil.cc │ └── testutil.h ├── lrucache.h ├── luffa.c ├── main.cpp ├── main.h ├── makefile.arm ├── makefile.bsd ├── makefile.linux-mingw ├── makefile.mingw ├── makefile.osx ├── makefile.unix ├── miniupnpc ├── CMakeLists.txt ├── Changelog.txt ├── LICENSE ├── MANIFEST.in ├── Makefile ├── Makefile.mingw ├── README ├── VERSION ├── apiversions.txt ├── bsdqueue.h ├── codelength.h ├── connecthostport.c ├── connecthostport.h ├── connecthostport.o ├── declspec.h ├── external-ip.sh ├── igd_desc_parse.c ├── igd_desc_parse.h ├── igd_desc_parse.o ├── java │ ├── JavaBridgeTest.java │ ├── testjava.bat │ └── testjava.sh ├── libminiupnpc.a ├── libminiupnpc.so ├── man3 │ └── miniupnpc.3 ├── mingw32make.bat ├── minihttptestserver.c ├── minisoap.c ├── minisoap.h ├── minisoap.o ├── minissdpc.c ├── minissdpc.h ├── minissdpc.o ├── miniupnpc.c ├── miniupnpc.def ├── miniupnpc.h ├── miniupnpc.o ├── miniupnpcmodule.c ├── miniupnpcstrings.h ├── miniupnpcstrings.h.cmake ├── miniupnpcstrings.h.in ├── miniupnpctypes.h ├── miniwget.c ├── miniwget.h ├── miniwget.o ├── minixml.c ├── minixml.h ├── minixml.o ├── minixmlvalid.c ├── msvc │ ├── miniupnpc.sln │ ├── miniupnpc.vcproj │ └── upnpc-static.vcproj ├── portlistingparse.c ├── portlistingparse.h ├── portlistingparse.o ├── pymoduletest.py ├── receivedata.c ├── receivedata.h ├── receivedata.o ├── setup.py ├── setupmingw32.py ├── testigddescparse.c ├── testminiwget.c ├── testminiwget.sh ├── testminixml.c ├── testreplyparse │ ├── DeletePortMapping.namevalue │ ├── DeletePortMapping.xml │ ├── GetExternalIPAddress.namevalue │ ├── GetExternalIPAddress.xml │ ├── GetSpecificPortMappingEntryReq.namevalue │ ├── GetSpecificPortMappingEntryReq.xml │ ├── GetSpecificPortMappingEntryResp.namevalue │ ├── GetSpecificPortMappingEntryResp.xml │ ├── SetDefaultConnectionService.namevalue │ ├── SetDefaultConnectionService.xml │ └── readme.txt ├── testupnpigd.py ├── testupnpreplyparse.c ├── testupnpreplyparse.sh ├── updateminiupnpcstrings.sh ├── upnpc-shared ├── upnpc-static ├── upnpc.c ├── upnpc.o ├── upnpcommands.c ├── upnpcommands.h ├── upnpcommands.o ├── upnperrors.c ├── upnperrors.h ├── upnperrors.o ├── upnpreplyparse.c ├── upnpreplyparse.h ├── upnpreplyparse.o └── wingenminiupnpcstrings.c ├── miniz.c ├── mruset.h ├── net.cpp ├── net.h ├── netbase.cpp ├── netbase.h ├── notes.txt ├── noui.cpp ├── obj-test └── .gitignore ├── pbkdf2.cpp ├── pbkdf2.h ├── protocol.cpp ├── protocol.h ├── qt ├── 37357.png ├── AppResources.qrc ├── ExchangeIcon.qrc ├── QJsonArray.cpp ├── QJsonArray.h ├── QJsonDocument.cpp ├── QJsonDocument.h ├── QJsonObject.cpp ├── QJsonObject.h ├── QJsonParseError.cpp ├── QJsonParseError.h ├── QJsonParser.cpp ├── QJsonParser.h ├── QJsonRoot.h ├── QJsonValue.cpp ├── QJsonValue.h ├── QJsonValueRef.cpp ├── QJsonValueRef.h ├── TabIcons.qrc ├── aboutdialog.cpp ├── aboutdialog.h ├── acceptandpayofferlistpage.cpp ├── acceptandpayofferlistpage.h ├── acceptedofferlistpage.cpp ├── acceptedofferlistpage.h ├── addressbookpage.cpp ├── addressbookpage.h ├── addresstablemodel.cpp ├── addresstablemodel.h ├── allofferlistpage.cpp ├── allofferlistpage.h ├── askpassphrasedialog.cpp ├── askpassphrasedialog.h ├── bitcoin.cpp ├── bitcoin.qrc ├── bitcoinaddressvalidator.cpp ├── bitcoinaddressvalidator.h ├── bitcoinamountfield.cpp ├── bitcoinamountfield.cpp.autosave ├── bitcoinamountfield.h ├── bitcoingui.cpp ├── bitcoingui.h ├── bitcoinstrings.cpp ├── bitcoinunits.cpp ├── bitcoinunits.h ├── clientmodel.cpp ├── clientmodel.h ├── cloaksend.cpp ├── cloaksend.h ├── coincontroldialog.cpp ├── coincontroldialog.h ├── coincontroltreewidget.cpp ├── coincontroltreewidget.h ├── csvmodelwriter.cpp ├── csvmodelwriter.h ├── editaddressdialog.cpp ├── editaddressdialog.h ├── editofferdialog.cpp ├── editofferdialog.h ├── enigmastatuspage.cpp ├── enigmastatuspage.h ├── enigmatablemodel.cpp ├── enigmatablemodel.h ├── exchange.cpp ├── exchange.h ├── exchange.png ├── forms │ ├── aboutdialog.ui │ ├── acceptandpayofferlistpage.ui │ ├── acceptedofferlistpage.ui │ ├── addressbookpage.ui │ ├── allofferlistpage.ui │ ├── askpassphrasedialog.ui │ ├── coincontroldialog.ui │ ├── editaddressdialog.ui │ ├── editofferdialog.ui │ ├── enigmastatuspage.ui │ ├── helpmessagedialog.ui │ ├── mainwindow.ui │ ├── myofferlistpage.ui │ ├── onemarket.ui │ ├── optionsdialog.ui │ ├── overviewpage.ui │ ├── qrcodedialog.ui │ ├── rpcconsole.ui │ ├── sendcoinsdialog.ui │ ├── sendcoinsentry.ui │ ├── signverifymessagedialog.ui │ └── transactiondescdialog.ui ├── guiconstants.h ├── guiutil.cpp ├── guiutil.h ├── hmac_sha512.cpp ├── httpsocket.cpp ├── httpsocket.h ├── jsonsaverloader.cpp ├── jsonsaverloader.h ├── locale │ ├── bitcoin_en.qm │ ├── bitcoin_en.ts │ ├── bitcoin_fr.qm │ ├── bitcoin_fr.ts │ ├── bitcoin_pt.qm │ ├── bitcoin_pt.ts │ ├── bitcoin_ru.qm │ └── bitcoin_ru.ts ├── macdockiconhandler.h ├── macdockiconhandler.mm ├── mainwindow.cpp ├── mainwindow.h ├── monitoreddatamapper.cpp ├── monitoreddatamapper.h ├── myofferlistpage.cpp ├── myofferlistpage.h ├── notificator.cpp ├── notificator.h ├── offertablemodel.cpp ├── offertablemodel.h ├── offerview.cpp ├── offerview.h ├── onemarket.png ├── onemarketgui.cpp ├── onemarketgui.h ├── optionsdialog.cpp ├── optionsdialog.h ├── optionsmodel.cpp ├── optionsmodel.h ├── overviewpage.cpp ├── overviewpage.h ├── qrcodedialog.cpp ├── qrcodedialog.h ├── qtipcserver.cpp ├── qtipcserver.h ├── qvalidatedlineedit.cpp ├── qvalidatedlineedit.h ├── qvaluecombobox.cpp ├── qvaluecombobox.h ├── res │ ├── bitcoin-qt.rc │ ├── crush_png.bat │ ├── fonts │ │ └── Classic_Robot.ttf │ ├── icons │ │ ├── CloakCoin-128.png │ │ ├── CloakCoin-16.png │ │ ├── CloakCoin.icns │ │ ├── CloakCoin.ico │ │ ├── CloakCoin.png │ │ ├── add.png │ │ ├── address-book.png │ │ ├── bitcoin.icns │ │ ├── bitcoin.png │ │ ├── bitcoin_testnet.png │ │ ├── cloak_icon_gray.png │ │ ├── cloak_icon_green.png │ │ ├── cloak_icon_green_1.png │ │ ├── cloak_icon_green_10.png │ │ ├── cloak_icon_green_11.png │ │ ├── cloak_icon_green_12.png │ │ ├── cloak_icon_green_13.png │ │ ├── cloak_icon_green_14.png │ │ ├── cloak_icon_green_15.png │ │ ├── cloak_icon_green_16.png │ │ ├── cloak_icon_green_17.png │ │ ├── cloak_icon_green_18.png │ │ ├── cloak_icon_green_19.png │ │ ├── cloak_icon_green_2.png │ │ ├── cloak_icon_green_20.png │ │ ├── cloak_icon_green_21.png │ │ ├── cloak_icon_green_22.png │ │ ├── cloak_icon_green_23.png │ │ ├── cloak_icon_green_24.png │ │ ├── cloak_icon_green_25.png │ │ ├── cloak_icon_green_26.png │ │ ├── cloak_icon_green_3.png │ │ ├── cloak_icon_green_4.png │ │ ├── cloak_icon_green_5.png │ │ ├── cloak_icon_green_6.png │ │ ├── cloak_icon_green_7.png │ │ ├── cloak_icon_green_8.png │ │ ├── cloak_icon_green_9.png │ │ ├── cloaker_accepted.png │ │ ├── cloaker_failed.png │ │ ├── cloaker_finalized.png │ │ ├── cloaker_refused_to_sign.png │ │ ├── cloaker_signed.png │ │ ├── clock1.png │ │ ├── clock2.png │ │ ├── clock3.png │ │ ├── clock4.png │ │ ├── clock5.png │ │ ├── configure.png │ │ ├── connect0_16.png │ │ ├── connect1_16.png │ │ ├── connect2_16.png │ │ ├── connect3_16.png │ │ ├── connect4_16.png │ │ ├── debugwindow.png │ │ ├── edit.png │ │ ├── editcopy.png │ │ ├── editpaste.png │ │ ├── export.png │ │ ├── filesave.png │ │ ├── history.png │ │ ├── key.png │ │ ├── lock_closed.png │ │ ├── lock_open.png │ │ ├── mining.png │ │ ├── mining_active.png │ │ ├── mining_inactive.png │ │ ├── notsynced.png │ │ ├── overview.png │ │ ├── photothumb.db │ │ ├── posa3.png │ │ ├── qrcode.png │ │ ├── quit.png │ │ ├── receive.png │ │ ├── remove.png │ │ ├── send.png │ │ ├── shield.png │ │ ├── splash2.png │ │ ├── staking_off.png │ │ ├── staking_on.png │ │ ├── start1.png │ │ ├── start2.png │ │ ├── synced.png │ │ ├── transaction0.png │ │ ├── transaction2.png │ │ ├── transaction_conflicted.png │ │ ├── tx_inout.png │ │ ├── tx_input.png │ │ ├── tx_mined.png │ │ ├── tx_output.png │ │ ├── tx_posa_input.png │ │ └── tx_posa_output.png │ ├── icons_old │ │ ├── CloakCoin-128.png │ │ ├── CloakCoin-16.png │ │ ├── CloakCoin.icns │ │ ├── CloakCoin.ico │ │ ├── CloakCoin.png │ │ ├── add.png │ │ ├── address-book.png │ │ ├── bitcoin.icns │ │ ├── bitcoin.png │ │ ├── bitcoin_testnet.png │ │ ├── cloak_icon_gray.png │ │ ├── cloak_icon_green.png │ │ ├── clock1.png │ │ ├── clock2.png │ │ ├── clock3.png │ │ ├── clock4.png │ │ ├── clock5.png │ │ ├── configure.png │ │ ├── connect0_16.png │ │ ├── connect1_16.png │ │ ├── connect2_16.png │ │ ├── connect3_16.png │ │ ├── connect4_16.png │ │ ├── debugwindow.png │ │ ├── edit.png │ │ ├── editcopy.png │ │ ├── editpaste.png │ │ ├── export.png │ │ ├── filesave.png │ │ ├── history.png │ │ ├── key.png │ │ ├── lock_closed.png │ │ ├── lock_open.png │ │ ├── mining.png │ │ ├── mining_active.png │ │ ├── mining_inactive.png │ │ ├── notsynced.png │ │ ├── overview.png │ │ ├── photothumb.db │ │ ├── qrcode.png │ │ ├── quit.png │ │ ├── receive.png │ │ ├── remove.png │ │ ├── send.png │ │ ├── staking_off.png │ │ ├── staking_on.png │ │ ├── synced.png │ │ ├── transaction0.png │ │ ├── transaction2.png │ │ ├── transaction_conflicted.png │ │ ├── tx_inout.png │ │ ├── tx_input.png │ │ ├── tx_mined.png │ │ └── tx_output.png │ ├── images │ │ ├── about.png │ │ ├── background.png │ │ ├── drkblue_walletFrame.png │ │ ├── drkblue_walletFrame_bg.png │ │ ├── shadow9202.png │ │ ├── splash.png │ │ ├── splash_old.png │ │ └── wallet.png │ ├── movies │ │ └── update_spinner.mng │ └── src │ │ ├── bitcoin.svg │ │ ├── clock1.svg │ │ ├── clock2.svg │ │ ├── clock3.svg │ │ ├── clock4.svg │ │ ├── clock5.svg │ │ ├── clock_green.svg │ │ ├── inout.svg │ │ └── questionmark.svg ├── rpcconsole.cpp ├── rpcconsole.h ├── sendcoinsdialog.cpp ├── sendcoinsdialog.h ├── sendcoinsentry.cpp ├── sendcoinsentry.h ├── signverifymessagedialog.cpp ├── signverifymessagedialog.h ├── splashscreen.cpp ├── splashscreen.h ├── test │ ├── test_main.cpp │ ├── uritests.cpp │ └── uritests.h ├── tickertimer.cpp ├── tickertimer.h ├── transactiondesc.cpp ├── transactiondesc.h ├── transactiondescdialog.cpp ├── transactiondescdialog.h ├── transactionfilterproxy.cpp ├── transactionfilterproxy.h ├── transactionrecord.cpp ├── transactionrecord.h ├── transactiontablemodel.cpp ├── transactiontablemodel.h ├── transactionview.cpp ├── transactionview.h ├── utilitydialog.cpp ├── utilitydialog.h ├── walletmodel.cpp ├── walletmodel.h ├── winshutdownmonitor.cpp └── winshutdownmonitor.h ├── rpcblockchain.cpp ├── rpcdump.cpp ├── rpcmining.cpp ├── rpcnet.cpp ├── rpcrawtransaction.cpp ├── rpcwallet.cpp ├── script.cpp ├── script.h ├── scrypt-arm.S ├── scrypt-core.h ├── scrypt-x86.S ├── scrypt-x86_64.S ├── scrypt.cpp ├── scrypt.h ├── scrypt_mine.cpp ├── scrypt_mine.h ├── secp256k1 ├── .gitignore ├── .travis.yml ├── COPYING ├── Makefile.am ├── README.md ├── TODO ├── autogen.sh ├── build-aux │ └── m4 │ │ ├── ax_jni_include_dir.m4 │ │ ├── ax_prog_cc_for_build.m4 │ │ └── bitcoin_secp.m4 ├── configure.ac ├── contrib │ ├── lax_der_parsing.c │ ├── lax_der_parsing.h │ ├── lax_der_privatekey_parsing.c │ └── lax_der_privatekey_parsing.h ├── include │ ├── secp256k1.h │ ├── secp256k1_ecdh.h │ ├── secp256k1_recovery.h │ └── secp256k1_schnorr.h ├── libsecp256k1.pc.in ├── sage │ ├── group_prover.sage │ ├── secp256k1.sage │ └── weierstrass_prover.sage └── src │ ├── asm │ └── field_10x26_arm.s │ ├── basic-config.h │ ├── bench.h │ ├── bench_ecdh.c │ ├── bench_internal.c │ ├── bench_recover.c │ ├── bench_schnorr_verify.c │ ├── bench_sign.c │ ├── bench_verify.c │ ├── ecdsa.h │ ├── ecdsa_impl.h │ ├── eckey.h │ ├── eckey_impl.h │ ├── ecmult.h │ ├── ecmult_const.h │ ├── ecmult_const_impl.h │ ├── ecmult_gen.h │ ├── ecmult_gen_impl.h │ ├── ecmult_impl.h │ ├── field.h │ ├── field_10x26.h │ ├── field_10x26_impl.h │ ├── field_5x52.h │ ├── field_5x52_asm_impl.h │ ├── field_5x52_impl.h │ ├── field_5x52_int128_impl.h │ ├── field_impl.h │ ├── gen_context.c │ ├── group.h │ ├── group_impl.h │ ├── hash.h │ ├── hash_impl.h │ ├── java │ ├── org │ │ └── bitcoin │ │ │ ├── NativeSecp256k1.java │ │ │ ├── NativeSecp256k1Test.java │ │ │ ├── NativeSecp256k1Util.java │ │ │ └── Secp256k1Context.java │ ├── org_bitcoin_NativeSecp256k1.c │ ├── org_bitcoin_NativeSecp256k1.h │ ├── org_bitcoin_Secp256k1Context.c │ └── org_bitcoin_Secp256k1Context.h │ ├── modules │ ├── ecdh │ │ ├── Makefile.am.include │ │ ├── main_impl.h │ │ └── tests_impl.h │ ├── recovery │ │ ├── Makefile.am.include │ │ ├── main_impl.h │ │ └── tests_impl.h │ └── schnorr │ │ ├── main_impl.h │ │ ├── schnorr.h │ │ ├── schnorr_impl.h │ │ └── tests_impl.h │ ├── num.h │ ├── num_gmp.h │ ├── num_gmp_impl.h │ ├── num_impl.h │ ├── scalar.h │ ├── scalar_4x64.h │ ├── scalar_4x64_impl.h │ ├── scalar_8x32.h │ ├── scalar_8x32_impl.h │ ├── scalar_impl.h │ ├── secp256k1.c │ ├── testrand.h │ ├── testrand_impl.h │ ├── tests.c │ └── util.h ├── serialize.h ├── shavite.c ├── simd.c ├── skein.c ├── sph_blake.h ├── sph_bmw.h ├── sph_cubehash.h ├── sph_echo.h ├── sph_fugue.h ├── sph_groestl.h ├── sph_hamsi.h ├── sph_jh.h ├── sph_keccak.h ├── sph_luffa.h ├── sph_shavite.h ├── sph_simd.h ├── sph_skein.h ├── sph_types.h ├── stable.h ├── stealth.cpp ├── stealth.h ├── strlcpy.h ├── sync.cpp ├── sync.h ├── tor ├── LICENSE ├── address.c ├── address.h ├── addressmap.c ├── addressmap.h ├── aes.c ├── aes.h ├── backtrace.c ├── backtrace.h ├── buffers.c ├── buffers.h ├── channel.c ├── channel.h ├── channeltls.c ├── channeltls.h ├── ciphers.inc ├── circpathbias.c ├── circpathbias.h ├── circuitbuild.c ├── circuitbuild.h ├── circuitlist.c ├── circuitlist.h ├── circuitmux.c ├── circuitmux.h ├── circuitmux_ewma.c ├── circuitmux_ewma.h ├── circuitstats.c ├── circuitstats.h ├── circuituse.c ├── circuituse.h ├── cloak.cpp ├── cloak.h ├── command.c ├── command.h ├── common_sha1.i ├── compat.c ├── compat_libevent.c ├── compat_libevent.h ├── config.c ├── config.h ├── config_codedigest.c ├── confparse.c ├── confparse.h ├── connection.c ├── connection.h ├── connection_edge.c ├── connection_edge.h ├── connection_or.c ├── connection_or.h ├── container.c ├── container.h ├── control.c ├── control.h ├── cpuworker.c ├── cpuworker.h ├── crypto.c ├── crypto.h ├── crypto_curve25519.c ├── crypto_curve25519.h ├── crypto_format.c ├── curve25519-donna.c ├── di_ops.c ├── di_ops.h ├── directory.c ├── directory.h ├── dirserv.c ├── dirserv.h ├── dirvote.c ├── dirvote.h ├── dns.c ├── dns.h ├── dnsserv.c ├── dnsserv.h ├── entrynodes.c ├── entrynodes.h ├── eventdns.h ├── eventdns_tor.h ├── ext_orport.c ├── ext_orport.h ├── fp_pair.c ├── fp_pair.h ├── geoip.c ├── geoip.h ├── hibernate.c ├── hibernate.h ├── ht.h ├── log.c ├── memarea.c ├── memarea.h ├── mempool.c ├── mempool.h ├── microdesc.c ├── microdesc.h ├── networkstatus.c ├── networkstatus.h ├── nodelist.c ├── nodelist.h ├── ntmain.h ├── onion.c ├── onion.h ├── onion_fast.c ├── onion_fast.h ├── onion_main.c ├── onion_main.h ├── onion_ntor.c ├── onion_ntor.h ├── onion_tap.c ├── onion_tap.h ├── or.h ├── or_sha1.i ├── orconfig.h ├── orconfig_apple.h ├── orconfig_linux.h ├── orconfig_win32.h ├── policies.c ├── policies.h ├── procmon.c ├── procmon.h ├── reasons.c ├── reasons.h ├── relay.c ├── relay.h ├── rendclient.c ├── rendclient.h ├── rendcommon.c ├── rendcommon.h ├── rendmid.c ├── rendmid.h ├── rendservice.c ├── rendservice.h ├── rephist.c ├── rephist.h ├── replaycache.c ├── replaycache.h ├── router.c ├── router.h ├── routerlist.c ├── routerlist.h ├── routerparse.c ├── routerparse.h ├── routerset.c ├── routerset.h ├── sandbox.c ├── sandbox.h ├── statefile.c ├── statefile.h ├── status.c ├── status.h ├── strlcat.c ├── strlcpy.c ├── testsupport.h ├── tinytest.h ├── tinytest_macros.h ├── tor_compat.h ├── tor_queue.h ├── tor_util.c ├── tor_util.h ├── torgzip.c ├── torgzip.h ├── torint.h ├── torlog.h ├── tortls.c ├── tortls.h ├── transports.c ├── transports.h └── util_codedigest.c ├── txdb-bdb.cpp ├── txdb-bdb.h ├── txdb-leveldb.cpp ├── txdb-leveldb.h ├── txdb.h ├── ui_interface.h ├── uint256.h ├── unzip ├── unzipper.cpp └── unzipper.h ├── unzipper.cpp ├── util.cpp ├── util.h ├── version.cpp ├── version.h ├── wallet.cpp ├── wallet.h ├── walletdb.cpp └── walletdb.h /COPYING: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 CloakCoin Developers 2 | Copyright (c) 2013 NovaCoin Developers 3 | Copyright (c) 2011-2012 PPCoin Developers 4 | Copyright (c) 2009-2012 Bitcoin Developers 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /INSTALL: -------------------------------------------------------------------------------- 1 | Building CloakCoin 2 | 3 | See doc/readme-qt.rst for instructions on building CloakCoin QT, 4 | the intended-for-end-users, nice-graphical-interface, reference 5 | implementation of CloakCoin. 6 | 7 | See doc/build-*.txt for instructions on building CloakCoind, 8 | the intended-for-services, no-graphical-interface, reference 9 | implementation of CloakCoin. 10 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | README.md -------------------------------------------------------------------------------- /bw32.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | MXE_PATH="/root/Desktop/mxe" 3 | 4 | echo "Building CGB QT Wallet for Win32 x86 2..." 5 | echo "MXEPATH = $MXE_PATH" 6 | 7 | export PATH=$MXE_PATH/usr/bin:$PATH 8 | 9 | $MXE_PATH/usr/i686-pc-mingw32.static/qt/bin/qmake USE_MXE=1 USE_LEVELDB=1 USE_QRCODE=1 && make 10 | read -p "Press any key to exit... " -n1 -s -------------------------------------------------------------------------------- /cloakcoin-qt_plugin_import.cpp: -------------------------------------------------------------------------------- 1 | // This file is autogenerated by qmake. It imports static plugin classes for 2 | // static plugins specified using QTPLUGIN and QT_PLUGIN_CLASS. variables. 3 | #include 4 | Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin) 5 | Q_IMPORT_PLUGIN(QICOPlugin) 6 | Q_IMPORT_PLUGIN(QGenericEnginePlugin) 7 | Q_IMPORT_PLUGIN(QNativeWifiEnginePlugin) 8 | -------------------------------------------------------------------------------- /cloakcoind/nbproject/private/CodeAssistancePathMapper.properties: -------------------------------------------------------------------------------- 1 | # Automatic path mapper. CRC = 1 2 | -------------------------------------------------------------------------------- /cloakcoind/nbproject/private/private.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | 6 | 7 | 0 8 | 0 9 | 10 | 11 | 12 | 13 | file:/root/Documents/cloak/cpa3/src/makefile.unix 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /cloakcoind/nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.netbeans.modules.cnd.makeproject 4 | 5 | 6 | cloakcoind 7 | c,i 8 | cpp,mm 9 | h,inc 10 | UTF-8 11 | 12 | 13 | ../src 14 | 15 | 16 | 17 | Default 18 | 0 19 | 20 | 21 | 22 | false 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /contrib/gitian-downloader/bluematt-key.pgp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/contrib/gitian-downloader/bluematt-key.pgp -------------------------------------------------------------------------------- /contrib/gitian-downloader/devrandom-key.pgp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/contrib/gitian-downloader/devrandom-key.pgp -------------------------------------------------------------------------------- /contrib/gitian-downloader/gavinandresen-key.pgp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/contrib/gitian-downloader/gavinandresen-key.pgp -------------------------------------------------------------------------------- /contrib/gitian-downloader/linux-download-config: -------------------------------------------------------------------------------- 1 | --- 2 | name: bitcoin 3 | urls: 4 | - http://bitcoin.org/bitcoin-latest-linux-gitian.zip 5 | rss: 6 | - url: http://sourceforge.net/api/file/index/project-id/244765/mtime/desc/limit/100/rss 7 | xpath: //item/link/text() 8 | pattern: bitcoin-\d+.\d+.\d+-linux-gitian.zip 9 | signers: 10 | 0A82509767C7D4A5D14DA2301AE1D35043E08E54: 11 | weight: 40 12 | name: BlueMatt 13 | key: bluematt 14 | BF6273FAEF7CC0BA1F562E50989F6B3048A116B5: 15 | weight: 40 16 | name: Devrandom 17 | key: devrandom 18 | E463A93F5F3117EEDE6C7316BD02942421F4889F: 19 | weight: 40 20 | name: Luke-Jr 21 | key: luke-jr 22 | D762373D24904A3E42F33B08B9A408E71DAAC974: 23 | weight: 40 24 | name: "Pieter Wuille" 25 | key: sipa 26 | 77E72E69DA7EE0A148C06B21B34821D4944DE5F7: 27 | weight: 40 28 | name: tcatm 29 | key: tcatm 30 | 01CDF4627A3B88AAE4A571C87588242FBE38D3A8: 31 | weight: 40 32 | name: "Gavin Andresen" 33 | key: gavinandresen 34 | 71A3B16735405025D447E8F274810B012346C9A6: 35 | weight: 40 36 | name: "Wladimir J. van der Laan" 37 | key: laanwj 38 | minimum_weight: 120 39 | -------------------------------------------------------------------------------- /contrib/gitian-downloader/luke-jr-key.pgp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/contrib/gitian-downloader/luke-jr-key.pgp -------------------------------------------------------------------------------- /contrib/gitian-downloader/sipa-key.pgp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/contrib/gitian-downloader/sipa-key.pgp -------------------------------------------------------------------------------- /contrib/gitian-downloader/tcatm-key.pgp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/contrib/gitian-downloader/tcatm-key.pgp -------------------------------------------------------------------------------- /contrib/gitian-downloader/win32-download-config: -------------------------------------------------------------------------------- 1 | --- 2 | name: bitcoin 3 | urls: 4 | - http://bitcoin.org/bitcoin-latest-win32-gitian.zip 5 | rss: 6 | - url: http://sourceforge.net/api/file/index/project-id/244765/mtime/desc/limit/100/rss 7 | xpath: //item/link/text() 8 | pattern: bitcoin-\d+.\d+.\d+-win32-gitian.zip 9 | signers: 10 | 0A82509767C7D4A5D14DA2301AE1D35043E08E54: 11 | weight: 40 12 | name: BlueMatt 13 | key: bluematt 14 | BF6273FAEF7CC0BA1F562E50989F6B3048A116B5: 15 | weight: 40 16 | name: Devrandom 17 | key: devrandom 18 | E463A93F5F3117EEDE6C7316BD02942421F4889F: 19 | weight: 40 20 | name: Luke-Jr 21 | key: luke-jr 22 | D762373D24904A3E42F33B08B9A408E71DAAC974: 23 | weight: 40 24 | name: "Pieter Wuille" 25 | key: sipa 26 | 77E72E69DA7EE0A148C06B21B34821D4944DE5F7: 27 | weight: 40 28 | name: tcatm 29 | key: tcatm 30 | 01CDF4627A3B88AAE4A571C87588242FBE38D3A8: 31 | weight: 40 32 | name: "Gavin Andresen" 33 | key: gavinandresen 34 | 71A3B16735405025D447E8F274810B012346C9A6: 35 | weight: 40 36 | name: "Wladimir J. van der Laan" 37 | key: laanwj 38 | minimum_weight: 120 39 | -------------------------------------------------------------------------------- /contrib/innosetup/libcurl.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/contrib/innosetup/libcurl.dll -------------------------------------------------------------------------------- /contrib/innosetup/libeay32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/contrib/innosetup/libeay32.dll -------------------------------------------------------------------------------- /contrib/innosetup/libidn-11.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/contrib/innosetup/libidn-11.dll -------------------------------------------------------------------------------- /contrib/innosetup/librtmp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/contrib/innosetup/librtmp.dll -------------------------------------------------------------------------------- /contrib/innosetup/libssh2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/contrib/innosetup/libssh2.dll -------------------------------------------------------------------------------- /contrib/innosetup/logo-164x314.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/contrib/innosetup/logo-164x314.bmp -------------------------------------------------------------------------------- /contrib/innosetup/logo-55x58.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/contrib/innosetup/logo-55x58.bmp -------------------------------------------------------------------------------- /contrib/innosetup/ssleay32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/contrib/innosetup/ssleay32.dll -------------------------------------------------------------------------------- /contrib/innosetup/unzipper.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/contrib/innosetup/unzipper.dll -------------------------------------------------------------------------------- /contrib/innosetup/zlib1.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/contrib/innosetup/zlib1.dll -------------------------------------------------------------------------------- /contrib/macdeploy/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/contrib/macdeploy/background.png -------------------------------------------------------------------------------- /contrib/macdeploy/background.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/contrib/macdeploy/background.psd -------------------------------------------------------------------------------- /contrib/macdeploy/fancy.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | window_bounds 6 | 7 | 300 8 | 300 9 | 800 10 | 620 11 | 12 | background_picture 13 | background.png 14 | icon_size 15 | 96 16 | applications_symlink 17 | 18 | items_position 19 | 20 | Applications 21 | 22 | 370 23 | 156 24 | 25 | CloakCoin-Qt.app 26 | 27 | 128 28 | 156 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /contrib/macdeploy/notes.txt: -------------------------------------------------------------------------------- 1 | 2 | macdeployqtplus works best on OS X Lion, for Snow Leopard you'd need to install 3 | Python 2.7 and make it your default Python installation. 4 | 5 | You will need the appscript package for the fancy disk image creation to work. 6 | Install it by invoking "sudo easy_install appscript". 7 | 8 | Ths script should be invoked in the target directory like this: 9 | $source_dir/contrib/macdeploy/macdeployqtplus CloakCoin-Qt.app -add-qt-tr da,de,es,hu,ru,uk,zh_CN,zh_TW -dmg -fancy $source_dir/contrib/macdeploy/fancy.plist -verbose 2 10 | 11 | During the process, the disk image window will pop up briefly where the fancy 12 | settings are applied. This is normal, please do not interfere. 13 | 14 | You can also set up Qt Creator for invoking the script. For this, go to the 15 | "Projects" tab on the left side, switch to "Run Settings" above and add a 16 | deploy configuration. Next add a deploy step choosing "Custom Process Step". 17 | Fill in the following. 18 | 19 | Enable custom process step: [x] 20 | Command: %{sourceDir}/contrib/macdeploy/macdeployqtplus 21 | Working directory: %{buildDir} 22 | Command arguments: CloakCoin-Qt.app -add-qt-tr da,de,es,hu,ru,uk,zh_CN,zh_TW -dmg -fancy %{sourceDir}/contrib/macdeploy/fancy.plist -verbose 2 23 | 24 | After that you can start the deployment process through the menu with 25 | Build -> Deploy Project "cloakcoin-qt" 26 | 27 | -------------------------------------------------------------------------------- /contrib/qt_translations.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Helpful little script that spits out a comma-separated list of 4 | # language codes for Qt icons that should be included 5 | # in binary bitcoin distributions 6 | 7 | import glob 8 | import os 9 | import re 10 | import sys 11 | 12 | if len(sys.argv) != 3: 13 | sys.exit("Usage: %s $QTDIR/translations $BITCOINDIR/src/qt/locale"%sys.argv[0]) 14 | 15 | d1 = sys.argv[1] 16 | d2 = sys.argv[2] 17 | 18 | l1 = set([ re.search(r'qt_(.*).qm', f).group(1) for f in glob.glob(os.path.join(d1, 'qt_*.qm')) ]) 19 | l2 = set([ re.search(r'bitcoin_(.*).qm', f).group(1) for f in glob.glob(os.path.join(d2, 'bitcoin_*.qm')) ]) 20 | 21 | print ",".join(sorted(l1.intersection(l2))) 22 | 23 | -------------------------------------------------------------------------------- /contrib/wallettools/walletchangepass.py: -------------------------------------------------------------------------------- 1 | from jsonrpc import ServiceProxy 2 | access = ServiceProxy("http://127.0.0.1:8332") 3 | pwd = raw_input("Enter old wallet passphrase: ") 4 | pwd2 = raw_input("Enter new wallet passphrase: ") 5 | access.walletpassphrasechange(pwd, pwd2) -------------------------------------------------------------------------------- /contrib/wallettools/walletunlock.py: -------------------------------------------------------------------------------- 1 | from jsonrpc import ServiceProxy 2 | access = ServiceProxy("http://127.0.0.1:8332") 3 | pwd = raw_input("Enter wallet passphrase: ") 4 | access.walletpassphrase(pwd, 60) -------------------------------------------------------------------------------- /doc/bitcoin_logo_doxygen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/doc/bitcoin_logo_doxygen.png -------------------------------------------------------------------------------- /ex_lib/libcurl/libcurl.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/ex_lib/libcurl/libcurl.a -------------------------------------------------------------------------------- /ex_lib/libcurl/libcurldll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/ex_lib/libcurl/libcurldll.a -------------------------------------------------------------------------------- /ex_lib/qrencode-3.4.1-1-mingw32-dev/lib/libqrencode.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/ex_lib/qrencode-3.4.1-1-mingw32-dev/lib/libqrencode.dll.a -------------------------------------------------------------------------------- /ex_lib/qrencode-3.4.1-1-mingw32-dev/lib/pkgconfig/libqrencode.pc: -------------------------------------------------------------------------------- 1 | prefix=/mingw 2 | exec_prefix=${prefix} 3 | libdir=${exec_prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: libqrencode 7 | Description: A QR Code encoding library 8 | Version: 3.4.1 9 | Libs: -L${libdir} -lqrencode 10 | Libs.private: -lpthread 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /keys.dat: -------------------------------------------------------------------------------- 1 | {"key": "b3fee072ff2d4bf892020a504bd34ca0","secret": "e4cda1ced21743ff95872b48227a1442"} -------------------------------------------------------------------------------- /libEvent.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/libEvent.dll.a -------------------------------------------------------------------------------- /libevent.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/libevent.a -------------------------------------------------------------------------------- /libevent/event2/bits/netdb.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _NETDB_H 19 | # error "Never include directly; use instead." 20 | #endif 21 | 22 | 23 | /* Description of data base entry for a single network. NOTE: here a 24 | poor assumption is made. The network number is expected to fit 25 | into an unsigned long int variable. */ 26 | struct netent 27 | { 28 | char *n_name; /* Official name of network. */ 29 | char **n_aliases; /* Alias list. */ 30 | int n_addrtype; /* Net address type. */ 31 | uint32_t n_net; /* Network number. */ 32 | }; 33 | -------------------------------------------------------------------------------- /rpc-server-test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 38 | 39 | 40 |
content
41 | 42 | -------------------------------------------------------------------------------- /share/genbuild.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | exit 0 4 | 5 | if [ $# -gt 0 ]; then 6 | FILE="$1" 7 | shift 8 | if [ -f "$FILE" ]; then 9 | INFO="$(head -n 1 "$FILE")" 10 | fi 11 | else 12 | echo "Usage: $0 " 13 | exit 1 14 | fi 15 | 16 | if [ -e "$(which git)" ]; then 17 | # clean 'dirty' status of touched files that haven't been modified 18 | git diff >/dev/null 2>/dev/null 19 | 20 | # get a string like "v0.6.0-66-g59887e8-dirty" 21 | DESC="$(git describe --dirty 2>/dev/null)" 22 | 23 | # get a string like "2012-04-10 16:27:19 +0200" 24 | TIME="$(git log -n 1 --format="%ci")" 25 | fi 26 | 27 | if [ -n "$DESC" ]; then 28 | NEWINFO="#define BUILD_DESC \"$DESC\"" 29 | else 30 | NEWINFO="// No build information available" 31 | fi 32 | 33 | # only update build.h if necessary 34 | if [ "$INFO" != "$NEWINFO" ]; then 35 | echo "$NEWINFO" >"$FILE" 36 | echo "#define BUILD_DATE \"$TIME\"" >>"$FILE" 37 | fi 38 | -------------------------------------------------------------------------------- /share/pixmaps/addressbook16.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/share/pixmaps/addressbook16.bmp -------------------------------------------------------------------------------- /share/pixmaps/addressbook16mask.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/share/pixmaps/addressbook16mask.bmp -------------------------------------------------------------------------------- /share/pixmaps/addressbook20.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/share/pixmaps/addressbook20.bmp -------------------------------------------------------------------------------- /share/pixmaps/addressbook20mask.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/share/pixmaps/addressbook20mask.bmp -------------------------------------------------------------------------------- /share/pixmaps/bitcoin-bc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/share/pixmaps/bitcoin-bc.ico -------------------------------------------------------------------------------- /share/pixmaps/bitcoin.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/share/pixmaps/bitcoin.ico -------------------------------------------------------------------------------- /share/pixmaps/check.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/share/pixmaps/check.ico -------------------------------------------------------------------------------- /share/pixmaps/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/share/pixmaps/favicon.ico -------------------------------------------------------------------------------- /share/pixmaps/nsis-header.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/share/pixmaps/nsis-header.bmp -------------------------------------------------------------------------------- /share/pixmaps/nsis-wizard.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/share/pixmaps/nsis-wizard.bmp -------------------------------------------------------------------------------- /share/pixmaps/send16.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/share/pixmaps/send16.bmp -------------------------------------------------------------------------------- /share/pixmaps/send16mask.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/share/pixmaps/send16mask.bmp -------------------------------------------------------------------------------- /share/pixmaps/send16masknoshadow.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/share/pixmaps/send16masknoshadow.bmp -------------------------------------------------------------------------------- /share/pixmaps/send20.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/share/pixmaps/send20.bmp -------------------------------------------------------------------------------- /share/pixmaps/send20mask.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/share/pixmaps/send20mask.bmp -------------------------------------------------------------------------------- /share/qt/img/reload.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/share/qt/img/reload.xcf -------------------------------------------------------------------------------- /share/qt/make_spinner.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # W.J. van der Laan, 2011 3 | # Make spinning .mng animation from a .png 4 | # Requires imagemagick 6.7+ 5 | from __future__ import division 6 | from os import path 7 | from PIL import Image 8 | from subprocess import Popen 9 | 10 | SRC='img/reload_scaled.png' 11 | DST='../../src/qt/res/movies/update_spinner.mng' 12 | TMPDIR='/tmp' 13 | TMPNAME='tmp-%03i.png' 14 | NUMFRAMES=35 15 | FRAMERATE=10.0 16 | CONVERT='convert' 17 | CLOCKWISE=True 18 | DSIZE=(16,16) 19 | 20 | im_src = Image.open(SRC) 21 | 22 | if CLOCKWISE: 23 | im_src = im_src.transpose(Image.FLIP_LEFT_RIGHT) 24 | 25 | def frame_to_filename(frame): 26 | return path.join(TMPDIR, TMPNAME % frame) 27 | 28 | frame_files = [] 29 | for frame in xrange(NUMFRAMES): 30 | rotation = (frame + 0.5) / NUMFRAMES * 360.0 31 | if CLOCKWISE: 32 | rotation = -rotation 33 | im_new = im_src.rotate(rotation, Image.BICUBIC) 34 | im_new.thumbnail(DSIZE, Image.ANTIALIAS) 35 | outfile = frame_to_filename(frame) 36 | im_new.save(outfile, 'png') 37 | frame_files.append(outfile) 38 | 39 | p = Popen([CONVERT, "-delay", str(FRAMERATE), "-dispose", "2"] + frame_files + [DST]) 40 | p.communicate() 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /share/qt/make_windows_icon.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # create multiresolution windows icon 3 | ICON_DST=../../src/qt/res/icons/CloakCoin.ico 4 | 5 | convert ../../src/qt/res/icons/CloakCoin-16.png ../../src/qt/res/icons/CloakCoin-32.png ../../src/qt/res/icons/CloakCoin-48.png ${ICON_DST} 6 | -------------------------------------------------------------------------------- /share/ui.rc: -------------------------------------------------------------------------------- 1 | BottleCaps ICON "pixmaps/BottleCaps.ico" 2 | 3 | #include "wx/msw/wx.rc" 4 | 5 | check ICON "pixmaps/check.ico" 6 | send16 BITMAP "pixmaps/send16.bmp" 7 | send16mask BITMAP "pixmaps/send16mask.bmp" 8 | send16masknoshadow BITMAP "pixmaps/send16masknoshadow.bmp" 9 | send20 BITMAP "pixmaps/send20.bmp" 10 | send20mask BITMAP "pixmaps/send20mask.bmp" 11 | addressbook16 BITMAP "pixmaps/addressbook16.bmp" 12 | addressbook16mask BITMAP "pixmaps/addressbook16mask.bmp" 13 | addressbook20 BITMAP "pixmaps/addressbook20.bmp" 14 | addressbook20mask BITMAP "pixmaps/addressbook20mask.bmp" 15 | favicon ICON "pixmaps/favicon.ico" 16 | -------------------------------------------------------------------------------- /src/build_osx.txt: -------------------------------------------------------------------------------- 1 | BUILD BOOST 1.57 2 | 3 | ./bootstrap.sh toolset=clang 4 | 5 | ./b2 --build-type=complete --with-chrono --with-filesystem --with-program_options --with-system --with-thread variant=release link=static threading=multi runtime-link=static -a stage --layout=versioned -j4 toolset=clang cxxflags="-stdlib=libc++" linkflags="-stdlib=libc++" 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/clientversion.h: -------------------------------------------------------------------------------- 1 | #ifndef CLIENTVERSION_H 2 | #define CLIENTVERSION_H 3 | 4 | // 5 | // client versioning 6 | // 7 | 8 | // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it 9 | #define CLIENT_VERSION_MAJOR 0 10 | #define CLIENT_VERSION_MINOR 7 11 | #define CLIENT_VERSION_REVISION 8 12 | #define CLIENT_VERSION_BUILD 0 13 | 14 | // Copyright year (2009-this) 15 | // Todo: update this when changing our copyright comments in the source 16 | #define COPYRIGHT_YEAR 2018 17 | 18 | // Converts the parameter X to a string after macro replacement on X has been performed. 19 | // Don't merge these into one macro! 20 | #define STRINGIZE(X) DO_STRINGIZE(X) 21 | #define DO_STRINGIZE(X) #X 22 | 23 | #endif // CLIENTVERSION_H 24 | -------------------------------------------------------------------------------- /src/cloakexception.cpp: -------------------------------------------------------------------------------- 1 | #include "cloakexception.h" 2 | 3 | CloakException::CloakException() 4 | { 5 | 6 | } 7 | -------------------------------------------------------------------------------- /src/cloakexception.h: -------------------------------------------------------------------------------- 1 | #ifndef CLOAKEXCEPTION_H 2 | #define CLOAKEXCEPTION_H 3 | 4 | #include "main.h" 5 | 6 | class CloakException : std::exception 7 | { 8 | public: 9 | CloakException(); 10 | }; 11 | 12 | class EnigmaException : CloakException 13 | { 14 | 15 | }; 16 | 17 | class EnigmaSignException : EnigmaException 18 | { 19 | 20 | }; 21 | 22 | 23 | #endif // CLOAKEXCEPTION_H 24 | 25 | -------------------------------------------------------------------------------- /src/cloakhelpers.cpp: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/cloakhelpers.h: -------------------------------------------------------------------------------- 1 | #ifndef CLOAKHELPERS 2 | #define CLOAKHELPERS 3 | 4 | #endif // CLOAKHELPERS 5 | 6 | -------------------------------------------------------------------------------- /src/coincontrol.h: -------------------------------------------------------------------------------- 1 | #ifndef COINCONTROL_H 2 | #define COINCONTROL_H 3 | 4 | /** Coin Control Features. */ 5 | class CCoinControl 6 | { 7 | public: 8 | CTxDestination destChange; 9 | 10 | CCoinControl() 11 | { 12 | SetNull(); 13 | } 14 | 15 | void SetNull() 16 | { 17 | destChange = CNoDestination(); 18 | setSelected.clear(); 19 | } 20 | 21 | bool HasSelected() const 22 | { 23 | return (setSelected.size() > 0); 24 | } 25 | 26 | bool IsSelected(const uint256& hash, unsigned int n) const 27 | { 28 | COutPoint outpt(hash, n); 29 | return (setSelected.count(outpt) > 0); 30 | } 31 | 32 | void Select(COutPoint& output) 33 | { 34 | setSelected.insert(output); 35 | } 36 | 37 | void UnSelect(COutPoint& output) 38 | { 39 | setSelected.erase(output); 40 | } 41 | 42 | void UnSelectAll() 43 | { 44 | setSelected.clear(); 45 | } 46 | 47 | void ListSelected(std::vector& vOutpoints) 48 | { 49 | vOutpoints.assign(setSelected.begin(), setSelected.end()); 50 | } 51 | 52 | private: 53 | std::set setSelected; 54 | 55 | }; 56 | 57 | #endif // COINCONTROL_H 58 | -------------------------------------------------------------------------------- /src/conemarketcreatelisting.cpp: -------------------------------------------------------------------------------- 1 | #include "conemarketcreatelisting.h" 2 | 3 | COneMarketCreateListing::COneMarketCreateListing() 4 | { 5 | SetNull(); 6 | printf("OneMarket: COneMarketCreateListing::init\n"); 7 | } 8 | 9 | COneMarketCreateListing::~COneMarketCreateListing(){ 10 | 11 | } 12 | 13 | bool COneMarketCreateListing::RelayTo(CNode* pnode) const 14 | { 15 | printf("OneMarket: COneMarketCreateListing::RelayTo node\n"); 16 | pnode->PushMessage("createlisting", *this); 17 | return true; 18 | } 19 | 20 | void COneMarketCreateListing::SetNull() 21 | { 22 | message.clear(); 23 | } 24 | 25 | void COneMarketCreateListing::SetMessage(std::string theMessage) 26 | { 27 | printf("OneMarket: COneMarketCreateListing Set Message=%s",theMessage.c_str()); 28 | message = theMessage; 29 | } 30 | -------------------------------------------------------------------------------- /src/conemarketcreatelisting.h: -------------------------------------------------------------------------------- 1 | #ifndef CONEMARKETCREATELISTING_H 2 | #define CONEMARKETCREATELISTING_H 3 | 4 | #include 5 | #include 6 | 7 | #include "uint256.h" 8 | #include "util.h" 9 | #include "sync.h" 10 | #include "net.h" 11 | 12 | class CNode; 13 | 14 | class COneMarketCreateListing 15 | { 16 | public: 17 | int nVersion; 18 | std::string message; 19 | 20 | COneMarketCreateListing(); 21 | ~COneMarketCreateListing(); 22 | 23 | IMPLEMENT_SERIALIZE 24 | ( 25 | READWRITE(this->nVersion); 26 | READWRITE(message); 27 | ) 28 | 29 | bool RelayTo(CNode* pnode) const; 30 | void SetNull(); 31 | void SetMessage(std::string); 32 | }; 33 | 34 | #endif // CONEMARKETCREATELISTING_H 35 | -------------------------------------------------------------------------------- /src/enigma/enigmapeer.h: -------------------------------------------------------------------------------- 1 | #ifndef CLOAKNODE_H 2 | #define CLOAKNODE_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | #include "uint256.h" 11 | #include "../serialize.h" 12 | #include "../sync.h" 13 | 14 | using std::string; 15 | 16 | class CEnigmaPeer 17 | { 18 | public: 19 | CEnigmaPeer(string pubkey); 20 | 21 | string peerPubkey; 22 | string secret; 23 | bool onionRoutingEnabled; 24 | 25 | bool isBanned(); 26 | bool canOnionRoute(); 27 | int64 bannedUntil; 28 | 29 | private: 30 | 31 | 32 | }; 33 | 34 | class CEnigmaPeerManager 35 | { 36 | public: 37 | CEnigmaPeerManager(); 38 | bool IsEmigmaPeerBanned(string nodePubKey); 39 | void SendMessageToNode(string nodePubKey, string message); 40 | int64 BanPeer(string nodePubKey, int64 bantimeSecs, string message); 41 | void ClearBan(string nodePubKey); 42 | 43 | private: 44 | CCriticalSection cs_enigmaPeers; 45 | std::map nodes; 46 | 47 | CEnigmaPeer& GetNode(string nodePubKey); 48 | }; 49 | 50 | #endif // CLOAKNODE_H 51 | -------------------------------------------------------------------------------- /src/enigma/pow.h: -------------------------------------------------------------------------------- 1 | /* 2 | This program is free software: you can redistribute it and/or modify 3 | it under the terms of the GNU General Public License as published by 4 | the Free Software Foundation, either version 3 of the License, or 5 | (at your option) any later version. 6 | This program is distributed in the hope that it will be useful, 7 | but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 9 | GNU General Public License for more details. 10 | You should have received a copy of the GNU General Public License 11 | along with this program. If not, see . 12 | */ 13 | // CONTRIBUTORS AND COPYRIGHT HOLDERS (c) 2013: 14 | // Bob Mottram (bob@robotics.uk.to) 15 | // Dag Robøle (BM-2DAS9BAs92wLKajVy9DS1LFcDiey5dxp5c) 16 | 17 | #ifndef POW_H 18 | #define POW_H 19 | /* 20 | #include 21 | #include 22 | 23 | #define PAYLOAD_LENGTH_EXTRA_BYTES 14000 24 | #define AVERAGE_PROOF_OF_WORK_NONCE_TRIALS_PER_BYTE 1//320 25 | 26 | typedef std::vector SecureVector; 27 | 28 | SecureVector HashX13(const SecureVector& data); 29 | SecureVector HashX13_2(const SecureVector& data); 30 | uint64_t generate_nonce(const SecureVector& payload, bool parallel = false); 31 | bool validate_nonce(const SecureVector& payload); 32 | */ 33 | #endif 34 | -------------------------------------------------------------------------------- /src/filedownloader.h: -------------------------------------------------------------------------------- 1 | #ifndef FILEDOWNLOADER_H 2 | #define FILEDOWNLOADER_H 3 | 4 | #define USE_CURL_DOWNLOADER 0 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | class FileDownloader : public QObject 14 | { 15 | Q_OBJECT 16 | public: 17 | explicit FileDownloader(QUrl imageUrl, QObject *parent = 0); 18 | virtual ~FileDownloader(); 19 | 20 | signals: 21 | void downloaded(); 22 | void gotBytes(const char*, int); 23 | void progressUpdated(qint64, qint64); 24 | 25 | private slots: 26 | void fileDownloaded(); 27 | void httpReadyRead(); 28 | void error(QNetworkReply::NetworkError); 29 | void onprogress(qint64, qint64); 30 | 31 | private: 32 | QNetworkAccessManager m_WebCtrl; 33 | QNetworkReply* reply; 34 | int downloadWithCurl(std::string downloadUrl, std::string savePath); 35 | static size_t write_data(void *ptr, size_t size, size_t nmemb, FILE *stream); 36 | static int older_progress(void *p, 37 | double dltotal, double dlnow, 38 | double ultotal, double ulnow); 39 | static int xferinfo(void *p, 40 | curl_off_t dltotal, curl_off_t dlnow, 41 | curl_off_t ultotal, curl_off_t ulnow); 42 | }; 43 | 44 | #endif // FILEDOWNLOADER_H 45 | -------------------------------------------------------------------------------- /src/hdkey.h: -------------------------------------------------------------------------------- 1 | #ifndef HDKEY_H 2 | #define HDKEY_H 3 | 4 | #include 5 | #include 6 | 7 | #include "allocators.h" 8 | #include "serialize.h" 9 | #include "uint256.h" 10 | #include "util.h" 11 | 12 | #include // for EC_KEY definition 13 | 14 | using namespace std; 15 | 16 | extern void hmacSha512(unsigned char *out, const unsigned char *key, const unsigned int key_length, const unsigned char *text, const unsigned int text_length); 17 | 18 | class HDSeed 19 | { 20 | public: 21 | HDSeed(const unsigned char* seed) 22 | { 23 | const unsigned char* seedval = (const unsigned char*)"426974636f696e2073656564"; 24 | 25 | unsigned char a[64]; 26 | hmacSha512(a, seedval, sizeof(seedval), seed, sizeof(seed)); 27 | vector hmac(a, a + sizeof(a)/sizeof(*a)); 28 | master_key_.assign(hmac.begin(), hmac.begin() + 32); 29 | master_chain_code_.assign(hmac.begin() + 32, hmac.end()); 30 | } 31 | 32 | const vector& getSeed() const { return seed_; } 33 | const vector& getMasterKey() const { return master_key_; } 34 | const vector& getMasterChainCode() const { return master_chain_code_; } 35 | 36 | private: 37 | vector seed_; 38 | vector master_key_; 39 | vector master_chain_code_; 40 | }; 41 | 42 | #endif // HDKEY_H 43 | -------------------------------------------------------------------------------- /src/init.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2012 The Bitcoin developers 3 | // Distributed under the MIT/X11 software license, see the accompanying 4 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | #ifndef BITCOIN_INIT_H 6 | #define BITCOIN_INIT_H 7 | 8 | #include "wallet.h" 9 | 10 | /* The help message mode determines what help message to show */ 11 | enum HelpMessageMode 12 | { 13 | HMM_BITCOIND, 14 | HMM_BITCOIN_QT 15 | }; 16 | 17 | extern CWallet* pwalletMain; 18 | 19 | void StartShutdown(); 20 | void Shutdown(void* parg); 21 | bool AppInit2(boost::thread_group& threadGroup); 22 | std::string HelpMessage(HelpMessageMode hmm); 23 | 24 | 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /src/irc.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2012 The Bitcoin developers 3 | // Distributed under the MIT/X11 software license, see the accompanying 4 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | #ifndef BITCOIN_IRC_H 6 | #define BITCOIN_IRC_H 7 | 8 | void ThreadIRCSeed(void* parg); 9 | 10 | extern int nGotIRCAddresses; 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /src/json/LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2007 - 2009 John W. Wilkinson 4 | 5 | Permission is hereby granted, free of charge, to any person 6 | obtaining a copy of this software and associated documentation 7 | files (the "Software"), to deal in the Software without 8 | restriction, including without limitation the rights to use, 9 | copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the 11 | Software is furnished to do so, subject to the following 12 | conditions: 13 | 14 | The above copyright notice and this permission notice shall be 15 | included in all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 19 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 20 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 21 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 23 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 24 | OTHER DEALINGS IN THE SOFTWARE. 25 | -------------------------------------------------------------------------------- /src/json/json_spirit.h: -------------------------------------------------------------------------------- 1 | #ifndef JSON_SPIRIT 2 | #define JSON_SPIRIT 3 | 4 | // Copyright John W. Wilkinson 2007 - 2009. 5 | // Distributed under the MIT License, see accompanying file LICENSE.txt 6 | 7 | // json spirit version 4.03 8 | 9 | #if defined(_MSC_VER) && (_MSC_VER >= 1020) 10 | # pragma once 11 | #endif 12 | 13 | #include "json_spirit_value.h" 14 | #include "json_spirit_reader.h" 15 | #include "json_spirit_writer.h" 16 | #include "json_spirit_utils.h" 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /src/json/json_spirit_value.cpp: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2007 John W Wilkinson 2 | 3 | This source code can be used for any purpose as long as 4 | this comment is retained. */ 5 | 6 | // json spirit version 2.00 7 | 8 | #include "json_spirit_value.h" 9 | -------------------------------------------------------------------------------- /src/leveldb/.gitignore: -------------------------------------------------------------------------------- 1 | build_config.mk 2 | *.o 3 | *.dylib* 4 | *.so 5 | *.so.* 6 | *_test 7 | db_bench 8 | leveldbutil 9 | Release 10 | Debug 11 | Benchmark 12 | vs2010.* 13 | -------------------------------------------------------------------------------- /src/leveldb/AUTHORS: -------------------------------------------------------------------------------- 1 | # Names should be added to this file like so: 2 | # Name or Organization 3 | 4 | Google Inc. 5 | 6 | # Initial version authors: 7 | Jeffrey Dean 8 | Sanjay Ghemawat 9 | 10 | # Partial list of contributors: 11 | Kevin Regan 12 | Johan Bilien 13 | -------------------------------------------------------------------------------- /src/leveldb/NEWS: -------------------------------------------------------------------------------- 1 | Release 1.2 2011-05-16 2 | ---------------------- 3 | 4 | Fixes for larger databases (tested up to one billion 100-byte entries, 5 | i.e., ~100GB). 6 | 7 | (1) Place hard limit on number of level-0 files. This fixes errors 8 | of the form "too many open files". 9 | 10 | (2) Fixed memtable management. Before the fix, a heavy write burst 11 | could cause unbounded memory usage. 12 | 13 | A fix for a logging bug where the reader would incorrectly complain 14 | about corruption. 15 | 16 | Allow public access to WriteBatch contents so that users can easily 17 | wrap a DB. 18 | -------------------------------------------------------------------------------- /src/leveldb/TODO: -------------------------------------------------------------------------------- 1 | ss 2 | - Stats 3 | 4 | db 5 | - Maybe implement DB::BulkDeleteForRange(start_key, end_key) 6 | that would blow away files whose ranges are entirely contained 7 | within [start_key..end_key]? For Chrome, deletion of obsolete 8 | object stores, etc. can be done in the background anyway, so 9 | probably not that important. 10 | - There have been requests for MultiGet. 11 | 12 | After a range is completely deleted, what gets rid of the 13 | corresponding files if we do no future changes to that range. Make 14 | the conditions for triggering compactions fire in more situations? 15 | -------------------------------------------------------------------------------- /src/leveldb/WINDOWS.md: -------------------------------------------------------------------------------- 1 | # Building LevelDB On Windows 2 | 3 | ## Prereqs 4 | 5 | Install the [Windows Software Development Kit version 7.1](http://www.microsoft.com/downloads/dlx/en-us/listdetailsview.aspx?FamilyID=6b6c21d2-2006-4afa-9702-529fa782d63b). 6 | 7 | Download and extract the [Snappy source distribution](http://snappy.googlecode.com/files/snappy-1.0.5.tar.gz) 8 | 9 | 1. Open the "Windows SDK 7.1 Command Prompt" : 10 | Start Menu -> "Microsoft Windows SDK v7.1" > "Windows SDK 7.1 Command Prompt" 11 | 2. Change the directory to the leveldb project 12 | 13 | ## Building the Static lib 14 | 15 | * 32 bit Version 16 | 17 | setenv /x86 18 | msbuild.exe /p:Configuration=Release /p:Platform=Win32 /p:Snappy=..\snappy-1.0.5 19 | 20 | * 64 bit Version 21 | 22 | setenv /x64 23 | msbuild.exe /p:Configuration=Release /p:Platform=x64 /p:Snappy=..\snappy-1.0.5 24 | 25 | 26 | ## Building and Running the Benchmark app 27 | 28 | * 32 bit Version 29 | 30 | setenv /x86 31 | msbuild.exe /p:Configuration=Benchmark /p:Platform=Win32 /p:Snappy=..\snappy-1.0.5 32 | Benchmark\leveldb.exe 33 | 34 | * 64 bit Version 35 | 36 | setenv /x64 37 | msbuild.exe /p:Configuration=Benchmark /p:Platform=x64 /p:Snappy=..\snappy-1.0.5 38 | x64\Benchmark\leveldb.exe 39 | 40 | -------------------------------------------------------------------------------- /src/leveldb/db/builder.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #ifndef STORAGE_LEVELDB_DB_BUILDER_H_ 6 | #define STORAGE_LEVELDB_DB_BUILDER_H_ 7 | 8 | #include "leveldb/status.h" 9 | 10 | namespace leveldb { 11 | 12 | struct Options; 13 | struct FileMetaData; 14 | 15 | class Env; 16 | class Iterator; 17 | class TableCache; 18 | class VersionEdit; 19 | 20 | // Build a Table file from the contents of *iter. The generated file 21 | // will be named according to meta->number. On success, the rest of 22 | // *meta will be filled with metadata about the generated table. 23 | // If no data is present in *iter, meta->file_size will be set to 24 | // zero, and no Table file will be produced. 25 | extern Status BuildTable(const std::string& dbname, 26 | Env* env, 27 | const Options& options, 28 | TableCache* table_cache, 29 | Iterator* iter, 30 | FileMetaData* meta); 31 | 32 | } // namespace leveldb 33 | 34 | #endif // STORAGE_LEVELDB_DB_BUILDER_H_ 35 | -------------------------------------------------------------------------------- /src/leveldb/db/db_iter.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #ifndef STORAGE_LEVELDB_DB_DB_ITER_H_ 6 | #define STORAGE_LEVELDB_DB_DB_ITER_H_ 7 | 8 | #include 9 | #include "leveldb/db.h" 10 | #include "db/dbformat.h" 11 | 12 | namespace leveldb { 13 | 14 | class DBImpl; 15 | 16 | // Return a new iterator that converts internal keys (yielded by 17 | // "*internal_iter") that were live at the specified "sequence" number 18 | // into appropriate user keys. 19 | extern Iterator* NewDBIterator( 20 | DBImpl* db, 21 | const Comparator* user_key_comparator, 22 | Iterator* internal_iter, 23 | SequenceNumber sequence, 24 | uint32_t seed); 25 | 26 | } // namespace leveldb 27 | 28 | #endif // STORAGE_LEVELDB_DB_DB_ITER_H_ 29 | -------------------------------------------------------------------------------- /src/leveldb/db/log_format.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | // 5 | // Log format information shared by reader and writer. 6 | // See ../doc/log_format.txt for more detail. 7 | 8 | #ifndef STORAGE_LEVELDB_DB_LOG_FORMAT_H_ 9 | #define STORAGE_LEVELDB_DB_LOG_FORMAT_H_ 10 | 11 | namespace leveldb { 12 | namespace log { 13 | 14 | enum RecordType { 15 | // Zero is reserved for preallocated files 16 | kZeroType = 0, 17 | 18 | kFullType = 1, 19 | 20 | // For fragments 21 | kFirstType = 2, 22 | kMiddleType = 3, 23 | kLastType = 4 24 | }; 25 | static const int kMaxRecordType = kLastType; 26 | 27 | static const int kBlockSize = 32768; 28 | 29 | // Header is checksum (4 bytes), length (2 bytes), type (1 byte). 30 | static const int kHeaderSize = 4 + 2 + 1; 31 | 32 | } // namespace log 33 | } // namespace leveldb 34 | 35 | #endif // STORAGE_LEVELDB_DB_LOG_FORMAT_H_ 36 | -------------------------------------------------------------------------------- /src/leveldb/helpers/memenv/memenv.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #ifndef STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_ 6 | #define STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_ 7 | 8 | namespace leveldb { 9 | 10 | class Env; 11 | 12 | // Returns a new environment that stores its data in memory and delegates 13 | // all non-file-storage tasks to base_env. The caller must delete the result 14 | // when it is no longer needed. 15 | // *base_env must remain live while the result is in use. 16 | Env* NewMemEnv(Env* base_env); 17 | 18 | } // namespace leveldb 19 | 20 | #endif // STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_ 21 | -------------------------------------------------------------------------------- /src/leveldb/include/leveldb/dumpfile.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #ifndef STORAGE_LEVELDB_INCLUDE_DUMPFILE_H_ 6 | #define STORAGE_LEVELDB_INCLUDE_DUMPFILE_H_ 7 | 8 | #include 9 | #include "leveldb/env.h" 10 | #include "leveldb/status.h" 11 | 12 | namespace leveldb { 13 | 14 | // Dump the contents of the file named by fname in text format to 15 | // *dst. Makes a sequence of dst->Append() calls; each call is passed 16 | // the newline-terminated text corresponding to a single item found 17 | // in the file. 18 | // 19 | // Returns a non-OK result if fname does not name a leveldb storage 20 | // file, or if the file cannot be read. 21 | Status DumpFile(Env* env, const std::string& fname, WritableFile* dst); 22 | 23 | } // namespace leveldb 24 | 25 | #endif // STORAGE_LEVELDB_INCLUDE_DUMPFILE_H_ 26 | -------------------------------------------------------------------------------- /src/leveldb/lib/win/x86/libleveldb.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/leveldb/lib/win/x86/libleveldb.a -------------------------------------------------------------------------------- /src/leveldb/lib/win/x86/libmemenv.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/leveldb/lib/win/x86/libmemenv.a -------------------------------------------------------------------------------- /src/leveldb/libleveldb.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/leveldb/libleveldb.a -------------------------------------------------------------------------------- /src/leveldb/libmemenv.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/leveldb/libmemenv.a -------------------------------------------------------------------------------- /src/leveldb/port/README: -------------------------------------------------------------------------------- 1 | This directory contains interfaces and implementations that isolate the 2 | rest of the package from platform details. 3 | 4 | Code in the rest of the package includes "port.h" from this directory. 5 | "port.h" in turn includes a platform specific "port_.h" file 6 | that provides the platform specific implementation. 7 | 8 | See port_posix.h for an example of what must be provided in a platform 9 | specific header file. 10 | 11 | -------------------------------------------------------------------------------- /src/leveldb/port/port.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #ifndef STORAGE_LEVELDB_PORT_PORT_H_ 6 | #define STORAGE_LEVELDB_PORT_PORT_H_ 7 | 8 | #include 9 | 10 | // Include the appropriate platform specific file below. If you are 11 | // porting to a new platform, see "port_example.h" for documentation 12 | // of what the new port_.h file must provide. 13 | #if defined(LEVELDB_PLATFORM_POSIX) 14 | # include "port/port_posix.h" 15 | #elif defined(LEVELDB_PLATFORM_CHROMIUM) 16 | # include "port/port_chromium.h" 17 | #elif defined(LEVELDB_PLATFORM_WINDOWS) 18 | # include "port/port_win.h" 19 | #endif 20 | 21 | #endif // STORAGE_LEVELDB_PORT_PORT_H_ 22 | -------------------------------------------------------------------------------- /src/leveldb/port/win/stdint.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | // MSVC didn't ship with this file until the 2010 version. 6 | 7 | #ifndef STORAGE_LEVELDB_PORT_WIN_STDINT_H_ 8 | #define STORAGE_LEVELDB_PORT_WIN_STDINT_H_ 9 | 10 | #if !defined(_MSC_VER) 11 | #error This file should only be included when compiling with MSVC. 12 | #endif 13 | 14 | // Define C99 equivalent types. 15 | typedef signed char int8_t; 16 | typedef signed short int16_t; 17 | typedef signed int int32_t; 18 | typedef signed long long int64_t; 19 | typedef unsigned char uint8_t; 20 | typedef unsigned short uint16_t; 21 | typedef unsigned int uint32_t; 22 | typedef unsigned long long uint64_t; 23 | 24 | #endif // STORAGE_LEVELDB_PORT_WIN_STDINT_H_ 25 | -------------------------------------------------------------------------------- /src/leveldb/table/block.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #ifndef STORAGE_LEVELDB_TABLE_BLOCK_H_ 6 | #define STORAGE_LEVELDB_TABLE_BLOCK_H_ 7 | 8 | #include 9 | #include 10 | #include "leveldb/iterator.h" 11 | 12 | namespace leveldb { 13 | 14 | struct BlockContents; 15 | class Comparator; 16 | 17 | class Block { 18 | public: 19 | // Initialize the block with the specified contents. 20 | explicit Block(const BlockContents& contents); 21 | 22 | ~Block(); 23 | 24 | size_t size() const { return size_; } 25 | Iterator* NewIterator(const Comparator* comparator); 26 | 27 | private: 28 | uint32_t NumRestarts() const; 29 | 30 | const char* data_; 31 | size_t size_; 32 | uint32_t restart_offset_; // Offset in data_ of restart array 33 | bool owned_; // Block owns data_[] 34 | 35 | // No copying allowed 36 | Block(const Block&); 37 | void operator=(const Block&); 38 | 39 | class Iter; 40 | }; 41 | 42 | } // namespace leveldb 43 | 44 | #endif // STORAGE_LEVELDB_TABLE_BLOCK_H_ 45 | -------------------------------------------------------------------------------- /src/leveldb/table/merger.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #ifndef STORAGE_LEVELDB_TABLE_MERGER_H_ 6 | #define STORAGE_LEVELDB_TABLE_MERGER_H_ 7 | 8 | namespace leveldb { 9 | 10 | class Comparator; 11 | class Iterator; 12 | 13 | // Return an iterator that provided the union of the data in 14 | // children[0,n-1]. Takes ownership of the child iterators and 15 | // will delete them when the result iterator is deleted. 16 | // 17 | // The result does no duplicate suppression. I.e., if a particular 18 | // key is present in K child iterators, it will be yielded K times. 19 | // 20 | // REQUIRES: n >= 0 21 | extern Iterator* NewMergingIterator( 22 | const Comparator* comparator, Iterator** children, int n); 23 | 24 | } // namespace leveldb 25 | 26 | #endif // STORAGE_LEVELDB_TABLE_MERGER_H_ 27 | -------------------------------------------------------------------------------- /src/leveldb/table/two_level_iterator.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #ifndef STORAGE_LEVELDB_TABLE_TWO_LEVEL_ITERATOR_H_ 6 | #define STORAGE_LEVELDB_TABLE_TWO_LEVEL_ITERATOR_H_ 7 | 8 | #include "leveldb/iterator.h" 9 | 10 | namespace leveldb { 11 | 12 | struct ReadOptions; 13 | 14 | // Return a new two level iterator. A two-level iterator contains an 15 | // index iterator whose values point to a sequence of blocks where 16 | // each block is itself a sequence of key,value pairs. The returned 17 | // two-level iterator yields the concatenation of all key/value pairs 18 | // in the sequence of blocks. Takes ownership of "index_iter" and 19 | // will delete it when no longer needed. 20 | // 21 | // Uses a supplied function to convert an index_iter value into 22 | // an iterator over the contents of the corresponding block. 23 | extern Iterator* NewTwoLevelIterator( 24 | Iterator* index_iter, 25 | Iterator* (*block_function)( 26 | void* arg, 27 | const ReadOptions& options, 28 | const Slice& index_value), 29 | void* arg, 30 | const ReadOptions& options); 31 | 32 | } // namespace leveldb 33 | 34 | #endif // STORAGE_LEVELDB_TABLE_TWO_LEVEL_ITERATOR_H_ 35 | -------------------------------------------------------------------------------- /src/leveldb/util/filter_policy.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #include "leveldb/filter_policy.h" 6 | 7 | namespace leveldb { 8 | 9 | FilterPolicy::~FilterPolicy() { } 10 | 11 | } // namespace leveldb 12 | -------------------------------------------------------------------------------- /src/leveldb/util/hash.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | // 5 | // Simple hash function used for internal data structures 6 | 7 | #ifndef STORAGE_LEVELDB_UTIL_HASH_H_ 8 | #define STORAGE_LEVELDB_UTIL_HASH_H_ 9 | 10 | #include 11 | #include 12 | 13 | namespace leveldb { 14 | 15 | extern uint32_t Hash(const char* data, size_t n, uint32_t seed); 16 | 17 | } 18 | 19 | #endif // STORAGE_LEVELDB_UTIL_HASH_H_ 20 | -------------------------------------------------------------------------------- /src/leveldb/util/histogram.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #ifndef STORAGE_LEVELDB_UTIL_HISTOGRAM_H_ 6 | #define STORAGE_LEVELDB_UTIL_HISTOGRAM_H_ 7 | 8 | #include 9 | 10 | namespace leveldb { 11 | 12 | class Histogram { 13 | public: 14 | Histogram() { } 15 | ~Histogram() { } 16 | 17 | void Clear(); 18 | void Add(double value); 19 | void Merge(const Histogram& other); 20 | 21 | std::string ToString() const; 22 | 23 | private: 24 | double min_; 25 | double max_; 26 | double num_; 27 | double sum_; 28 | double sum_squares_; 29 | 30 | enum { kNumBuckets = 154 }; 31 | static const double kBucketLimit[kNumBuckets]; 32 | double buckets_[kNumBuckets]; 33 | 34 | double Median() const; 35 | double Percentile(double p) const; 36 | double Average() const; 37 | double StandardDeviation() const; 38 | }; 39 | 40 | } // namespace leveldb 41 | 42 | #endif // STORAGE_LEVELDB_UTIL_HISTOGRAM_H_ 43 | -------------------------------------------------------------------------------- /src/leveldb/util/mutexlock.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #ifndef STORAGE_LEVELDB_UTIL_MUTEXLOCK_H_ 6 | #define STORAGE_LEVELDB_UTIL_MUTEXLOCK_H_ 7 | 8 | #include "port/port.h" 9 | #include "port/thread_annotations.h" 10 | 11 | namespace leveldb { 12 | 13 | // Helper class that locks a mutex on construction and unlocks the mutex when 14 | // the destructor of the MutexLock object is invoked. 15 | // 16 | // Typical usage: 17 | // 18 | // void MyClass::MyMethod() { 19 | // MutexLock l(&mu_); // mu_ is an instance variable 20 | // ... some complex code, possibly with multiple return paths ... 21 | // } 22 | 23 | class SCOPED_LOCKABLE MutexLock { 24 | public: 25 | explicit MutexLock(port::Mutex *mu) EXCLUSIVE_LOCK_FUNCTION(mu) 26 | : mu_(mu) { 27 | this->mu_->Lock(); 28 | } 29 | ~MutexLock() UNLOCK_FUNCTION() { this->mu_->Unlock(); } 30 | 31 | private: 32 | port::Mutex *const mu_; 33 | // No copying allowed 34 | MutexLock(const MutexLock&); 35 | void operator=(const MutexLock&); 36 | }; 37 | 38 | } // namespace leveldb 39 | 40 | 41 | #endif // STORAGE_LEVELDB_UTIL_MUTEXLOCK_H_ 42 | -------------------------------------------------------------------------------- /src/leveldb/util/options.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. See the AUTHORS file for names of contributors. 4 | 5 | #include "leveldb/options.h" 6 | 7 | #include "leveldb/comparator.h" 8 | #include "leveldb/env.h" 9 | 10 | namespace leveldb { 11 | 12 | Options::Options() 13 | : comparator(BytewiseComparator()), 14 | create_if_missing(false), 15 | error_if_exists(false), 16 | paranoid_checks(false), 17 | env(Env::Default()), 18 | info_log(NULL), 19 | write_buffer_size(4<<20), 20 | max_open_files(1000), 21 | block_cache(NULL), 22 | block_size(4096), 23 | block_restart_interval(16), 24 | compression(kSnappyCompression), 25 | filter_policy(NULL) { 26 | } 27 | 28 | 29 | } // namespace leveldb 30 | -------------------------------------------------------------------------------- /src/lrucache.h: -------------------------------------------------------------------------------- 1 | #ifndef LRUCACHE_H 2 | #define LRUCACHE_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | // maps should be least recently used cache based for storing requests, responses etc 11 | 12 | #endif // LRUCACHE_H 13 | -------------------------------------------------------------------------------- /src/miniupnpc/MANIFEST.in: -------------------------------------------------------------------------------- 1 | include README 2 | include miniupnpcmodule.c 3 | include setup.py 4 | include *.h 5 | include libminiupnpc.a 6 | -------------------------------------------------------------------------------- /src/miniupnpc/VERSION: -------------------------------------------------------------------------------- 1 | 1.9 2 | -------------------------------------------------------------------------------- /src/miniupnpc/codelength.h: -------------------------------------------------------------------------------- 1 | /* $Id: codelength.h,v 1.4 2012/09/27 15:40:29 nanard Exp $ */ 2 | /* Project : miniupnp 3 | * Author : Thomas BERNARD 4 | * copyright (c) 2005-2011 Thomas Bernard 5 | * This software is subjet to the conditions detailed in the 6 | * provided LICENCE file. */ 7 | #ifndef CODELENGTH_H_INCLUDED 8 | #define CODELENGTH_H_INCLUDED 9 | 10 | /* Encode length by using 7bit per Byte : 11 | * Most significant bit of each byte specifies that the 12 | * following byte is part of the code */ 13 | #define DECODELENGTH(n, p) n = 0; \ 14 | do { n = (n << 7) | (*p & 0x7f); } \ 15 | while((*(p++)&0x80) && (n<(1<<25))); 16 | 17 | #define DECODELENGTH_CHECKLIMIT(n, p, p_limit) \ 18 | n = 0; \ 19 | do { \ 20 | if((p) >= (p_limit)) break; \ 21 | n = (n << 7) | (*(p) & 0x7f); \ 22 | } while((*((p)++)&0x80) && (n<(1<<25))); 23 | 24 | #define CODELENGTH(n, p) if(n>=268435456) *(p++) = (n >> 28) | 0x80; \ 25 | if(n>=2097152) *(p++) = (n >> 21) | 0x80; \ 26 | if(n>=16384) *(p++) = (n >> 14) | 0x80; \ 27 | if(n>=128) *(p++) = (n >> 7) | 0x80; \ 28 | *(p++) = n & 0x7f; 29 | 30 | #endif 31 | 32 | -------------------------------------------------------------------------------- /src/miniupnpc/connecthostport.h: -------------------------------------------------------------------------------- 1 | /* $Id: connecthostport.h,v 1.3 2012/09/27 15:42:10 nanard Exp $ */ 2 | /* Project: miniupnp 3 | * http://miniupnp.free.fr/ 4 | * Author: Thomas Bernard 5 | * Copyright (c) 2010-2012 Thomas Bernard 6 | * This software is subjects to the conditions detailed 7 | * in the LICENCE file provided within this distribution */ 8 | #ifndef CONNECTHOSTPORT_H_INCLUDED 9 | #define CONNECTHOSTPORT_H_INCLUDED 10 | 11 | /* connecthostport() 12 | * return a socket connected (TCP) to the host and port 13 | * or -1 in case of error */ 14 | int connecthostport(const char * host, unsigned short port, 15 | unsigned int scope_id); 16 | 17 | #endif 18 | 19 | -------------------------------------------------------------------------------- /src/miniupnpc/connecthostport.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/miniupnpc/connecthostport.o -------------------------------------------------------------------------------- /src/miniupnpc/declspec.h: -------------------------------------------------------------------------------- 1 | #ifndef DECLSPEC_H_INCLUDED 2 | #define DECLSPEC_H_INCLUDED 3 | 4 | #if defined(_WIN32) && !defined(MINIUPNP_STATICLIB) 5 | /* for windows dll */ 6 | #ifdef MINIUPNP_EXPORTS 7 | #define MINIUPNP_LIBSPEC __declspec(dllexport) 8 | #else 9 | #define MINIUPNP_LIBSPEC __declspec(dllimport) 10 | #endif 11 | #else 12 | #if defined(__GNUC__) && __GNUC__ >= 4 13 | /* fix dynlib for OS X 10.9.2 and Apple LLVM version 5.0 */ 14 | #define MINIUPNP_LIBSPEC __attribute__ ((visibility ("default"))) 15 | #else 16 | #define MINIUPNP_LIBSPEC 17 | #endif 18 | #endif 19 | 20 | #endif 21 | 22 | -------------------------------------------------------------------------------- /src/miniupnpc/external-ip.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # $Id: external-ip.sh,v 1.1 2010/08/05 12:57:41 nanard Exp $ 3 | # (c) 2010 Reuben Hawkins 4 | upnpc -s | grep ExternalIPAddress | sed 's/[^0-9\.]//g' 5 | -------------------------------------------------------------------------------- /src/miniupnpc/igd_desc_parse.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/miniupnpc/igd_desc_parse.o -------------------------------------------------------------------------------- /src/miniupnpc/java/testjava.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set JAVA=java 3 | set JAVAC=javac 4 | REM notice the semicolon for Windows. Write once, run ... oh nevermind 5 | set CP=miniupnpc_win32.jar;. 6 | 7 | %JAVAC% -cp "%CP%" JavaBridgeTest.java || exit 1 8 | %JAVA% -cp "%CP%" JavaBridgeTest 12345 UDP || exit 1 9 | -------------------------------------------------------------------------------- /src/miniupnpc/java/testjava.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | JAVA=java 4 | JAVAC=javac 5 | CP=$(for i in *.jar; do echo -n $i:; done). 6 | 7 | $JAVAC -cp $CP JavaBridgeTest.java || exit 1 8 | $JAVA -cp $CP JavaBridgeTest 12345 UDP || exit 1 9 | -------------------------------------------------------------------------------- /src/miniupnpc/libminiupnpc.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/miniupnpc/libminiupnpc.a -------------------------------------------------------------------------------- /src/miniupnpc/libminiupnpc.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/miniupnpc/libminiupnpc.so -------------------------------------------------------------------------------- /src/miniupnpc/mingw32make.bat: -------------------------------------------------------------------------------- 1 | @mingw32-make -f Makefile.mingw %1 2 | @if errorlevel 1 goto end 3 | @if not exist upnpc-static.exe goto end 4 | @strip upnpc-static.exe 5 | @upx --best upnpc-static.exe 6 | @strip upnpc-shared.exe 7 | @upx --best upnpc-shared.exe 8 | :end 9 | -------------------------------------------------------------------------------- /src/miniupnpc/minisoap.h: -------------------------------------------------------------------------------- 1 | /* $Id: minisoap.h,v 1.5 2012/09/27 15:42:10 nanard Exp $ */ 2 | /* Project : miniupnp 3 | * Author : Thomas Bernard 4 | * Copyright (c) 2005 Thomas Bernard 5 | * This software is subject to the conditions detailed in the 6 | * LICENCE file provided in this distribution. */ 7 | #ifndef MINISOAP_H_INCLUDED 8 | #define MINISOAP_H_INCLUDED 9 | 10 | /*int httpWrite(int, const char *, int, const char *);*/ 11 | int soapPostSubmit(int, const char *, const char *, unsigned short, 12 | const char *, const char *, const char *); 13 | 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/miniupnpc/minisoap.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/miniupnpc/minisoap.o -------------------------------------------------------------------------------- /src/miniupnpc/minissdpc.h: -------------------------------------------------------------------------------- 1 | /* $Id: minissdpc.h,v 1.2 2012/09/27 15:42:10 nanard Exp $ */ 2 | /* Project: miniupnp 3 | * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ 4 | * Author: Thomas Bernard 5 | * Copyright (c) 2005-2007 Thomas Bernard 6 | * This software is subjects to the conditions detailed 7 | * in the LICENCE file provided within this distribution */ 8 | #ifndef MINISSDPC_H_INCLUDED 9 | #define MINISSDPC_H_INCLUDED 10 | 11 | struct UPNPDev * 12 | getDevicesFromMiniSSDPD(const char * devtype, const char * socketpath); 13 | 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/miniupnpc/minissdpc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/miniupnpc/minissdpc.o -------------------------------------------------------------------------------- /src/miniupnpc/miniupnpc.def: -------------------------------------------------------------------------------- 1 | LIBRARY 2 | ; miniupnpc library 3 | miniupnpc 4 | 5 | EXPORTS 6 | ; miniupnpc 7 | upnpDiscover 8 | freeUPNPDevlist 9 | parserootdesc 10 | UPNP_GetValidIGD 11 | UPNP_GetIGDFromUrl 12 | GetUPNPUrls 13 | FreeUPNPUrls 14 | ; miniwget 15 | miniwget 16 | miniwget_getaddr 17 | ; upnpcommands 18 | UPNP_GetTotalBytesSent 19 | UPNP_GetTotalBytesReceived 20 | UPNP_GetTotalPacketsSent 21 | UPNP_GetTotalPacketsReceived 22 | UPNP_GetStatusInfo 23 | UPNP_GetConnectionTypeInfo 24 | UPNP_GetExternalIPAddress 25 | UPNP_GetLinkLayerMaxBitRates 26 | UPNP_AddPortMapping 27 | UPNP_AddAnyPortMapping 28 | UPNP_DeletePortMapping 29 | UPNP_DeletePortMappingRange 30 | UPNP_GetPortMappingNumberOfEntries 31 | UPNP_GetSpecificPortMappingEntry 32 | UPNP_GetGenericPortMappingEntry 33 | UPNP_GetListOfPortMappings 34 | UPNP_AddPinhole 35 | UPNP_CheckPinholeWorking 36 | UPNP_UpdatePinhole 37 | UPNP_GetPinholePackets 38 | UPNP_DeletePinhole 39 | UPNP_GetFirewallStatus 40 | UPNP_GetOutboundPinholeTimeout 41 | ; upnperrors 42 | strupnperror 43 | ; portlistingparse 44 | ParsePortListing 45 | FreePortListing 46 | -------------------------------------------------------------------------------- /src/miniupnpc/miniupnpc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/miniupnpc/miniupnpc.o -------------------------------------------------------------------------------- /src/miniupnpc/miniupnpcstrings.h: -------------------------------------------------------------------------------- 1 | /* $Id: miniupnpcstrings.h.in,v 1.5 2012/10/16 16:48:26 nanard Exp $ */ 2 | /* Project: miniupnp 3 | * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ 4 | * Author: Thomas Bernard 5 | * Copyright (c) 2005-2011 Thomas Bernard 6 | * This software is subjects to the conditions detailed 7 | * in the LICENCE file provided within this distribution */ 8 | #ifndef MINIUPNPCSTRINGS_H_INCLUDED 9 | #define MINIUPNPCSTRINGS_H_INCLUDED 10 | 11 | #define OS_STRING "Ubuntu/16.04" 12 | #define MINIUPNPC_VERSION_STRING "1.9" 13 | 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/miniupnpc/miniupnpcstrings.h.cmake: -------------------------------------------------------------------------------- 1 | #ifndef MINIUPNPCSTRINGS_H_INCLUDED 2 | #define MINIUPNPCSTRINGS_H_INCLUDED 3 | 4 | #define OS_STRING "${CMAKE_SYSTEM_NAME}" 5 | #define MINIUPNPC_VERSION_STRING "${MINIUPNPC_VERSION}" 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /src/miniupnpc/miniupnpcstrings.h.in: -------------------------------------------------------------------------------- 1 | /* $Id: miniupnpcstrings.h.in,v 1.5 2012/10/16 16:48:26 nanard Exp $ */ 2 | /* Project: miniupnp 3 | * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ 4 | * Author: Thomas Bernard 5 | * Copyright (c) 2005-2011 Thomas Bernard 6 | * This software is subjects to the conditions detailed 7 | * in the LICENCE file provided within this distribution */ 8 | #ifndef MINIUPNPCSTRINGS_H_INCLUDED 9 | #define MINIUPNPCSTRINGS_H_INCLUDED 10 | 11 | #define OS_STRING "OS/version" 12 | #define MINIUPNPC_VERSION_STRING "version" 13 | 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/miniupnpc/miniupnpctypes.h: -------------------------------------------------------------------------------- 1 | /* $Id: miniupnpctypes.h,v 1.2 2012/09/27 15:42:10 nanard Exp $ */ 2 | /* Miniupnp project : http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org 3 | * Author : Thomas Bernard 4 | * Copyright (c) 2011 Thomas Bernard 5 | * This software is subject to the conditions detailed in the 6 | * LICENCE file provided within this distribution */ 7 | #ifndef MINIUPNPCTYPES_H_INCLUDED 8 | #define MINIUPNPCTYPES_H_INCLUDED 9 | 10 | #if (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) 11 | #define UNSIGNED_INTEGER unsigned long long 12 | #define STRTOUI strtoull 13 | #else 14 | #define UNSIGNED_INTEGER unsigned int 15 | #define STRTOUI strtoul 16 | #endif 17 | 18 | #endif 19 | 20 | -------------------------------------------------------------------------------- /src/miniupnpc/miniwget.h: -------------------------------------------------------------------------------- 1 | /* $Id: miniwget.h,v 1.9 2014/06/10 09:44:55 nanard Exp $ */ 2 | /* Project : miniupnp 3 | * Author : Thomas Bernard 4 | * Copyright (c) 2005-2012 Thomas Bernard 5 | * This software is subject to the conditions detailed in the 6 | * LICENCE file provided in this distribution. 7 | * */ 8 | #ifndef MINIWGET_H_INCLUDED 9 | #define MINIWGET_H_INCLUDED 10 | 11 | #include "declspec.h" 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | MINIUPNP_LIBSPEC void * getHTTPResponse(int s, int * size); 18 | 19 | MINIUPNP_LIBSPEC void * miniwget(const char *, int *, unsigned int); 20 | 21 | MINIUPNP_LIBSPEC void * miniwget_getaddr(const char *, int *, char *, int, unsigned int); 22 | 23 | int parseURL(const char *, char *, unsigned short *, char * *, unsigned int *); 24 | 25 | #ifdef __cplusplus 26 | } 27 | #endif 28 | 29 | #endif 30 | 31 | -------------------------------------------------------------------------------- /src/miniupnpc/miniwget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/miniupnpc/miniwget.o -------------------------------------------------------------------------------- /src/miniupnpc/minixml.h: -------------------------------------------------------------------------------- 1 | /* $Id: minixml.h,v 1.7 2012/09/27 15:42:10 nanard Exp $ */ 2 | /* minimal xml parser 3 | * 4 | * Project : miniupnp 5 | * Website : http://miniupnp.free.fr/ 6 | * Author : Thomas Bernard 7 | * Copyright (c) 2005 Thomas Bernard 8 | * This software is subject to the conditions detailed in the 9 | * LICENCE file provided in this distribution. 10 | * */ 11 | #ifndef MINIXML_H_INCLUDED 12 | #define MINIXML_H_INCLUDED 13 | #define IS_WHITE_SPACE(c) ((c==' ') || (c=='\t') || (c=='\r') || (c=='\n')) 14 | 15 | /* if a callback function pointer is set to NULL, 16 | * the function is not called */ 17 | struct xmlparser { 18 | const char *xmlstart; 19 | const char *xmlend; 20 | const char *xml; /* pointer to current character */ 21 | int xmlsize; 22 | void * data; 23 | void (*starteltfunc) (void *, const char *, int); 24 | void (*endeltfunc) (void *, const char *, int); 25 | void (*datafunc) (void *, const char *, int); 26 | void (*attfunc) (void *, const char *, int, const char *, int); 27 | }; 28 | 29 | /* parsexml() 30 | * the xmlparser structure must be initialized before the call 31 | * the following structure members have to be initialized : 32 | * xmlstart, xmlsize, data, *func 33 | * xml is for internal usage, xmlend is computed automatically */ 34 | void parsexml(struct xmlparser *); 35 | 36 | #endif 37 | 38 | -------------------------------------------------------------------------------- /src/miniupnpc/minixml.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/miniupnpc/minixml.o -------------------------------------------------------------------------------- /src/miniupnpc/msvc/miniupnpc.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/miniupnpc/msvc/miniupnpc.vcproj -------------------------------------------------------------------------------- /src/miniupnpc/msvc/upnpc-static.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/miniupnpc/msvc/upnpc-static.vcproj -------------------------------------------------------------------------------- /src/miniupnpc/portlistingparse.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/miniupnpc/portlistingparse.o -------------------------------------------------------------------------------- /src/miniupnpc/receivedata.h: -------------------------------------------------------------------------------- 1 | /* $Id: receivedata.h,v 1.4 2012/09/27 15:42:10 nanard Exp $ */ 2 | /* Project: miniupnp 3 | * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ 4 | * Author: Thomas Bernard 5 | * Copyright (c) 2011-2012 Thomas Bernard 6 | * This software is subjects to the conditions detailed 7 | * in the LICENCE file provided within this distribution */ 8 | #ifndef RECEIVEDATA_H_INCLUDED 9 | #define RECEIVEDATA_H_INCLUDED 10 | 11 | /* Reads data from the specified socket. 12 | * Returns the number of bytes read if successful, zero if no bytes were 13 | * read or if we timed out. Returns negative if there was an error. */ 14 | int receivedata(int socket, 15 | char * data, int length, 16 | int timeout, unsigned int * scope_id); 17 | 18 | #endif 19 | 20 | -------------------------------------------------------------------------------- /src/miniupnpc/receivedata.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/miniupnpc/receivedata.o -------------------------------------------------------------------------------- /src/miniupnpc/setup.py: -------------------------------------------------------------------------------- 1 | #! /usr/bin/python 2 | # $Id: setup.py,v 1.10 2014/05/19 22:31:52 nanard Exp $ 3 | # the MiniUPnP Project (c) 2007-2014 Thomas Bernard 4 | # http://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/ 5 | # 6 | # python script to build the miniupnpc module under unix 7 | # 8 | # replace libminiupnpc.a by libminiupnpc.so for shared library usage 9 | from distutils.core import setup, Extension 10 | from distutils import sysconfig 11 | sysconfig.get_config_vars()["OPT"] = '' 12 | sysconfig.get_config_vars()["CFLAGS"] = '' 13 | setup(name="miniupnpc", 14 | version=open('VERSION').read().strip(), 15 | author='Thomas BERNARD', 16 | author_email='miniupnp@free.fr', 17 | license=open('LICENSE').read(), 18 | url='http://miniupnp.free.fr/', 19 | description='miniUPnP client', 20 | ext_modules=[ 21 | Extension(name="miniupnpc", sources=["miniupnpcmodule.c"], 22 | extra_objects=["libminiupnpc.a"]) 23 | ]) 24 | 25 | -------------------------------------------------------------------------------- /src/miniupnpc/setupmingw32.py: -------------------------------------------------------------------------------- 1 | #! /usr/bin/python 2 | # $Id: setupmingw32.py,v 1.9 2014/05/19 22:31:52 nanard Exp $ 3 | # the MiniUPnP Project (c) 2007-2014 Thomas Bernard 4 | # http://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/ 5 | # 6 | # python script to build the miniupnpc module under windows (using mingw32) 7 | # 8 | from distutils.core import setup, Extension 9 | from distutils import sysconfig 10 | sysconfig.get_config_vars()["OPT"] = '' 11 | sysconfig.get_config_vars()["CFLAGS"] = '' 12 | setup(name="miniupnpc", 13 | version=open('VERSION').read().strip(), 14 | author='Thomas BERNARD', 15 | author_email='miniupnp@free.fr', 16 | license=open('LICENSE').read(), 17 | url='http://miniupnp.free.fr/', 18 | description='miniUPnP client', 19 | ext_modules=[ 20 | Extension(name="miniupnpc", sources=["miniupnpcmodule.c"], 21 | libraries=["ws2_32", "iphlpapi"], 22 | extra_objects=["libminiupnpc.a"]) 23 | ]) 24 | 25 | -------------------------------------------------------------------------------- /src/miniupnpc/testreplyparse/DeletePortMapping.namevalue: -------------------------------------------------------------------------------- 1 | NewRemoteHost= 2 | NewExternalPort=123 3 | NewProtocol=TCP 4 | -------------------------------------------------------------------------------- /src/miniupnpc/testreplyparse/DeletePortMapping.xml: -------------------------------------------------------------------------------- 1 | 2 | 123 3 | TCP 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/miniupnpc/testreplyparse/GetExternalIPAddress.namevalue: -------------------------------------------------------------------------------- 1 | NewExternalIPAddress=1.2.3.4 2 | 3 | -------------------------------------------------------------------------------- /src/miniupnpc/testreplyparse/GetExternalIPAddress.xml: -------------------------------------------------------------------------------- 1 | 1.2.3.4 2 | 3 | -------------------------------------------------------------------------------- /src/miniupnpc/testreplyparse/GetSpecificPortMappingEntryReq.namevalue: -------------------------------------------------------------------------------- 1 | NewProtocol=UDP 2 | NewExternalPort=12345 3 | NewRemoteHost= 4 | -------------------------------------------------------------------------------- /src/miniupnpc/testreplyparse/GetSpecificPortMappingEntryReq.xml: -------------------------------------------------------------------------------- 1 | 2 | 12345UDP 3 | 4 | -------------------------------------------------------------------------------- /src/miniupnpc/testreplyparse/GetSpecificPortMappingEntryResp.namevalue: -------------------------------------------------------------------------------- 1 | NewInternalPort=12345 2 | NewInternalClient=192.168.10.110 3 | NewEnabled=1 4 | NewPortMappingDescription=libminiupnpc 5 | NewLeaseDuration=0 6 | -------------------------------------------------------------------------------- /src/miniupnpc/testreplyparse/GetSpecificPortMappingEntryResp.xml: -------------------------------------------------------------------------------- 1 | 12345192.168.10.1101libminiupnpc0 2 | 3 | -------------------------------------------------------------------------------- /src/miniupnpc/testreplyparse/SetDefaultConnectionService.namevalue: -------------------------------------------------------------------------------- 1 | NewDefaultConnectionService=uuid:c6c05a33-f704-48df-9910-e099b3471d81:WANConnectionDevice:1,INVALID_SERVICE_ID 2 | -------------------------------------------------------------------------------- /src/miniupnpc/testreplyparse/SetDefaultConnectionService.xml: -------------------------------------------------------------------------------- 1 | uuid:c6c05a33-f704-48df-9910-e099b3471d81:WANConnectionDevice:1,INVALID_SERVICE_ID 2 | -------------------------------------------------------------------------------- /src/miniupnpc/testreplyparse/readme.txt: -------------------------------------------------------------------------------- 1 | This directory contains files used for validation of upnpreplyparse.c code. 2 | 3 | Each .xml file to parse should give the results which are in the .namevalue 4 | file. 5 | 6 | A .namevalue file contain name=value lines. 7 | 8 | -------------------------------------------------------------------------------- /src/miniupnpc/testupnpreplyparse.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | for f in testreplyparse/*.xml ; do 4 | bf="`dirname $f`/`basename $f .xml`" 5 | if ./testupnpreplyparse $f $bf.namevalue ; then 6 | echo "$f : passed" 7 | else 8 | echo "$f : FAILED" 9 | exit 1 10 | fi 11 | done 12 | 13 | exit 0 14 | 15 | -------------------------------------------------------------------------------- /src/miniupnpc/upnpc-shared: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/miniupnpc/upnpc-shared -------------------------------------------------------------------------------- /src/miniupnpc/upnpc-static: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/miniupnpc/upnpc-static -------------------------------------------------------------------------------- /src/miniupnpc/upnpc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/miniupnpc/upnpc.o -------------------------------------------------------------------------------- /src/miniupnpc/upnpcommands.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/miniupnpc/upnpcommands.o -------------------------------------------------------------------------------- /src/miniupnpc/upnperrors.h: -------------------------------------------------------------------------------- 1 | /* $Id: upnperrors.h,v 1.5 2014/06/10 09:41:48 nanard Exp $ */ 2 | /* (c) 2007 Thomas Bernard 3 | * All rights reserved. 4 | * MiniUPnP Project. 5 | * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ 6 | * This software is subjet to the conditions detailed in the 7 | * provided LICENCE file. */ 8 | #ifndef UPNPERRORS_H_INCLUDED 9 | #define UPNPERRORS_H_INCLUDED 10 | 11 | #include "declspec.h" 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | /* strupnperror() 18 | * Return a string description of the UPnP error code 19 | * or NULL for undefinded errors */ 20 | MINIUPNP_LIBSPEC const char * strupnperror(int err); 21 | 22 | #ifdef __cplusplus 23 | } 24 | #endif 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /src/miniupnpc/upnperrors.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/miniupnpc/upnperrors.o -------------------------------------------------------------------------------- /src/miniupnpc/upnpreplyparse.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/miniupnpc/upnpreplyparse.o -------------------------------------------------------------------------------- /src/notes.txt: -------------------------------------------------------------------------------- 1 | We should never send a message back to sender when relaying. 2 | -------------------------------------------------------------------------------- /src/noui.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2012 The Bitcoin developers 3 | // Distributed under the MIT/X11 software license, see the accompanying 4 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 | #include "ui_interface.h" 6 | #include "init.h" 7 | #include "bitcoinrpc.h" 8 | 9 | #include 10 | 11 | static int noui_ThreadSafeMessageBox(const std::string& message, const std::string& caption, int style) 12 | { 13 | printf("%s: %s\n", caption.c_str(), message.c_str()); 14 | fprintf(stderr, "%s: %s\n", caption.c_str(), message.c_str()); 15 | return 4; 16 | } 17 | 18 | static bool noui_ThreadSafeAskFee(int64 nFeeRequired, const std::string& strCaption) 19 | { 20 | return true; 21 | } 22 | 23 | void noui_connect() 24 | { 25 | // Connect bitcoind signal handlers 26 | uiInterface.ThreadSafeMessageBox.connect(noui_ThreadSafeMessageBox); 27 | uiInterface.ThreadSafeAskFee.connect(noui_ThreadSafeAskFee); 28 | } 29 | -------------------------------------------------------------------------------- /src/obj-test/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /src/pbkdf2.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifndef PBKDF2_H 4 | #define PBKDF2_H 5 | 6 | #include 7 | #include 8 | 9 | typedef struct HMAC_SHA256Context { 10 | SHA256_CTX ictx; 11 | SHA256_CTX octx; 12 | } HMAC_SHA256_CTX; 13 | 14 | void 15 | HMAC_SHA256_Init(HMAC_SHA256_CTX * ctx, const void * _K, size_t Klen); 16 | 17 | void 18 | HMAC_SHA256_Update(HMAC_SHA256_CTX * ctx, const void *in, size_t len); 19 | 20 | void 21 | HMAC_SHA256_Final(unsigned char digest[32], HMAC_SHA256_CTX * ctx); 22 | 23 | void 24 | PBKDF2_SHA256(const uint8_t * passwd, size_t passwdlen, const uint8_t * salt, 25 | size_t saltlen, uint64_t c, uint8_t * buf, size_t dkLen); 26 | 27 | #endif // PBKDF2_H 28 | -------------------------------------------------------------------------------- /src/qt/37357.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/37357.png -------------------------------------------------------------------------------- /src/qt/AppResources.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | exchange.png 4 | onemarket.png 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/qt/ExchangeIcon.qrc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/qt/QJsonRoot.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2014 - 2014 Evan Teran 3 | eteran@alum.rit.edu 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 2 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . 17 | */ 18 | 19 | #ifndef QJSON_BASE_H_ 20 | #define QJSON_BASE_H_ 21 | 22 | #include 23 | 24 | #if QT_VERSION < 0x050000 25 | 26 | class QJsonObject; 27 | class QJsonArray; 28 | 29 | class QJsonRoot { 30 | public: 31 | virtual ~QJsonRoot() {}; 32 | 33 | public: 34 | virtual QJsonRoot *clone() const = 0; 35 | 36 | public: 37 | virtual QJsonArray *toArray() = 0; 38 | virtual QJsonObject *toObject() = 0; 39 | virtual const QJsonArray *toArray() const = 0; 40 | virtual const QJsonObject *toObject() const = 0; 41 | }; 42 | 43 | #endif 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /src/qt/TabIcons.qrc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/qt/aboutdialog.cpp: -------------------------------------------------------------------------------- 1 | #include "aboutdialog.h" 2 | #include "ui_aboutdialog.h" 3 | #include "clientmodel.h" 4 | 5 | #include "version.h" 6 | 7 | AboutDialog::AboutDialog(QWidget *parent) : 8 | QDialog(parent), 9 | ui(new Ui::AboutDialog) 10 | { 11 | ui->setupUi(this); 12 | // this->setStyleSheet("background-color: #effbef;"); 13 | 14 | //QString path = QDir::currentPath().append(":/images/background.png"); 15 | //QPixmap bkgnd(path); 16 | QPixmap bkgnd(":/images/background"); 17 | bkgnd = bkgnd.scaled(this->size(), Qt::IgnoreAspectRatio); 18 | QPalette palette; 19 | palette.setBrush(QPalette::Background, bkgnd); 20 | this->setPalette(palette); 21 | } 22 | 23 | void AboutDialog::setModel(ClientModel *model) 24 | { 25 | if(model) 26 | { 27 | ui->versionLabel->setText(model->formatFullVersion()); 28 | } 29 | } 30 | 31 | AboutDialog::~AboutDialog() 32 | { 33 | delete ui; 34 | } 35 | 36 | void AboutDialog::on_buttonBox_accepted() 37 | { 38 | close(); 39 | } 40 | -------------------------------------------------------------------------------- /src/qt/aboutdialog.h: -------------------------------------------------------------------------------- 1 | #ifndef ABOUTDIALOG_H 2 | #define ABOUTDIALOG_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class AboutDialog; 8 | } 9 | class ClientModel; 10 | 11 | /** "About" dialog box */ 12 | class AboutDialog : public QDialog 13 | { 14 | Q_OBJECT 15 | 16 | public: 17 | explicit AboutDialog(QWidget *parent = 0); 18 | ~AboutDialog(); 19 | 20 | void setModel(ClientModel *model); 21 | private: 22 | Ui::AboutDialog *ui; 23 | 24 | private slots: 25 | void on_buttonBox_accepted(); 26 | }; 27 | 28 | #endif // ABOUTDIALOG_H 29 | -------------------------------------------------------------------------------- /src/qt/acceptandpayofferlistpage.h: -------------------------------------------------------------------------------- 1 | #ifndef ACCEPTANDPAYOFFERLISTPAGE_H 2 | #define ACCEPTANDPAYOFFERLISTPAGE_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class AcceptandPayOfferListPage; 8 | } 9 | class JSONRequest; 10 | class OfferTableModel; 11 | class OptionsModel; 12 | class COffer; 13 | QT_BEGIN_NAMESPACE 14 | class QTableView; 15 | class QItemSelection; 16 | class QSortFilterProxyModel; 17 | class QMenu; 18 | class QModelIndex; 19 | class QUrl; 20 | QT_END_NAMESPACE 21 | 22 | /** Widget that shows a list of owned offeres. 23 | */ 24 | class AcceptandPayOfferListPage : public QDialog 25 | { 26 | Q_OBJECT 27 | 28 | public: 29 | 30 | 31 | explicit AcceptandPayOfferListPage(QWidget *parent = 0); 32 | ~AcceptandPayOfferListPage(); 33 | 34 | const QString &getReturnValue() const { return returnValue; } 35 | bool handleURI(const QUrl &uri, COffer* offerOut); 36 | bool handleURI(const QString& strURI, COffer* offerOut); 37 | void setValue(const COffer &offer); 38 | public slots: 39 | void acceptandpay(); 40 | 41 | private: 42 | Ui::AcceptandPayOfferListPage *ui; 43 | QString returnValue; 44 | 45 | QMenu *contextMenu; 46 | QAction *deleteAction; // to be able to explicitly disable it 47 | 48 | 49 | }; 50 | 51 | #endif // ACCEPTANDPAYOFFERLISTPAGE_H 52 | -------------------------------------------------------------------------------- /src/qt/askpassphrasedialog.h: -------------------------------------------------------------------------------- 1 | #ifndef ASKPASSPHRASEDIALOG_H 2 | #define ASKPASSPHRASEDIALOG_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class AskPassphraseDialog; 8 | } 9 | 10 | class WalletModel; 11 | 12 | /** Multifunctional dialog to ask for passphrases. Used for encryption, unlocking, and changing the passphrase. 13 | */ 14 | class AskPassphraseDialog : public QDialog 15 | { 16 | Q_OBJECT 17 | 18 | public: 19 | enum Mode { 20 | Encrypt, /**< Ask passphrase twice and encrypt */ 21 | UnlockMinting, /**< Ask passphrase and unlock for minting only */ 22 | Unlock, /**< Ask passphrase and unlock */ 23 | ChangePass, /**< Ask old passphrase + new passphrase twice */ 24 | Decrypt /**< Ask passphrase and decrypt wallet */ 25 | }; 26 | 27 | explicit AskPassphraseDialog(Mode mode, QWidget *parent = 0); 28 | ~AskPassphraseDialog(); 29 | 30 | void accept(); 31 | 32 | void setModel(WalletModel *model); 33 | 34 | private: 35 | Ui::AskPassphraseDialog *ui; 36 | Mode mode; 37 | WalletModel *model; 38 | bool fCapsLock; 39 | 40 | private slots: 41 | void textChanged(); 42 | bool event(QEvent *event); 43 | bool eventFilter(QObject *, QEvent *event); 44 | }; 45 | 46 | #endif // ASKPASSPHRASEDIALOG_H 47 | -------------------------------------------------------------------------------- /src/qt/bitcoinaddressvalidator.h: -------------------------------------------------------------------------------- 1 | #ifndef BITCOINADDRESSVALIDATOR_H 2 | #define BITCOINADDRESSVALIDATOR_H 3 | 4 | #include 5 | 6 | /** Base48 entry widget validator. 7 | Corrects near-miss characters and refuses characters that are no part of base48. 8 | */ 9 | class BitcoinAddressValidator : public QValidator 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit BitcoinAddressValidator(QObject *parent = 0); 14 | 15 | State validate(QString &input, int &pos) const; 16 | 17 | static const int MaxAddressLength = 35; 18 | static const int MaxStealthAddressLength = 102; 19 | signals: 20 | 21 | public slots: 22 | 23 | }; 24 | 25 | #endif // BITCOINADDRESSVALIDATOR_H 26 | -------------------------------------------------------------------------------- /src/qt/cloaksend.h: -------------------------------------------------------------------------------- 1 | #ifndef CLOAKSEND_H 2 | #define CLOAKSEND_H 3 | 4 | #include 5 | #include "httpsocket.h" 6 | 7 | class cloaksend : public QObject 8 | { 9 | Q_OBJECT 10 | public: 11 | explicit cloaksend(QObject *parent = 0); 12 | QString fromAddress; 13 | QString destinationAddress; 14 | QString amount; 15 | QString getCloakedAddress(); //returns the cloaked address assuming object variables set correctly. 16 | bool useProxy; 17 | QString proxyAddress; 18 | int proxyPort; 19 | signals: 20 | 21 | public slots: 22 | 23 | private: 24 | httpsocket *socket; 25 | }; 26 | 27 | #endif // CLOAKSEND_H 28 | -------------------------------------------------------------------------------- /src/qt/coincontroltreewidget.cpp: -------------------------------------------------------------------------------- 1 | #include "coincontroltreewidget.h" 2 | #include "coincontroldialog.h" 3 | 4 | CoinControlTreeWidget::CoinControlTreeWidget(QWidget *parent) : 5 | QTreeWidget(parent) 6 | { 7 | 8 | } 9 | 10 | void CoinControlTreeWidget::keyPressEvent(QKeyEvent *event) 11 | { 12 | if (event->key() == Qt::Key_Space) // press spacebar -> select checkbox 13 | { 14 | event->ignore(); 15 | int COLUMN_CHECKBOX = 0; 16 | this->currentItem()->setCheckState(COLUMN_CHECKBOX, ((this->currentItem()->checkState(COLUMN_CHECKBOX) == Qt::Checked) ? Qt::Unchecked : Qt::Checked)); 17 | } 18 | else if (event->key() == Qt::Key_Escape) // press esc -> close dialog 19 | { 20 | event->ignore(); 21 | CoinControlDialog *coinControlDialog = (CoinControlDialog*)this->parentWidget(); 22 | coinControlDialog->done(QDialog::Accepted); 23 | } 24 | else 25 | { 26 | this->QTreeWidget::keyPressEvent(event); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/qt/coincontroltreewidget.h: -------------------------------------------------------------------------------- 1 | #ifndef COINCONTROLTREEWIDGET_H 2 | #define COINCONTROLTREEWIDGET_H 3 | 4 | #include 5 | #include 6 | 7 | class CoinControlTreeWidget : public QTreeWidget { 8 | Q_OBJECT 9 | 10 | public: 11 | explicit CoinControlTreeWidget(QWidget *parent = 0); 12 | 13 | protected: 14 | virtual void keyPressEvent(QKeyEvent *event); 15 | }; 16 | 17 | #endif // COINCONTROLTREEWIDGET_H -------------------------------------------------------------------------------- /src/qt/csvmodelwriter.h: -------------------------------------------------------------------------------- 1 | #ifndef CSVMODELWRITER_H 2 | #define CSVMODELWRITER_H 3 | 4 | #include 5 | #include 6 | 7 | QT_BEGIN_NAMESPACE 8 | class QAbstractItemModel; 9 | QT_END_NAMESPACE 10 | 11 | /** Export a Qt table model to a CSV file. This is useful for analyzing or post-processing the data in 12 | a spreadsheet. 13 | */ 14 | class CSVModelWriter : public QObject 15 | { 16 | Q_OBJECT 17 | public: 18 | explicit CSVModelWriter(const QString &filename, QObject *parent = 0); 19 | 20 | void setModel(const QAbstractItemModel *model); 21 | void addColumn(const QString &title, int column, int role=Qt::EditRole); 22 | 23 | /** Perform export of the model to CSV. 24 | @returns true on success, false otherwise 25 | */ 26 | bool write(); 27 | 28 | private: 29 | QString filename; 30 | const QAbstractItemModel *model; 31 | 32 | struct Column 33 | { 34 | QString title; 35 | int column; 36 | int role; 37 | }; 38 | QList columns; 39 | 40 | signals: 41 | 42 | public slots: 43 | 44 | }; 45 | 46 | #endif // CSVMODELWRITER_H 47 | -------------------------------------------------------------------------------- /src/qt/editaddressdialog.h: -------------------------------------------------------------------------------- 1 | #ifndef EDITADDRESSDIALOG_H 2 | #define EDITADDRESSDIALOG_H 3 | 4 | #include 5 | 6 | QT_BEGIN_NAMESPACE 7 | class QDataWidgetMapper; 8 | QT_END_NAMESPACE 9 | 10 | namespace Ui { 11 | class EditAddressDialog; 12 | } 13 | class AddressTableModel; 14 | 15 | /** Dialog for editing an address and associated information. 16 | */ 17 | class EditAddressDialog : public QDialog 18 | { 19 | Q_OBJECT 20 | 21 | public: 22 | enum Mode { 23 | NewReceivingAddress, 24 | NewSendingAddress, 25 | EditReceivingAddress, 26 | EditSendingAddress, 27 | NewCloakReceivingAddress, 28 | NewCloakSendingAddress, 29 | EditCloakReceivingAddress, 30 | EditCloakSendingAddress 31 | }; 32 | 33 | explicit EditAddressDialog(Mode mode, QWidget *parent = 0); 34 | ~EditAddressDialog(); 35 | 36 | void setModel(AddressTableModel *model); 37 | void loadRow(int row); 38 | 39 | void accept(); 40 | 41 | QString getAddress() const; 42 | void setAddress(const QString &address); 43 | private: 44 | bool saveCurrentRow(); 45 | 46 | Ui::EditAddressDialog *ui; 47 | QDataWidgetMapper *mapper; 48 | Mode mode; 49 | AddressTableModel *model; 50 | 51 | QString address; 52 | }; 53 | 54 | #endif // EDITADDRESSDIALOG_H 55 | -------------------------------------------------------------------------------- /src/qt/editofferdialog.h: -------------------------------------------------------------------------------- 1 | #ifndef EDITOFFERDIALOG_H 2 | #define EDITOFFERDIALOG_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class EditOfferDialog; 8 | } 9 | class OfferTableModel; 10 | 11 | QT_BEGIN_NAMESPACE 12 | class QDataWidgetMapper; 13 | QT_END_NAMESPACE 14 | 15 | /** Dialog for editing an address and associated information. 16 | */ 17 | class EditOfferDialog : public QDialog 18 | { 19 | Q_OBJECT 20 | 21 | public: 22 | enum Mode { 23 | NewOffer = 0, 24 | EditOffer 25 | }; 26 | 27 | explicit EditOfferDialog(Mode mode, QWidget *parent = 0); 28 | ~EditOfferDialog(); 29 | 30 | void setModel(OfferTableModel *model); 31 | void loadRow(int row); 32 | QString getOffer() const; 33 | public slots: 34 | void accept(); 35 | 36 | private: 37 | bool saveCurrentRow(); 38 | 39 | Ui::EditOfferDialog *ui; 40 | QDataWidgetMapper *mapper; 41 | Mode mode; 42 | OfferTableModel *model; 43 | 44 | QString offer; 45 | }; 46 | 47 | #endif // EDITOFFERDIALOG_H 48 | -------------------------------------------------------------------------------- /src/qt/enigmastatuspage.h: -------------------------------------------------------------------------------- 1 | #ifndef EnigmaStatusPage_H 2 | #define EnigmaStatusPage_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class EnigmaStatusPage; 8 | } 9 | class EnigmaTableModel; 10 | class OptionsModel; 11 | class QTimer; 12 | 13 | QT_BEGIN_NAMESPACE 14 | class QTableView; 15 | class QItemSelection; 16 | class QSortFilterProxyModel; 17 | class QMenu; 18 | class QModelIndex; 19 | QT_END_NAMESPACE 20 | 21 | /** Widget that shows a list of Cloaking operations. 22 | */ 23 | class EnigmaStatusPage : public QDialog 24 | { 25 | Q_OBJECT 26 | 27 | public: 28 | 29 | explicit EnigmaStatusPage(QWidget *parent = 0); 30 | ~EnigmaStatusPage(); 31 | 32 | void setModel(EnigmaTableModel *model); 33 | void setOptionsModel(OptionsModel *optionsModel); 34 | const QString &getReturnValue() const { return returnValue; } 35 | 36 | public slots: 37 | void handleData(int index); 38 | 39 | private slots: 40 | void cancelSend(); 41 | void copyTxId(); 42 | void ShowContextMenu(const QPoint &point); 43 | void updateCloakingAssistCounts(); 44 | 45 | private: 46 | Ui::EnigmaStatusPage *ui; 47 | EnigmaTableModel *model; 48 | OptionsModel *optionsModel; 49 | QString returnValue; 50 | QSortFilterProxyModel *proxyModel; 51 | QMenu *contextMenu; 52 | }; 53 | 54 | #endif // EnigmaStatusPage_H 55 | -------------------------------------------------------------------------------- /src/qt/exchange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/exchange.png -------------------------------------------------------------------------------- /src/qt/guiconstants.h: -------------------------------------------------------------------------------- 1 | #ifndef GUICONSTANTS_H 2 | #define GUICONSTANTS_H 3 | 4 | /* Milliseconds between model updates */ 5 | static const int MODEL_UPDATE_DELAY = 500; 6 | 7 | /* AskPassphraseDialog -- Maximum passphrase length */ 8 | static const int MAX_PASSPHRASE_SIZE = 1024; 9 | 10 | /* BitcoinGUI -- Size of icons in status bar */ 11 | static const int STATUSBAR_ICONSIZE = 16; 12 | 13 | /* Invalid field background style */ 14 | #define STYLE_INVALID "background:#FF8080" 15 | 16 | /* Transaction list -- unconfirmed transaction */ 17 | #define COLOR_UNCONFIRMED QColor(128, 128, 128) 18 | /* Transaction list -- negative amount */ 19 | #define COLOR_NEGATIVE QColor(255, 0, 0) 20 | /* Transaction list -- bare address (without label) */ 21 | #define COLOR_BAREADDRESS QColor(140, 140, 140) 22 | 23 | /* Tooltips longer than this (in characters) are converted into rich text, 24 | so that they can be word-wrapped. 25 | */ 26 | static const int TOOLTIP_WRAP_THRESHOLD = 80; 27 | 28 | /* Maximum allowed URI length */ 29 | static const int MAX_URI_LENGTH = 255; 30 | 31 | /* QRCodeDialog -- size of exported QR Code image */ 32 | #define EXPORT_IMAGE_SIZE 256 33 | 34 | #endif // GUICONSTANTS_H 35 | -------------------------------------------------------------------------------- /src/qt/httpsocket.h: -------------------------------------------------------------------------------- 1 | #ifndef HTTPSOCKET_H 2 | #define HTTPSOCKET_H 3 | 4 | #include 5 | #include 6 | 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | class httpsocket : public QObject 13 | { 14 | Q_OBJECT 15 | public: 16 | explicit httpsocket(QObject *parent = 0); 17 | QString response; 18 | QString error; 19 | QString proxyAddress; 20 | QMap headers; 21 | int proxyPort; 22 | bool useProxy; 23 | signals: 24 | void finished(); 25 | public slots: 26 | void getUrl(QString url); 27 | private: 28 | static size_t data_write(void* buf, size_t size, size_t nmemb, void* userp); 29 | CURLcode curl_read(const std::string& url, std::ostream& os, long timeout); 30 | }; 31 | 32 | #endif // HTTPSOCKET_H 33 | -------------------------------------------------------------------------------- /src/qt/jsonsaverloader.cpp: -------------------------------------------------------------------------------- 1 | #include "jsonsaverloader.h" 2 | 3 | jsonsaverloader::jsonsaverloader(QObject *parent) : 4 | QObject(parent) 5 | { 6 | 7 | } 8 | 9 | QJsonDocument jsonsaverloader::loadJson(QString fileName) 10 | { 11 | QFile jsonFile(fileName,this); 12 | jsonFile.open(QFile::ReadOnly); 13 | return QJsonDocument::fromJson(jsonFile.readAll()); 14 | } 15 | 16 | void jsonsaverloader::saveJson(QJsonDocument document, QString fileName) 17 | { 18 | QFile jsonFile(fileName,this); 19 | jsonFile.open(QFile::WriteOnly); 20 | qint64 result = jsonFile.write(document.toJson()); 21 | if(result==-1){ 22 | qDebug()<<"Failed To Save!"; 23 | }else{ 24 | qDebug()<<"Saved ("< 5 | #include 6 | 7 | QT_BEGIN_NAMESPACE 8 | class QMenu; 9 | class QIcon; 10 | class QWidget; 11 | QT_END_NAMESPACE 12 | 13 | #ifdef __OBJC__ 14 | @class DockIconClickEventHandler; 15 | #else 16 | class DockIconClickEventHandler; 17 | #endif 18 | 19 | /** Macintosh-specific dock icon handler. 20 | */ 21 | class MacDockIconHandler : public QObject 22 | { 23 | Q_OBJECT 24 | 25 | public: 26 | ~MacDockIconHandler(); 27 | 28 | QMenu *dockMenu(); 29 | void setIcon(const QIcon &icon); 30 | void setMainWindow(QMainWindow *window); 31 | static MacDockIconHandler *instance(); 32 | 33 | void handleDockIconClickEvent(); 34 | 35 | signals: 36 | void dockIconClicked(); 37 | 38 | private: 39 | MacDockIconHandler(); 40 | 41 | DockIconClickEventHandler *m_dockIconClickEventHandler; 42 | QWidget *m_dummyWidget; 43 | QMenu *m_dockMenu; 44 | QMainWindow *mainWindow; 45 | }; 46 | 47 | #endif // MACDOCKICONCLICKHANDLER_H 48 | -------------------------------------------------------------------------------- /src/qt/monitoreddatamapper.cpp: -------------------------------------------------------------------------------- 1 | #include "monitoreddatamapper.h" 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | MonitoredDataMapper::MonitoredDataMapper(QObject *parent) : 8 | QDataWidgetMapper(parent) 9 | { 10 | } 11 | 12 | 13 | void MonitoredDataMapper::addMapping(QWidget *widget, int section) 14 | { 15 | QDataWidgetMapper::addMapping(widget, section); 16 | addChangeMonitor(widget); 17 | } 18 | 19 | void MonitoredDataMapper::addMapping(QWidget *widget, int section, const QByteArray &propertyName) 20 | { 21 | QDataWidgetMapper::addMapping(widget, section, propertyName); 22 | addChangeMonitor(widget); 23 | } 24 | 25 | void MonitoredDataMapper::addChangeMonitor(QWidget *widget) 26 | { 27 | // Watch user property of widget for changes, and connect 28 | // the signal to our viewModified signal. 29 | QMetaProperty prop = widget->metaObject()->userProperty(); 30 | int signal = prop.notifySignalIndex(); 31 | int method = this->metaObject()->indexOfMethod("viewModified()"); 32 | if(signal != -1 && method != -1) 33 | { 34 | QMetaObject::connect(widget, signal, this, method); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/qt/monitoreddatamapper.h: -------------------------------------------------------------------------------- 1 | #ifndef MONITOREDDATAMAPPER_H 2 | #define MONITOREDDATAMAPPER_H 3 | 4 | #include 5 | 6 | QT_BEGIN_NAMESPACE 7 | class QWidget; 8 | QT_END_NAMESPACE 9 | 10 | /** Data to Widget mapper that watches for edits and notifies listeners when a field is edited. 11 | This can be used, for example, to enable a commit/apply button in a configuration dialog. 12 | */ 13 | class MonitoredDataMapper : public QDataWidgetMapper 14 | { 15 | Q_OBJECT 16 | public: 17 | explicit MonitoredDataMapper(QObject *parent=0); 18 | 19 | void addMapping(QWidget *widget, int section); 20 | void addMapping(QWidget *widget, int section, const QByteArray &propertyName); 21 | private: 22 | void addChangeMonitor(QWidget *widget); 23 | 24 | signals: 25 | void viewModified(); 26 | 27 | }; 28 | 29 | 30 | 31 | #endif // MONITOREDDATAMAPPER_H 32 | -------------------------------------------------------------------------------- /src/qt/onemarket.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/onemarket.png -------------------------------------------------------------------------------- /src/qt/onemarketgui.cpp: -------------------------------------------------------------------------------- 1 | #include "onemarketgui.h" 2 | #include "ui_onemarket.h" 3 | #include "conemarketcreatelisting.h" 4 | 5 | OneMarket::OneMarket(QWidget *parent) : 6 | QMainWindow(parent), 7 | ui(new Ui::OneMarket) 8 | { 9 | ui->setupUi(this); 10 | } 11 | 12 | OneMarket::~OneMarket() 13 | { 14 | delete ui; 15 | } 16 | 17 | void OneMarket::initializeOneMarket() 18 | { 19 | qDebug()<<"One Market Initialized!"; 20 | isInitialized = true; 21 | } 22 | 23 | void OneMarket::on_createListingsSubmitButton_clicked() 24 | { 25 | qDebug()<<"qDebug -> Create Listing Push"; 26 | printf("PrintF -> CreateListing Push\n"); 27 | 28 | //Search Address Manager 29 | COneMarketCreateListing createListing; 30 | createListing.SetMessage(ui->createListingsTitleLineEdit->text().toStdString()); 31 | 32 | //Push Create Listing Message To All Of Them! 33 | LOCK(cs_vNodes); 34 | BOOST_FOREACH(CNode* pnode, vNodes){ 35 | qDebug()<<"QDebug() -> Pushed To Connected Node...\n"; 36 | printf("PrintF -> Pushed To Connected Node...\n"); 37 | createListing.RelayTo(pnode); 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/qt/onemarketgui.h: -------------------------------------------------------------------------------- 1 | #ifndef ONEMARKET_H 2 | #define ONEMARKET_H 3 | 4 | #include 5 | #include 6 | #include "net.h" 7 | 8 | namespace Ui { 9 | class OneMarket; 10 | } 11 | 12 | class OneMarket : public QMainWindow 13 | { 14 | Q_OBJECT 15 | 16 | public: 17 | explicit OneMarket(QWidget *parent = 0); 18 | ~OneMarket(); 19 | void initializeOneMarket(); 20 | 21 | private slots: 22 | void on_createListingsSubmitButton_clicked(); 23 | 24 | private: 25 | Ui::OneMarket *ui; 26 | bool isInitialized; 27 | }; 28 | 29 | #endif // ONEMARKET_H 30 | -------------------------------------------------------------------------------- /src/qt/overviewpage.h: -------------------------------------------------------------------------------- 1 | #ifndef OVERVIEWPAGE_H 2 | #define OVERVIEWPAGE_H 3 | 4 | #include 5 | 6 | QT_BEGIN_NAMESPACE 7 | class QModelIndex; 8 | QT_END_NAMESPACE 9 | 10 | namespace Ui { 11 | class OverviewPage; 12 | } 13 | class WalletModel; 14 | class TxViewDelegate; 15 | class TransactionFilterProxy; 16 | 17 | /** Overview ("home") page widget */ 18 | class OverviewPage : public QWidget 19 | { 20 | Q_OBJECT 21 | 22 | public: 23 | explicit OverviewPage(QWidget *parent = 0); 24 | ~OverviewPage(); 25 | 26 | void setModel(WalletModel *model); 27 | void showOutOfSyncWarning(bool fShow); 28 | 29 | public slots: 30 | void setBalance(qint64 balance, qint64 stake, qint64 unconfirmedBalance, qint64 immatureBalance, qint64 posaReservedBalance); 31 | void setNumTransactions(int count); 32 | 33 | signals: 34 | void transactionClicked(const QModelIndex &index); 35 | 36 | private: 37 | Ui::OverviewPage *ui; 38 | WalletModel *model; 39 | qint64 currentBalance; 40 | qint64 currentStake; 41 | qint64 currentUnconfirmedBalance; 42 | qint64 currentImmatureBalance; 43 | qint64 currentEnigmaReservedBalance; 44 | 45 | TxViewDelegate *txdelegate; 46 | TransactionFilterProxy *filter; 47 | 48 | private slots: 49 | void updateDisplayUnit(); 50 | void handleTransactionClicked(const QModelIndex &index); 51 | }; 52 | 53 | #endif // OVERVIEWPAGE_H 54 | -------------------------------------------------------------------------------- /src/qt/qrcodedialog.h: -------------------------------------------------------------------------------- 1 | #ifndef QRCODEDIALOG_H 2 | #define QRCODEDIALOG_H 3 | 4 | #include 5 | #include 6 | 7 | namespace Ui { 8 | class QRCodeDialog; 9 | } 10 | class OptionsModel; 11 | 12 | class QRCodeDialog : public QDialog 13 | { 14 | Q_OBJECT 15 | 16 | public: 17 | explicit QRCodeDialog(const QString &addr, const QString &label, bool enableReq, QWidget *parent = 0); 18 | ~QRCodeDialog(); 19 | 20 | void setModel(OptionsModel *model); 21 | 22 | private slots: 23 | void on_lnReqAmount_textChanged(); 24 | void on_lnLabel_textChanged(); 25 | void on_lnMessage_textChanged(); 26 | void on_btnSaveAs_clicked(); 27 | void on_chkReqPayment_toggled(bool fChecked); 28 | 29 | void updateDisplayUnit(); 30 | 31 | private: 32 | Ui::QRCodeDialog *ui; 33 | OptionsModel *model; 34 | QString address; 35 | QImage myImage; 36 | 37 | void genCode(); 38 | QString getURI(); 39 | }; 40 | 41 | #endif // QRCODEDIALOG_H 42 | -------------------------------------------------------------------------------- /src/qt/qtipcserver.h: -------------------------------------------------------------------------------- 1 | #ifndef QTIPCSERVER_H 2 | #define QTIPCSERVER_H 3 | 4 | // Define Bitcoin-Qt message queue name 5 | #define BITCOINURI_QUEUE_NAME "BitcoinURI" 6 | 7 | void ipcScanRelay(int argc, char *argv[]); 8 | void ipcInit(int argc, char *argv[]); 9 | 10 | #endif // QTIPCSERVER_H 11 | -------------------------------------------------------------------------------- /src/qt/qvalidatedlineedit.cpp: -------------------------------------------------------------------------------- 1 | #include "qvalidatedlineedit.h" 2 | 3 | #include "guiconstants.h" 4 | 5 | QValidatedLineEdit::QValidatedLineEdit(QWidget *parent) : 6 | QLineEdit(parent), valid(true) 7 | { 8 | connect(this, SIGNAL(textChanged(QString)), this, SLOT(markValid())); 9 | } 10 | 11 | void QValidatedLineEdit::setValid(bool valid) 12 | { 13 | if(valid == this->valid) 14 | { 15 | return; 16 | } 17 | 18 | if(valid) 19 | { 20 | setStyleSheet(""); 21 | } 22 | else 23 | { 24 | setStyleSheet(STYLE_INVALID); 25 | } 26 | this->valid = valid; 27 | } 28 | 29 | void QValidatedLineEdit::focusInEvent(QFocusEvent *evt) 30 | { 31 | // Clear invalid flag on focus 32 | setValid(true); 33 | QLineEdit::focusInEvent(evt); 34 | } 35 | 36 | void QValidatedLineEdit::markValid() 37 | { 38 | setValid(true); 39 | } 40 | 41 | void QValidatedLineEdit::clear() 42 | { 43 | setValid(true); 44 | QLineEdit::clear(); 45 | } 46 | -------------------------------------------------------------------------------- /src/qt/qvalidatedlineedit.h: -------------------------------------------------------------------------------- 1 | #ifndef QVALIDATEDLINEEDIT_H 2 | #define QVALIDATEDLINEEDIT_H 3 | 4 | #include 5 | 6 | /** Line edit that can be marked as "invalid" to show input validation feedback. When marked as invalid, 7 | it will get a red background until it is focused. 8 | */ 9 | class QValidatedLineEdit : public QLineEdit 10 | { 11 | Q_OBJECT 12 | public: 13 | explicit QValidatedLineEdit(QWidget *parent = 0); 14 | void clear(); 15 | 16 | protected: 17 | void focusInEvent(QFocusEvent *evt); 18 | 19 | private: 20 | bool valid; 21 | 22 | public slots: 23 | void setValid(bool valid); 24 | 25 | private slots: 26 | void markValid(); 27 | }; 28 | 29 | #endif // QVALIDATEDLINEEDIT_H 30 | -------------------------------------------------------------------------------- /src/qt/qvaluecombobox.cpp: -------------------------------------------------------------------------------- 1 | #include "qvaluecombobox.h" 2 | 3 | QValueComboBox::QValueComboBox(QWidget *parent) : 4 | QComboBox(parent), role(Qt::UserRole) 5 | { 6 | connect(this, SIGNAL(currentIndexChanged(int)), this, SLOT(handleSelectionChanged(int))); 7 | } 8 | 9 | QVariant QValueComboBox::value() const 10 | { 11 | return itemData(currentIndex(), role); 12 | } 13 | 14 | void QValueComboBox::setValue(const QVariant &value) 15 | { 16 | setCurrentIndex(findData(value, role)); 17 | } 18 | 19 | void QValueComboBox::setRole(int role) 20 | { 21 | this->role = role; 22 | } 23 | 24 | void QValueComboBox::handleSelectionChanged(int idx) 25 | { 26 | emit valueChanged(); 27 | } 28 | -------------------------------------------------------------------------------- /src/qt/qvaluecombobox.h: -------------------------------------------------------------------------------- 1 | #ifndef QVALUECOMBOBOX_H 2 | #define QVALUECOMBOBOX_H 3 | 4 | #include 5 | #include 6 | 7 | /* QComboBox that can be used with QDataWidgetMapper to select ordinal values from a model. */ 8 | class QValueComboBox : public QComboBox 9 | { 10 | Q_OBJECT 11 | Q_PROPERTY(QVariant value READ value WRITE setValue NOTIFY valueChanged USER true) 12 | public: 13 | explicit QValueComboBox(QWidget *parent = 0); 14 | 15 | QVariant value() const; 16 | void setValue(const QVariant &value); 17 | 18 | /** Specify model role to use as ordinal value (defaults to Qt::UserRole) */ 19 | void setRole(int role); 20 | 21 | signals: 22 | void valueChanged(); 23 | 24 | public slots: 25 | 26 | private: 27 | int role; 28 | 29 | private slots: 30 | void handleSelectionChanged(int idx); 31 | }; 32 | 33 | #endif // QVALUECOMBOBOX_H 34 | -------------------------------------------------------------------------------- /src/qt/res/crush_png.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | setlocal enabledelayedexpansion 3 | for %%f in (C:\cloakcoin\cpa3\src\qt\res\icons\*.png) do ( 4 | pngcrush -ow -rem allb -reduce %%f 5 | ) 6 | 7 | for %%f in (C:\cloakcoin\cpa3\src\qt\res\images\*.png) do ( 8 | pngcrush -ow -rem allb -reduce %%f 9 | ) -------------------------------------------------------------------------------- /src/qt/res/fonts/Classic_Robot.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/fonts/Classic_Robot.ttf -------------------------------------------------------------------------------- /src/qt/res/icons/CloakCoin-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/CloakCoin-128.png -------------------------------------------------------------------------------- /src/qt/res/icons/CloakCoin-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/CloakCoin-16.png -------------------------------------------------------------------------------- /src/qt/res/icons/CloakCoin.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/CloakCoin.icns -------------------------------------------------------------------------------- /src/qt/res/icons/CloakCoin.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/CloakCoin.ico -------------------------------------------------------------------------------- /src/qt/res/icons/CloakCoin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/CloakCoin.png -------------------------------------------------------------------------------- /src/qt/res/icons/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/add.png -------------------------------------------------------------------------------- /src/qt/res/icons/address-book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/address-book.png -------------------------------------------------------------------------------- /src/qt/res/icons/bitcoin.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/bitcoin.icns -------------------------------------------------------------------------------- /src/qt/res/icons/bitcoin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/bitcoin.png -------------------------------------------------------------------------------- /src/qt/res/icons/bitcoin_testnet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/bitcoin_testnet.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_gray.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_1.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_10.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_11.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_12.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_13.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_14.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_15.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_16.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_17.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_18.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_19.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_2.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_20.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_21.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_22.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_23.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_24.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_25.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_26.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_3.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_4.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_5.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_6.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_7.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_8.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloak_icon_green_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloak_icon_green_9.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloaker_accepted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloaker_accepted.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloaker_failed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloaker_failed.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloaker_finalized.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloaker_finalized.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloaker_refused_to_sign.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloaker_refused_to_sign.png -------------------------------------------------------------------------------- /src/qt/res/icons/cloaker_signed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/cloaker_signed.png -------------------------------------------------------------------------------- /src/qt/res/icons/clock1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/clock1.png -------------------------------------------------------------------------------- /src/qt/res/icons/clock2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/clock2.png -------------------------------------------------------------------------------- /src/qt/res/icons/clock3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/clock3.png -------------------------------------------------------------------------------- /src/qt/res/icons/clock4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/clock4.png -------------------------------------------------------------------------------- /src/qt/res/icons/clock5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/clock5.png -------------------------------------------------------------------------------- /src/qt/res/icons/configure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/configure.png -------------------------------------------------------------------------------- /src/qt/res/icons/connect0_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/connect0_16.png -------------------------------------------------------------------------------- /src/qt/res/icons/connect1_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/connect1_16.png -------------------------------------------------------------------------------- /src/qt/res/icons/connect2_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/connect2_16.png -------------------------------------------------------------------------------- /src/qt/res/icons/connect3_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/connect3_16.png -------------------------------------------------------------------------------- /src/qt/res/icons/connect4_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/connect4_16.png -------------------------------------------------------------------------------- /src/qt/res/icons/debugwindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/debugwindow.png -------------------------------------------------------------------------------- /src/qt/res/icons/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/edit.png -------------------------------------------------------------------------------- /src/qt/res/icons/editcopy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/editcopy.png -------------------------------------------------------------------------------- /src/qt/res/icons/editpaste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/editpaste.png -------------------------------------------------------------------------------- /src/qt/res/icons/export.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/export.png -------------------------------------------------------------------------------- /src/qt/res/icons/filesave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/filesave.png -------------------------------------------------------------------------------- /src/qt/res/icons/history.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/history.png -------------------------------------------------------------------------------- /src/qt/res/icons/key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/key.png -------------------------------------------------------------------------------- /src/qt/res/icons/lock_closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/lock_closed.png -------------------------------------------------------------------------------- /src/qt/res/icons/lock_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/lock_open.png -------------------------------------------------------------------------------- /src/qt/res/icons/mining.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/mining.png -------------------------------------------------------------------------------- /src/qt/res/icons/mining_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/mining_active.png -------------------------------------------------------------------------------- /src/qt/res/icons/mining_inactive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/mining_inactive.png -------------------------------------------------------------------------------- /src/qt/res/icons/notsynced.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/notsynced.png -------------------------------------------------------------------------------- /src/qt/res/icons/overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/overview.png -------------------------------------------------------------------------------- /src/qt/res/icons/photothumb.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/photothumb.db -------------------------------------------------------------------------------- /src/qt/res/icons/posa3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/posa3.png -------------------------------------------------------------------------------- /src/qt/res/icons/qrcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/qrcode.png -------------------------------------------------------------------------------- /src/qt/res/icons/quit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/quit.png -------------------------------------------------------------------------------- /src/qt/res/icons/receive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/receive.png -------------------------------------------------------------------------------- /src/qt/res/icons/remove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/remove.png -------------------------------------------------------------------------------- /src/qt/res/icons/send.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/send.png -------------------------------------------------------------------------------- /src/qt/res/icons/shield.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/shield.png -------------------------------------------------------------------------------- /src/qt/res/icons/splash2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/splash2.png -------------------------------------------------------------------------------- /src/qt/res/icons/staking_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/staking_off.png -------------------------------------------------------------------------------- /src/qt/res/icons/staking_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/staking_on.png -------------------------------------------------------------------------------- /src/qt/res/icons/start1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/start1.png -------------------------------------------------------------------------------- /src/qt/res/icons/start2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/start2.png -------------------------------------------------------------------------------- /src/qt/res/icons/synced.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/synced.png -------------------------------------------------------------------------------- /src/qt/res/icons/transaction0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/transaction0.png -------------------------------------------------------------------------------- /src/qt/res/icons/transaction2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/transaction2.png -------------------------------------------------------------------------------- /src/qt/res/icons/transaction_conflicted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/transaction_conflicted.png -------------------------------------------------------------------------------- /src/qt/res/icons/tx_inout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/tx_inout.png -------------------------------------------------------------------------------- /src/qt/res/icons/tx_input.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/tx_input.png -------------------------------------------------------------------------------- /src/qt/res/icons/tx_mined.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/tx_mined.png -------------------------------------------------------------------------------- /src/qt/res/icons/tx_output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/tx_output.png -------------------------------------------------------------------------------- /src/qt/res/icons/tx_posa_input.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/tx_posa_input.png -------------------------------------------------------------------------------- /src/qt/res/icons/tx_posa_output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons/tx_posa_output.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/CloakCoin-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/CloakCoin-128.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/CloakCoin-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/CloakCoin-16.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/CloakCoin.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/CloakCoin.icns -------------------------------------------------------------------------------- /src/qt/res/icons_old/CloakCoin.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/CloakCoin.ico -------------------------------------------------------------------------------- /src/qt/res/icons_old/CloakCoin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/CloakCoin.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/add.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/address-book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/address-book.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/bitcoin.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/bitcoin.icns -------------------------------------------------------------------------------- /src/qt/res/icons_old/bitcoin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/bitcoin.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/bitcoin_testnet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/bitcoin_testnet.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/cloak_icon_gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/cloak_icon_gray.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/cloak_icon_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/cloak_icon_green.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/clock1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/clock1.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/clock2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/clock2.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/clock3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/clock3.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/clock4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/clock4.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/clock5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/clock5.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/configure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/configure.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/connect0_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/connect0_16.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/connect1_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/connect1_16.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/connect2_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/connect2_16.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/connect3_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/connect3_16.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/connect4_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/connect4_16.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/debugwindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/debugwindow.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/edit.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/editcopy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/editcopy.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/editpaste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/editpaste.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/export.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/export.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/filesave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/filesave.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/history.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/history.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/key.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/lock_closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/lock_closed.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/lock_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/lock_open.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/mining.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/mining.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/mining_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/mining_active.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/mining_inactive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/mining_inactive.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/notsynced.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/notsynced.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/overview.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/photothumb.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/photothumb.db -------------------------------------------------------------------------------- /src/qt/res/icons_old/qrcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/qrcode.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/quit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/quit.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/receive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/receive.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/remove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/remove.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/send.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/send.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/staking_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/staking_off.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/staking_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/staking_on.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/synced.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/synced.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/transaction0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/transaction0.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/transaction2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/transaction2.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/transaction_conflicted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/transaction_conflicted.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/tx_inout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/tx_inout.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/tx_input.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/tx_input.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/tx_mined.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/tx_mined.png -------------------------------------------------------------------------------- /src/qt/res/icons_old/tx_output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/icons_old/tx_output.png -------------------------------------------------------------------------------- /src/qt/res/images/about.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/images/about.png -------------------------------------------------------------------------------- /src/qt/res/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/images/background.png -------------------------------------------------------------------------------- /src/qt/res/images/drkblue_walletFrame.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/images/drkblue_walletFrame.png -------------------------------------------------------------------------------- /src/qt/res/images/drkblue_walletFrame_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/images/drkblue_walletFrame_bg.png -------------------------------------------------------------------------------- /src/qt/res/images/shadow9202.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/images/shadow9202.png -------------------------------------------------------------------------------- /src/qt/res/images/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/images/splash.png -------------------------------------------------------------------------------- /src/qt/res/images/splash_old.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/images/splash_old.png -------------------------------------------------------------------------------- /src/qt/res/images/wallet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/images/wallet.png -------------------------------------------------------------------------------- /src/qt/res/movies/update_spinner.mng: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ImgBotApp/CloakCoin/10df3d27e5a5143198436bac20b298e96e152e10/src/qt/res/movies/update_spinner.mng -------------------------------------------------------------------------------- /src/qt/signverifymessagedialog.h: -------------------------------------------------------------------------------- 1 | #ifndef SIGNVERIFYMESSAGEDIALOG_H 2 | #define SIGNVERIFYMESSAGEDIALOG_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class SignVerifyMessageDialog; 8 | } 9 | class WalletModel; 10 | 11 | QT_BEGIN_NAMESPACE 12 | QT_END_NAMESPACE 13 | 14 | class SignVerifyMessageDialog : public QDialog 15 | { 16 | Q_OBJECT 17 | 18 | public: 19 | explicit SignVerifyMessageDialog(QWidget *parent = 0); 20 | ~SignVerifyMessageDialog(); 21 | 22 | void setModel(WalletModel *model); 23 | void setAddress_SM(QString address); 24 | void setAddress_VM(QString address); 25 | 26 | void showTab_SM(bool fShow); 27 | void showTab_VM(bool fShow); 28 | 29 | protected: 30 | bool eventFilter(QObject *object, QEvent *event); 31 | 32 | private: 33 | Ui::SignVerifyMessageDialog *ui; 34 | WalletModel *model; 35 | 36 | private slots: 37 | /* sign message */ 38 | void on_addressBookButton_SM_clicked(); 39 | void on_pasteButton_SM_clicked(); 40 | void on_signMessageButton_SM_clicked(); 41 | void on_copySignatureButton_SM_clicked(); 42 | void on_clearButton_SM_clicked(); 43 | /* verify message */ 44 | void on_addressBookButton_VM_clicked(); 45 | void on_verifyMessageButton_VM_clicked(); 46 | void on_clearButton_VM_clicked(); 47 | }; 48 | 49 | #endif // SIGNVERIFYMESSAGEDIALOG_H 50 | -------------------------------------------------------------------------------- /src/qt/splashscreen.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2014 The Bitcoin developers 2 | // Distributed under the MIT/X11 software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef SPLASHSCREEN_H 6 | #define SPLASHSCREEN_H 7 | 8 | #include 9 | 10 | /** class for the splashscreen with information of the running client 11 | */ 12 | class SplashScreen : public QWidget 13 | { 14 | Q_OBJECT 15 | 16 | public: 17 | explicit SplashScreen(Qt::WindowFlags f, bool isTestNet); 18 | ~SplashScreen(); 19 | 20 | public slots: 21 | /** Slot to call finish() method as it's not defined as slot */ 22 | void slotFinish(QWidget *mainWin); 23 | /** Show message and progress */ 24 | void showMessage(const QString &message, int alignment, const QColor &color); 25 | 26 | protected: 27 | void paintEvent(QPaintEvent *event); 28 | void mousePressEvent(QMouseEvent *); 29 | 30 | private: 31 | /** Connect core signals to splash screen */ 32 | void subscribeToCoreSignals(); 33 | /** Disconnect core signals to splash screen */ 34 | void unsubscribeFromCoreSignals(); 35 | QPixmap pixmap; 36 | QString curMessage; 37 | QColor curColor; 38 | int curAlignment; 39 | }; 40 | 41 | #endif // SPLASHSCREEN_H 42 | -------------------------------------------------------------------------------- /src/qt/test/test_main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include "uritests.h" 5 | 6 | // This is all you need to run all the tests 7 | int main(int argc, char *argv[]) 8 | { 9 | bool fInvalid = false; 10 | 11 | URITests test1; 12 | if (QTest::qExec(&test1) != 0) 13 | fInvalid = true; 14 | 15 | return fInvalid; 16 | } 17 | -------------------------------------------------------------------------------- /src/qt/test/uritests.h: -------------------------------------------------------------------------------- 1 | #ifndef URITESTS_H 2 | #define URITESTS_H 3 | 4 | #include 5 | #include 6 | 7 | class URITests : public QObject 8 | { 9 | Q_OBJECT 10 | 11 | private slots: 12 | void uriTests(); 13 | }; 14 | 15 | #endif // URITESTS_H 16 | -------------------------------------------------------------------------------- /src/qt/tickertimer.cpp: -------------------------------------------------------------------------------- 1 | #include "tickertimer.h" 2 | 3 | tickertimer::tickertimer(QObject *parent) : 4 | QObject(parent) 5 | { 6 | this->timer = new QTimer(this); 7 | connect(this->timer, SIGNAL(timeout()), this, SLOT(update())); 8 | } 9 | 10 | void tickertimer::start() 11 | { 12 | this->timer->start(60000); 13 | } 14 | 15 | void tickertimer::update() 16 | { 17 | emit timerReady(); 18 | } 19 | -------------------------------------------------------------------------------- /src/qt/tickertimer.h: -------------------------------------------------------------------------------- 1 | #ifndef TICKERTIMER_H 2 | #define TICKERTIMER_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | class tickertimer : public QObject 9 | { 10 | Q_OBJECT 11 | public: 12 | explicit tickertimer(QObject *parent = 0); 13 | void start(); 14 | QTimer *timer; 15 | signals: 16 | void timerReady(); 17 | public slots: 18 | void update(); 19 | private: 20 | 21 | }; 22 | 23 | #endif // TICKERTIMER_H 24 | -------------------------------------------------------------------------------- /src/qt/transactiondesc.h: -------------------------------------------------------------------------------- 1 | #ifndef TRANSACTIONDESC_H 2 | #define TRANSACTIONDESC_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | class CWallet; 9 | class CWalletTx; 10 | 11 | /** Provide a human-readable extended HTML description of a transaction. 12 | */ 13 | class TransactionDesc: public QObject 14 | { 15 | Q_OBJECT 16 | public: 17 | static QString toHTML(CWallet *wallet, CWalletTx &wtx); 18 | private: 19 | TransactionDesc() {} 20 | 21 | static QString FormatTxStatus(const CWalletTx& wtx); 22 | }; 23 | 24 | #endif // TRANSACTIONDESC_H 25 | -------------------------------------------------------------------------------- /src/qt/transactiondescdialog.cpp: -------------------------------------------------------------------------------- 1 | #include "transactiondescdialog.h" 2 | #include "ui_transactiondescdialog.h" 3 | 4 | #include "transactiontablemodel.h" 5 | 6 | #include 7 | 8 | TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *parent) : 9 | QDialog(parent), 10 | ui(new Ui::TransactionDescDialog) 11 | { 12 | ui->setupUi(this); 13 | QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString(); 14 | ui->detailText->setHtml(desc); 15 | } 16 | 17 | TransactionDescDialog::~TransactionDescDialog() 18 | { 19 | delete ui; 20 | } 21 | -------------------------------------------------------------------------------- /src/qt/transactiondescdialog.h: -------------------------------------------------------------------------------- 1 | #ifndef TRANSACTIONDESCDIALOG_H 2 | #define TRANSACTIONDESCDIALOG_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class TransactionDescDialog; 8 | } 9 | QT_BEGIN_NAMESPACE 10 | class QModelIndex; 11 | QT_END_NAMESPACE 12 | 13 | /** Dialog showing transaction details. */ 14 | class TransactionDescDialog : public QDialog 15 | { 16 | Q_OBJECT 17 | 18 | public: 19 | explicit TransactionDescDialog(const QModelIndex &idx, QWidget *parent = 0); 20 | ~TransactionDescDialog(); 21 | 22 | private: 23 | Ui::TransactionDescDialog *ui; 24 | }; 25 | 26 | #endif // TRANSACTIONDESCDIALOG_H 27 | -------------------------------------------------------------------------------- /src/qt/utilitydialog.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011-2014 The Bitcoin developers 2 | // Distributed under the MIT/X11 software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef UTILITYDIALOG_H 6 | #define UTILITYDIALOG_H 7 | 8 | #include 9 | #include 10 | 11 | class BitcoinGUI; 12 | class ClientModel; 13 | 14 | namespace Ui { 15 | class AboutDialog; 16 | class HelpMessageDialog; 17 | } 18 | 19 | /** "Help message" dialog box */ 20 | class HelpMessageDialog : public QDialog 21 | { 22 | Q_OBJECT 23 | 24 | public: 25 | explicit HelpMessageDialog(QWidget *parent); 26 | ~HelpMessageDialog(); 27 | 28 | void printToConsole(); 29 | void showOrPrint(); 30 | 31 | private: 32 | Ui::HelpMessageDialog *ui; 33 | QString header; 34 | QString coreOptions; 35 | QString uiOptions; 36 | 37 | private slots: 38 | void on_okButton_accepted(); 39 | }; 40 | 41 | 42 | /** "Shutdown" window */ 43 | class ShutdownWindow : public QObject 44 | { 45 | Q_OBJECT 46 | 47 | public: 48 | static void showShutdownWindow(BitcoinGUI *window); 49 | }; 50 | 51 | #endif // UTILITYDIALOG_H 52 | -------------------------------------------------------------------------------- /src/qt/winshutdownmonitor.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 The Bitcoin developers 2 | // Distributed under the MIT/X11 software license, see the accompanying 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 | 5 | #ifndef WINSHUTDOWNMONITOR_H 6 | #define WINSHUTDOWNMONITOR_H 7 | 8 | #ifdef WIN32 9 | #include 10 | #include 11 | 12 | #if QT_VERSION >= 0x050000 13 | #include // for HWND 14 | 15 | #include 16 | 17 | class WinShutdownMonitor : public QAbstractNativeEventFilter 18 | { 19 | public: 20 | /** Implements QAbstractNativeEventFilter interface for processing Windows messages */ 21 | bool nativeEventFilter(const QByteArray &eventType, void *pMessage, long *pnResult); 22 | 23 | /** Register the reason for blocking shutdown on Windows to allow clean client exit */ 24 | static void registerShutdownBlockReason(const QString& strReason, const HWND& mainWinId); 25 | }; 26 | #endif 27 | #endif 28 | 29 | #endif // WINSHUTDOWNMONITOR_H 30 | -------------------------------------------------------------------------------- /src/scrypt.h: -------------------------------------------------------------------------------- 1 | #ifndef SCRYPT_MINE_H 2 | #define SCRYPT_MINE_H 3 | 4 | #include 5 | #include 6 | 7 | #include "util.h" 8 | #include "net.h" 9 | 10 | uint256 scrypt_salted_multiround_hash(const void* input, size_t inputlen, const void* salt, size_t saltlen, const unsigned int nRounds); 11 | uint256 scrypt_salted_hash(const void* input, size_t inputlen, const void* salt, size_t saltlen); 12 | uint256 scrypt_hash(const void* input, size_t inputlen); 13 | uint256 scrypt_blockhash(const void* input); 14 | 15 | #endif // SCRYPT_MINE_H 16 | -------------------------------------------------------------------------------- /src/scrypt_mine.h: -------------------------------------------------------------------------------- 1 | #ifndef SCRYPT_MINE_H 2 | #define SCRYPT_MINE_H 3 | 4 | #include 5 | #include 6 | 7 | #include "util.h" 8 | #include "net.h" 9 | 10 | typedef struct 11 | { 12 | unsigned int version; 13 | uint256 prev_block; 14 | uint256 merkle_root; 15 | unsigned int timestamp; 16 | unsigned int bits; 17 | unsigned int nonce; 18 | 19 | } block_header; 20 | 21 | void *scrypt_buffer_alloc(); 22 | void scrypt_buffer_free(void *scratchpad); 23 | 24 | unsigned int scanhash_scrypt(block_header *pdata, void *scratchbuf, 25 | uint32_t max_nonce, uint32_t &hash_count, 26 | void *result, block_header *res_header); 27 | 28 | void scrypt_hash(const void* input, size_t inputlen, uint32_t *res, void *scratchpad); 29 | 30 | #endif // SCRYPT_MINE_H 31 | -------------------------------------------------------------------------------- /src/secp256k1/.gitignore: -------------------------------------------------------------------------------- 1 | bench_inv 2 | bench_ecdh 3 | bench_sign 4 | bench_verify 5 | bench_schnorr_verify 6 | bench_recover 7 | bench_internal 8 | tests 9 | gen_context 10 | *.exe 11 | *.so 12 | *.a 13 | !.gitignore 14 | 15 | Makefile 16 | configure 17 | .libs/ 18 | Makefile.in 19 | aclocal.m4 20 | autom4te.cache/ 21 | config.log 22 | config.status 23 | *.tar.gz 24 | *.la 25 | libtool 26 | .deps/ 27 | .dirstamp 28 | *.lo 29 | *.o 30 | *~ 31 | src/libsecp256k1-config.h 32 | src/libsecp256k1-config.h.in 33 | src/ecmult_static_context.h 34 | build-aux/config.guess 35 | build-aux/config.sub 36 | build-aux/depcomp 37 | build-aux/install-sh 38 | build-aux/ltmain.sh 39 | build-aux/m4/libtool.m4 40 | build-aux/m4/lt~obsolete.m4 41 | build-aux/m4/ltoptions.m4 42 | build-aux/m4/ltsugar.m4 43 | build-aux/m4/ltversion.m4 44 | build-aux/missing 45 | build-aux/compile 46 | build-aux/test-driver 47 | src/stamp-h1 48 | libsecp256k1.pc 49 | -------------------------------------------------------------------------------- /src/secp256k1/COPYING: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 Pieter Wuille 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /src/secp256k1/TODO: -------------------------------------------------------------------------------- 1 | * Unit tests for fieldelem/groupelem, including ones intended to 2 | trigger fieldelem's boundary cases. 3 | * Complete constant-time operations for signing/keygen 4 | -------------------------------------------------------------------------------- /src/secp256k1/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | autoreconf -if --warnings=all 4 | -------------------------------------------------------------------------------- /src/secp256k1/include/secp256k1_ecdh.h: -------------------------------------------------------------------------------- 1 | #ifndef _SECP256K1_ECDH_ 2 | # define _SECP256K1_ECDH_ 3 | 4 | # include "secp256k1.h" 5 | 6 | # ifdef __cplusplus 7 | extern "C" { 8 | # endif 9 | 10 | /** Compute an EC Diffie-Hellman secret in constant time 11 | * Returns: 1: exponentiation was successful 12 | * 0: scalar was invalid (zero or overflow) 13 | * Args: ctx: pointer to a context object (cannot be NULL) 14 | * Out: result: a 32-byte array which will be populated by an ECDH 15 | * secret computed from the point and scalar 16 | * In: pubkey: a pointer to a secp256k1_pubkey containing an 17 | * initialized public key 18 | * privkey: a 32-byte scalar with which to multiply the point 19 | */ 20 | SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ecdh( 21 | const secp256k1_context* ctx, 22 | unsigned char *result, 23 | const secp256k1_pubkey *pubkey, 24 | const unsigned char *privkey 25 | ) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4); 26 | 27 | # ifdef __cplusplus 28 | } 29 | # endif 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /src/secp256k1/libsecp256k1.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: libsecp256k1 7 | Description: Optimized C library for EC operations on curve secp256k1 8 | URL: https://github.com/bitcoin-core/secp256k1 9 | Version: @PACKAGE_VERSION@ 10 | Cflags: -I${includedir} 11 | Libs.private: @SECP_LIBS@ 12 | Libs: -L${libdir} -lsecp256k1 13 | 14 | -------------------------------------------------------------------------------- /src/secp256k1/src/basic-config.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2013, 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_BASIC_CONFIG_ 8 | #define _SECP256K1_BASIC_CONFIG_ 9 | 10 | #ifdef USE_BASIC_CONFIG 11 | 12 | #undef USE_ASM_X86_64 13 | #undef USE_ENDOMORPHISM 14 | #undef USE_FIELD_10X26 15 | #undef USE_FIELD_5X52 16 | #undef USE_FIELD_INV_BUILTIN 17 | #undef USE_FIELD_INV_NUM 18 | #undef USE_NUM_GMP 19 | #undef USE_NUM_NONE 20 | #undef USE_SCALAR_4X64 21 | #undef USE_SCALAR_8X32 22 | #undef USE_SCALAR_INV_BUILTIN 23 | #undef USE_SCALAR_INV_NUM 24 | 25 | #define USE_NUM_NONE 1 26 | #define USE_FIELD_INV_BUILTIN 1 27 | #define USE_SCALAR_INV_BUILTIN 1 28 | #define USE_FIELD_10X26 1 29 | #define USE_SCALAR_8X32 1 30 | 31 | #endif // USE_BASIC_CONFIG 32 | #endif // _SECP256K1_BASIC_CONFIG_ 33 | -------------------------------------------------------------------------------- /src/secp256k1/src/ecdsa.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2013, 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_ECDSA_ 8 | #define _SECP256K1_ECDSA_ 9 | 10 | #include 11 | 12 | #include "scalar.h" 13 | #include "group.h" 14 | #include "ecmult.h" 15 | 16 | static int secp256k1_ecdsa_sig_parse(secp256k1_scalar *r, secp256k1_scalar *s, const unsigned char *sig, size_t size); 17 | static int secp256k1_ecdsa_sig_serialize(unsigned char *sig, size_t *size, const secp256k1_scalar *r, const secp256k1_scalar *s); 18 | static int secp256k1_ecdsa_sig_verify(const secp256k1_ecmult_context *ctx, const secp256k1_scalar* r, const secp256k1_scalar* s, const secp256k1_ge *pubkey, const secp256k1_scalar *message); 19 | static int secp256k1_ecdsa_sig_sign(const secp256k1_ecmult_gen_context *ctx, secp256k1_scalar* r, secp256k1_scalar* s, const secp256k1_scalar *seckey, const secp256k1_scalar *message, const secp256k1_scalar *nonce, int *recid); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /src/secp256k1/src/eckey.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2013, 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_ECKEY_ 8 | #define _SECP256K1_ECKEY_ 9 | 10 | #include 11 | 12 | #include "group.h" 13 | #include "scalar.h" 14 | #include "ecmult.h" 15 | #include "ecmult_gen.h" 16 | 17 | static int secp256k1_eckey_pubkey_parse(secp256k1_ge *elem, const unsigned char *pub, size_t size); 18 | static int secp256k1_eckey_pubkey_serialize(secp256k1_ge *elem, unsigned char *pub, size_t *size, int compressed); 19 | 20 | static int secp256k1_eckey_privkey_tweak_add(secp256k1_scalar *key, const secp256k1_scalar *tweak); 21 | static int secp256k1_eckey_pubkey_tweak_add(const secp256k1_ecmult_context *ctx, secp256k1_ge *key, const secp256k1_scalar *tweak); 22 | static int secp256k1_eckey_privkey_tweak_mul(secp256k1_scalar *key, const secp256k1_scalar *tweak); 23 | static int secp256k1_eckey_pubkey_tweak_mul(const secp256k1_ecmult_context *ctx, secp256k1_ge *key, const secp256k1_scalar *tweak); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /src/secp256k1/src/ecmult_const.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2015 Andrew Poelstra * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_ECMULT_CONST_ 8 | #define _SECP256K1_ECMULT_CONST_ 9 | 10 | #include "scalar.h" 11 | #include "group.h" 12 | 13 | static void secp256k1_ecmult_const(secp256k1_gej *r, const secp256k1_ge *a, const secp256k1_scalar *q); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /src/secp256k1/src/java/org_bitcoin_Secp256k1Context.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "org_bitcoin_Secp256k1Context.h" 4 | #include "include/secp256k1.h" 5 | 6 | SECP256K1_API jlong JNICALL Java_org_bitcoin_Secp256k1Context_secp256k1_1init_1context 7 | (JNIEnv* env, jclass classObject) 8 | { 9 | secp256k1_context *ctx = secp256k1_context_create(SECP256K1_CONTEXT_SIGN | SECP256K1_CONTEXT_VERIFY); 10 | 11 | (void)classObject;(void)env; 12 | 13 | return (uintptr_t)ctx; 14 | } 15 | 16 | -------------------------------------------------------------------------------- /src/secp256k1/src/java/org_bitcoin_Secp256k1Context.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE - it is machine generated */ 2 | #include 3 | #include "include/secp256k1.h" 4 | /* Header for class org_bitcoin_Secp256k1Context */ 5 | 6 | #ifndef _Included_org_bitcoin_Secp256k1Context 7 | #define _Included_org_bitcoin_Secp256k1Context 8 | #ifdef __cplusplus 9 | extern "C" { 10 | #endif 11 | /* 12 | * Class: org_bitcoin_Secp256k1Context 13 | * Method: secp256k1_init_context 14 | * Signature: ()J 15 | */ 16 | SECP256K1_API jlong JNICALL Java_org_bitcoin_Secp256k1Context_secp256k1_1init_1context 17 | (JNIEnv *, jclass); 18 | 19 | #ifdef __cplusplus 20 | } 21 | #endif 22 | #endif 23 | -------------------------------------------------------------------------------- /src/secp256k1/src/modules/ecdh/Makefile.am.include: -------------------------------------------------------------------------------- 1 | include_HEADERS += include/secp256k1_ecdh.h 2 | noinst_HEADERS += src/modules/ecdh/main_impl.h 3 | noinst_HEADERS += src/modules/ecdh/tests_impl.h 4 | if USE_BENCHMARK 5 | noinst_PROGRAMS += bench_ecdh 6 | bench_ecdh_SOURCES = src/bench_ecdh.c 7 | bench_ecdh_LDADD = libsecp256k1.la $(SECP_LIBS) $(COMMON_LIB) 8 | endif 9 | -------------------------------------------------------------------------------- /src/secp256k1/src/modules/recovery/Makefile.am.include: -------------------------------------------------------------------------------- 1 | include_HEADERS += include/secp256k1_recovery.h 2 | noinst_HEADERS += src/modules/recovery/main_impl.h 3 | noinst_HEADERS += src/modules/recovery/tests_impl.h 4 | if USE_BENCHMARK 5 | noinst_PROGRAMS += bench_recover 6 | bench_recover_SOURCES = src/bench_recover.c 7 | bench_recover_LDADD = libsecp256k1.la $(SECP_LIBS) $(COMMON_LIB) 8 | endif 9 | -------------------------------------------------------------------------------- /src/secp256k1/src/num_gmp.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2013, 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_NUM_REPR_ 8 | #define _SECP256K1_NUM_REPR_ 9 | 10 | #include 11 | 12 | #define NUM_LIMBS ((256+GMP_NUMB_BITS-1)/GMP_NUMB_BITS) 13 | 14 | typedef struct { 15 | mp_limb_t data[2*NUM_LIMBS]; 16 | int neg; 17 | int limbs; 18 | } secp256k1_num; 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /src/secp256k1/src/num_impl.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2013, 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_NUM_IMPL_H_ 8 | #define _SECP256K1_NUM_IMPL_H_ 9 | 10 | #if defined HAVE_CONFIG_H 11 | #include "libsecp256k1-config.h" 12 | #endif 13 | 14 | #include "num.h" 15 | 16 | #if defined(USE_NUM_GMP) 17 | #include "num_gmp_impl.h" 18 | #elif defined(USE_NUM_NONE) 19 | /* Nothing. */ 20 | #else 21 | #error "Please select num implementation" 22 | #endif 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /src/secp256k1/src/scalar_4x64.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_SCALAR_REPR_ 8 | #define _SECP256K1_SCALAR_REPR_ 9 | 10 | #include 11 | 12 | /** A scalar modulo the group order of the secp256k1 curve. */ 13 | typedef struct { 14 | uint64_t d[4]; 15 | } secp256k1_scalar; 16 | 17 | #define SECP256K1_SCALAR_CONST(d7, d6, d5, d4, d3, d2, d1, d0) {{((uint64_t)(d1)) << 32 | (d0), ((uint64_t)(d3)) << 32 | (d2), ((uint64_t)(d5)) << 32 | (d4), ((uint64_t)(d7)) << 32 | (d6)}} 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /src/secp256k1/src/scalar_8x32.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_SCALAR_REPR_ 8 | #define _SECP256K1_SCALAR_REPR_ 9 | 10 | #include 11 | 12 | /** A scalar modulo the group order of the secp256k1 curve. */ 13 | typedef struct { 14 | uint32_t d[8]; 15 | } secp256k1_scalar; 16 | 17 | #define SECP256K1_SCALAR_CONST(d7, d6, d5, d4, d3, d2, d1, d0) {{(d0), (d1), (d2), (d3), (d4), (d5), (d6), (d7)}} 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /src/stable.h: -------------------------------------------------------------------------------- 1 | #ifndef STABLE_H 2 | #define STABLE_H 3 | 4 | #endif // STABLE_H 5 | -------------------------------------------------------------------------------- /src/tor/aes.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2003, Roger Dingledine 2 | * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. 3 | * Copyright (c) 2007-2013, The Tor Project, Inc. */ 4 | /* See LICENSE for licensing information */ 5 | 6 | /* Implements a minimal interface to counter-mode AES. */ 7 | 8 | #ifndef TOR_AES_H 9 | #define TOR_AES_H 10 | 11 | /** 12 | * \file aes.h 13 | * \brief Headers for aes.c 14 | */ 15 | 16 | struct aes_cnt_cipher; 17 | typedef struct aes_cnt_cipher aes_cnt_cipher_t; 18 | 19 | aes_cnt_cipher_t* aes_new_cipher(const char *key, const char *iv); 20 | void aes_cipher_free(aes_cnt_cipher_t *cipher); 21 | void aes_crypt(aes_cnt_cipher_t *cipher, const char *input, size_t len, 22 | char *output); 23 | void aes_crypt_inplace(aes_cnt_cipher_t *cipher, char *data, size_t len); 24 | 25 | int evaluate_evp_for_aes(int force_value); 26 | int evaluate_ctr_for_aes(void); 27 | 28 | #endif 29 | 30 | -------------------------------------------------------------------------------- /src/tor/backtrace.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2013, The Tor Project, Inc. */ 2 | /* See LICENSE for licensing information */ 3 | 4 | #ifndef TOR_BACKTRACE_H 5 | #define TOR_BACKTRACE_H 6 | 7 | void log_backtrace(int severity, int domain, const char *msg); 8 | int configure_backtrace_handler(const char *tor_version); 9 | void clean_up_backtrace_handler(void); 10 | 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /src/tor/circpathbias.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2001 Matej Pfajfar. 2 | * Copyright (c) 2001-2004, Roger Dingledine. 3 | * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. 4 | * Copyright (c) 2007-2013, The Tor Project, Inc. */ 5 | /* See LICENSE for licensing information */ 6 | 7 | /** 8 | * \file circuitbuild.h 9 | * \brief Header file for circuitbuild.c. 10 | **/ 11 | 12 | #ifndef TOR_CIRCPATHBIAS_H 13 | #define TOR_CIRCPATHBIAS_H 14 | 15 | double pathbias_get_extreme_rate(const or_options_t *options); 16 | double pathbias_get_extreme_use_rate(const or_options_t *options); 17 | int pathbias_get_dropguards(const or_options_t *options); 18 | void pathbias_count_timeout(origin_circuit_t *circ); 19 | void pathbias_count_build_success(origin_circuit_t *circ); 20 | int pathbias_count_build_attempt(origin_circuit_t *circ); 21 | int pathbias_check_close(origin_circuit_t *circ, int reason); 22 | int pathbias_check_probe_response(circuit_t *circ, const cell_t *cell); 23 | void pathbias_count_use_attempt(origin_circuit_t *circ); 24 | void pathbias_mark_use_success(origin_circuit_t *circ); 25 | void pathbias_mark_use_rollback(origin_circuit_t *circ); 26 | const char *pathbias_state_to_string(path_state_t state); 27 | 28 | #endif 29 | 30 | -------------------------------------------------------------------------------- /src/tor/circuitmux_ewma.h: -------------------------------------------------------------------------------- 1 | /* * Copyright (c) 2012-2013, The Tor Project, Inc. */ 2 | /* See LICENSE for licensing information */ 3 | 4 | /** 5 | * \file circuitmux_ewma.h 6 | * \brief Header file for circuitmux_ewma.c 7 | **/ 8 | 9 | #ifndef TOR_CIRCUITMUX_EWMA_H 10 | #define TOR_CIRCUITMUX_EWMA_H 11 | 12 | #include "or.h" 13 | #include "circuitmux.h" 14 | 15 | /* Everything but circuitmux_ewma.c should see this extern */ 16 | #ifndef TOR_CIRCUITMUX_EWMA_C_ 17 | 18 | extern circuitmux_policy_t ewma_policy; 19 | 20 | #endif /* !(TOR_CIRCUITMUX_EWMA_C_) */ 21 | 22 | /* Externally visible EWMA functions */ 23 | int cell_ewma_enabled(void); 24 | unsigned int cell_ewma_get_tick(void); 25 | void cell_ewma_set_scale_factor(const or_options_t *options, 26 | const networkstatus_t *consensus); 27 | 28 | #endif /* TOR_CIRCUITMUX_EWMA_H */ 29 | 30 | -------------------------------------------------------------------------------- /src/tor/cloak.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2014, Cloak Developers */ 2 | /* See LICENSE for licensing information */ 3 | 4 | /** 5 | * \file cloak.h 6 | * \brief Headers for cloak.cpp 7 | **/ 8 | 9 | #ifndef TOR_CLOAK_H 10 | #define TOR_CLOAK_H 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif 15 | 16 | char const* cloak_tor_data_directory( 17 | ); 18 | 19 | char const* cloak_service_directory( 20 | ); 21 | 22 | int check_interrupted( 23 | ); 24 | 25 | void set_initialized( 26 | ); 27 | 28 | void wait_initialized( 29 | ); 30 | 31 | #ifdef __cplusplus 32 | } 33 | #endif 34 | 35 | #endif 36 | 37 | -------------------------------------------------------------------------------- /src/tor/command.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2001 Matej Pfajfar. 2 | * Copyright (c) 2001-2004, Roger Dingledine. 3 | * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. 4 | * Copyright (c) 2007-2013, The Tor Project, Inc. */ 5 | /* See LICENSE for licensing information */ 6 | 7 | /** 8 | * \file command.h 9 | * \brief Header file for command.c. 10 | **/ 11 | 12 | #ifndef TOR_COMMAND_H 13 | #define TOR_COMMAND_H 14 | 15 | #include "channel.h" 16 | 17 | void command_process_cell(channel_t *chan, cell_t *cell); 18 | void command_process_var_cell(channel_t *chan, var_cell_t *cell); 19 | void command_setup_channel(channel_t *chan); 20 | void command_setup_listener(channel_listener_t *chan_l); 21 | 22 | const char *cell_command_to_string(uint8_t command); 23 | 24 | extern uint64_t stats_n_padding_cells_processed; 25 | extern uint64_t stats_n_create_cells_processed; 26 | extern uint64_t stats_n_created_cells_processed; 27 | extern uint64_t stats_n_relay_cells_processed; 28 | extern uint64_t stats_n_destroy_cells_processed; 29 | 30 | #endif 31 | 32 | -------------------------------------------------------------------------------- /src/tor/config_codedigest.c: -------------------------------------------------------------------------------- 1 | 2 | const char *tor_get_digests(void); 3 | 4 | /** Return a string describing the digest of the source files in src/or/ 5 | */ 6 | const char * 7 | tor_get_digests(void) 8 | { 9 | return "" 10 | #include "or_sha1.i" 11 | ; 12 | } 13 | 14 | -------------------------------------------------------------------------------- /src/tor/cpuworker.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2001 Matej Pfajfar. 2 | * Copyright (c) 2001-2004, Roger Dingledine. 3 | * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. 4 | * Copyright (c) 2007-2013, The Tor Project, Inc. */ 5 | /* See LICENSE for licensing information */ 6 | 7 | /** 8 | * \file cpuworker.h 9 | * \brief Header file for cpuworker.c. 10 | **/ 11 | 12 | #ifndef TOR_CPUWORKER_H 13 | #define TOR_CPUWORKER_H 14 | 15 | void cpu_init(void); 16 | void cpuworkers_rotate(void); 17 | int connection_cpu_finished_flushing(connection_t *conn); 18 | int connection_cpu_reached_eof(connection_t *conn); 19 | int connection_cpu_process_inbuf(connection_t *conn); 20 | struct create_cell_t; 21 | int assign_onionskin_to_cpuworker(connection_t *cpuworker, 22 | or_circuit_t *circ, 23 | struct create_cell_t *onionskin); 24 | 25 | uint64_t estimated_usec_for_onionskins(uint32_t n_requests, 26 | uint16_t onionskin_type); 27 | void cpuworker_log_onionskin_overhead(int severity, int onionskin_type, 28 | const char *onionskin_type_name); 29 | 30 | #endif 31 | 32 | -------------------------------------------------------------------------------- /src/tor/dns.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2001 Matej Pfajfar. 2 | * Copyright (c) 2001-2004, Roger Dingledine. 3 | * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. 4 | * Copyright (c) 2007-2013, The Tor Project, Inc. */ 5 | /* See LICENSE for licensing information */ 6 | 7 | /** 8 | * \file dns.h 9 | * \brief Header file for dns.c. 10 | **/ 11 | 12 | #ifndef TOR_DNS_H 13 | #define TOR_DNS_H 14 | 15 | int dns_init(void); 16 | int has_dns_init_failed(void); 17 | void dns_free_all(void); 18 | uint32_t dns_clip_ttl(uint32_t ttl); 19 | int dns_reset(void); 20 | void connection_dns_remove(edge_connection_t *conn); 21 | void assert_connection_edge_not_dns_pending(edge_connection_t *conn); 22 | void assert_all_pending_dns_resolves_ok(void); 23 | void dns_cancel_pending_resolve(const char *question); 24 | int dns_resolve(edge_connection_t *exitconn); 25 | void dns_launch_correctness_checks(void); 26 | int dns_seems_to_be_broken(void); 27 | int dns_seems_to_be_broken_for_ipv6(void); 28 | void dns_reset_correctness_checks(void); 29 | void dump_dns_mem_usage(int severity); 30 | 31 | #endif 32 | 33 | -------------------------------------------------------------------------------- /src/tor/dnsserv.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2001 Matej Pfajfar. 2 | * Copyright (c) 2001-2004, Roger Dingledine. 3 | * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. 4 | * Copyright (c) 2007-2013, The Tor Project, Inc. */ 5 | /* See LICENSE for licensing information */ 6 | 7 | /** 8 | * \file dnsserv.h 9 | * \brief Header file for dnsserv.c. 10 | **/ 11 | 12 | #ifndef TOR_DNSSERV_H 13 | #define TOR_DNSSERV_H 14 | 15 | void dnsserv_configure_listener(connection_t *conn); 16 | void dnsserv_close_listener(connection_t *conn); 17 | void dnsserv_resolved(entry_connection_t *conn, 18 | int answer_type, 19 | size_t answer_len, 20 | const char *answer, 21 | int ttl); 22 | void dnsserv_reject_request(entry_connection_t *conn); 23 | int dnsserv_launch_request(const char *name, int is_reverse, 24 | control_connection_t *control_conn); 25 | 26 | #endif 27 | 28 | -------------------------------------------------------------------------------- /src/tor/eventdns_tor.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2007-2013, The Tor Project, Inc. */ 2 | /* See LICENSE for licensing information */ 3 | 4 | #ifndef TOR_EVENTDNS_TOR_H 5 | #define TOR_EVENTDNS_TOR_H 6 | 7 | #include "orconfig.h" 8 | #define DNS_USE_OPENSSL_FOR_ID 9 | #ifndef HAVE_UINT 10 | typedef unsigned int uint; 11 | #endif 12 | #ifndef HAVE_U_CHAR 13 | typedef unsigned char u_char; 14 | #endif 15 | #ifdef _WIN32 16 | #define inline __inline 17 | #endif 18 | #include "torint.h" 19 | 20 | /* These are for debugging possible memory leaks. */ 21 | #include "tor_util.h" 22 | #include "tor_compat.h" 23 | 24 | #endif 25 | 26 | -------------------------------------------------------------------------------- /src/tor/memarea.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2008-2013, The Tor Project, Inc. */ 2 | /* See LICENSE for licensing information */ 3 | /* Tor dependencies */ 4 | 5 | #ifndef TOR_MEMAREA_H 6 | #define TOR_MEMAREA_H 7 | 8 | typedef struct memarea_t memarea_t; 9 | 10 | memarea_t *memarea_new(void); 11 | void memarea_drop_all(memarea_t *area); 12 | void memarea_clear(memarea_t *area); 13 | int memarea_owns_ptr(const memarea_t *area, const void *ptr); 14 | void *memarea_alloc(memarea_t *area, size_t sz); 15 | void *memarea_alloc_zero(memarea_t *area, size_t sz); 16 | void *memarea_memdup(memarea_t *area, const void *s, size_t n); 17 | char *memarea_strdup(memarea_t *area, const char *s); 18 | char *memarea_strndup(memarea_t *area, const char *s, size_t n); 19 | void memarea_get_stats(memarea_t *area, 20 | size_t *allocated_out, size_t *used_out); 21 | void memarea_clear_freelist(void); 22 | void memarea_assert_ok(memarea_t *area); 23 | 24 | #endif 25 | 26 | -------------------------------------------------------------------------------- /src/tor/ntmain.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2001 Matej Pfajfar. 2 | * Copyright (c) 2001-2004, Roger Dingledine. 3 | * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. 4 | * Copyright (c) 2007-2013, The Tor Project, Inc. */ 5 | /* See LICENSE for licensing information */ 6 | 7 | /** 8 | * \file ntmain.h 9 | * \brief Header file for ntmain.c. 10 | **/ 11 | 12 | #ifndef TOR_NTMAIN_H 13 | #define TOR_NTMAIN_H 14 | 15 | //#ifdef _WIN32 16 | //#if !defined (WINCE) 17 | //#define NT_SERVICE 18 | //#endif 19 | //#endif 20 | 21 | #ifdef NT_SERVICE 22 | int nt_service_parse_options(int argc, char **argv, int *should_exit); 23 | int nt_service_is_stopping(void); 24 | void nt_service_set_state(DWORD state); 25 | #else 26 | #define nt_service_is_stopping() 0 27 | #endif 28 | 29 | #endif 30 | 31 | -------------------------------------------------------------------------------- /src/tor/onion_fast.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2001 Matej Pfajfar. 2 | * Copyright (c) 2001-2004, Roger Dingledine. 3 | * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. 4 | * Copyright (c) 2007-2013, The Tor Project, Inc. */ 5 | /* See LICENSE for licensing information */ 6 | 7 | /** 8 | * \file onion_fast.h 9 | * \brief Header file for onion_fast.c. 10 | **/ 11 | 12 | #ifndef TOR_ONION_FAST_H 13 | #define TOR_ONION_FAST_H 14 | 15 | #define CREATE_FAST_LEN DIGEST_LEN 16 | #define CREATED_FAST_LEN (DIGEST_LEN*2) 17 | 18 | typedef struct fast_handshake_state_t { 19 | uint8_t state[DIGEST_LEN]; 20 | } fast_handshake_state_t; 21 | 22 | void fast_handshake_state_free(fast_handshake_state_t *victim); 23 | 24 | int fast_onionskin_create(fast_handshake_state_t **handshake_state_out, 25 | uint8_t *handshake_out); 26 | 27 | int fast_server_handshake(const uint8_t *message_in, 28 | uint8_t *handshake_reply_out, 29 | uint8_t *key_out, 30 | size_t key_out_len); 31 | 32 | int fast_client_handshake(const fast_handshake_state_t *handshake_state, 33 | const uint8_t *handshake_reply_out, 34 | uint8_t *key_out, 35 | size_t key_out_len); 36 | 37 | #endif 38 | 39 | -------------------------------------------------------------------------------- /src/tor/orconfig.h: -------------------------------------------------------------------------------- 1 | #ifndef GENERIC_ORCONFIG_H_ 2 | #define GENERIC_ORCONFIG_H_ 3 | 4 | #if defined(_WIN32) 5 | # include "orconfig_win32.h" 6 | #elif defined(__darwin__) || defined(__APPLE__) 7 | # include "orconfig_apple.h" 8 | #else 9 | # include "orconfig_linux.h" 10 | #endif 11 | 12 | #endif // GENERIC_ORCONFIG_H_ 13 | -------------------------------------------------------------------------------- /src/tor/procmon.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011-2013, The Tor Project, Inc. */ 2 | /* See LICENSE for licensing information */ 3 | 4 | /** 5 | * \file procmon.h 6 | * \brief Headers for procmon.c 7 | **/ 8 | 9 | #ifndef TOR_PROCMON_H 10 | #define TOR_PROCMON_H 11 | 12 | #include "tor_compat.h" 13 | #include "compat_libevent.h" 14 | 15 | #include "torlog.h" 16 | 17 | typedef struct tor_process_monitor_t tor_process_monitor_t; 18 | 19 | /* DOCDOC tor_procmon_callback_t */ 20 | typedef void (*tor_procmon_callback_t)(void *); 21 | 22 | int tor_validate_process_specifier(const char *process_spec, 23 | const char **msg); 24 | tor_process_monitor_t *tor_process_monitor_new(struct event_base *base, 25 | const char *process_spec, 26 | log_domain_mask_t log_domain, 27 | tor_procmon_callback_t cb, 28 | void *cb_arg, 29 | const char **msg); 30 | void tor_process_monitor_free(tor_process_monitor_t *procmon); 31 | 32 | #endif 33 | 34 | -------------------------------------------------------------------------------- /src/tor/reasons.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2001 Matej Pfajfar. 2 | * Copyright (c) 2001-2004, Roger Dingledine. 3 | * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. 4 | * Copyright (c) 2007-2013, The Tor Project, Inc. */ 5 | /* See LICENSE for licensing information */ 6 | 7 | /** 8 | * \file reasons.h 9 | * \brief Header file for reasons.c. 10 | **/ 11 | 12 | #ifndef TOR_REASONS_H 13 | #define TOR_REASONS_H 14 | 15 | const char *stream_end_reason_to_control_string(int reason); 16 | const char *stream_end_reason_to_string(int reason); 17 | socks5_reply_status_t stream_end_reason_to_socks5_response(int reason); 18 | uint8_t errno_to_stream_end_reason(int e); 19 | 20 | const char *orconn_end_reason_to_control_string(int r); 21 | int tls_error_to_orconn_end_reason(int e); 22 | int errno_to_orconn_end_reason(int e); 23 | 24 | const char *circuit_end_reason_to_control_string(int reason); 25 | const char *socks4_response_code_to_string(uint8_t code); 26 | const char *socks5_response_code_to_string(uint8_t code); 27 | 28 | const char *bandwidth_weight_rule_to_string(enum bandwidth_weight_rule_t rule); 29 | 30 | #endif 31 | 32 | -------------------------------------------------------------------------------- /src/tor/rendmid.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2001 Matej Pfajfar. 2 | * Copyright (c) 2001-2004, Roger Dingledine. 3 | * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. 4 | * Copyright (c) 2007-2013, The Tor Project, Inc. */ 5 | /* See LICENSE for licensing information */ 6 | 7 | /** 8 | * \file rendmid.h 9 | * \brief Header file for rendmid.c. 10 | **/ 11 | 12 | #ifndef TOR_RENDMID_H 13 | #define TOR_RENDMID_H 14 | 15 | int rend_mid_establish_intro(or_circuit_t *circ, const uint8_t *request, 16 | size_t request_len); 17 | int rend_mid_introduce(or_circuit_t *circ, const uint8_t *request, 18 | size_t request_len); 19 | int rend_mid_establish_rendezvous(or_circuit_t *circ, const uint8_t *request, 20 | size_t request_len); 21 | int rend_mid_rendezvous(or_circuit_t *circ, const uint8_t *request, 22 | size_t request_len); 23 | 24 | #endif 25 | 26 | -------------------------------------------------------------------------------- /src/tor/statefile.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2001 Matej Pfajfar. 2 | * Copyright (c) 2001-2004, Roger Dingledine. 3 | * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. 4 | * Copyright (c) 2007-2013, The Tor Project, Inc. */ 5 | /* See LICENSE for licensing information */ 6 | 7 | #ifndef TOR_STATEFILE_H 8 | #define TOR_STATEFILE_H 9 | 10 | MOCK_DECL(or_state_t *,get_or_state,(void)); 11 | int did_last_state_file_write_fail(void); 12 | int or_state_save(time_t now); 13 | 14 | void save_transport_to_state(const char *transport_name, 15 | const tor_addr_t *addr, uint16_t port); 16 | char *get_stored_bindaddr_for_server_transport(const char *transport); 17 | int or_state_load(void); 18 | int or_state_loaded(void); 19 | void or_state_free_all(void); 20 | 21 | #ifdef STATEFILE_PRIVATE 22 | STATIC config_line_t *get_transport_in_state_by_name(const char *transport); 23 | #endif 24 | 25 | #endif 26 | 27 | -------------------------------------------------------------------------------- /src/tor/status.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2010-2013, The Tor Project, Inc. */ 2 | /* See LICENSE for licensing information */ 3 | 4 | #ifndef TOR_STATUS_H 5 | #define TOR_STATUS_H 6 | 7 | int log_heartbeat(time_t now); 8 | 9 | #endif 10 | 11 | -------------------------------------------------------------------------------- /src/tor/util_codedigest.c: -------------------------------------------------------------------------------- 1 | 2 | #include "tor_util.h" 3 | 4 | /** Return a string describing the digest of the source files in src/common/ 5 | */ 6 | const char * 7 | libor_get_digests(void) 8 | { 9 | return "" 10 | #include "common_sha1.i" 11 | ; 12 | } 13 | 14 | -------------------------------------------------------------------------------- /src/txdb.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2009-2010 Satoshi Nakamoto 2 | // Copyright (c) 2009-2012 The Bitcoin developers 3 | // Distributed under the MIT/X11 software license, see the accompanying 4 | // file license.txt or http://www.opensource.org/licenses/mit-license.php. 5 | 6 | #ifndef TXDB_H 7 | #define TXDB_H 8 | 9 | // Allow switching between LevelDB and BerkelyDB here in case we need to temporarily 10 | // go back to BDB for any reason. Once we're confident enough with LevelDB to stick 11 | // with it, this can be deleted. 12 | 13 | #ifdef USE_LEVELDB 14 | #include "txdb-leveldb.h" 15 | #else 16 | #include "db.h" 17 | #include "txdb-bdb.h" 18 | #endif 19 | 20 | #endif // TXDB_H 21 | -------------------------------------------------------------------------------- /src/unzip/unzipper.h: -------------------------------------------------------------------------------- 1 | #ifndef UNZIPPER_H 2 | #define UNZIPPER_H 3 | 4 | 5 | int unzip(const char* zipfilename, const char* unzipPath, bool overwrite); 6 | 7 | #endif // UNZIPPER_H 8 | -------------------------------------------------------------------------------- /src/unzipper.cpp: -------------------------------------------------------------------------------- 1 | #include "unzipper.h" 2 | 3 | int Unzipper::Unzip(const char* zipFilename, const char* outDirectory, bool autoOverwrite) 4 | { 5 | 6 | } 7 | --------------------------------------------------------------------------------