larteyoh
45a3ade1cb
|
11 months ago | |
---|---|---|
assets | 11 months ago | |
cmake | 1 year ago | |
external | 11 months ago | |
qml | 11 months ago | |
src | 11 months ago | |
tests | 11 months ago | |
.gitignore | 11 months ago | |
.gitmodules | 11 months ago | |
CMakeLists.txt | 11 months ago | |
CONTRIBUTING.md | 11 months ago | |
LICENSE | 1 year ago | |
README.md | 11 months ago | |
qml.qrc | 11 months ago |
README.md
neroshop - WORK IN PROGRESS
A decentralized P2P (peer-to-peer) marketplace for Monero users (PoC)
Disclaimer: This is an experimental/hobbyist project that is not ready for production use. Use at your own risk.
Table of contents
Demo
Feature Status
- Distributed P2P network (bootstrap nodes needed!!!)
- Buy and sell products and services with Monero
- No KYC
- No censorship (censorship-resistant)
- No listing fees, sales tax, or any other fees (except for miner transaction fees and shipping costs)
- there will be 0.5% fee for using one of the three payment options, specifically the 2-of-3 escrow system.
- Pseudonymous identities
- sellers and buyers are identified by their unique ids and/or optional display names
- End-to-end encrypted messaging system for communications between sellers and buyers via matrix.org
- Subaddress generator for direct payments without an escrow
- a unique subaddress will be generated from a seller's synced wallet account for each order placed by a customer
- Built-in Monero wallet with basic functionalities (
transaction history
,send
, andreceive
) - Option to run a local Monero node or connect to remote Monero nodes
- Payment address QR codes containing Monero URIs
- Option to choose between sending funds directly to a seller or by using a multisignature escrow.
- Native Tor and I2P support
- tor daemon can be installed manually and i2pd will be built-in
- Seller reputation system
- Product rating system
- Wishlists
- Built-in SQLite-powered search engine that can find any products or sellers
- Full-featured and user-friendly GUI application (WIP)
Building neroshop
Dependencies
✔️ = Currently in use; ⭕ = Optional; ❌ = Not currently in use or deprecated; ❔ = Not yet in use, but up for consideration; 🔳 = Exclusive to CLI
Library | Minimum Ver. | Purpose | Status |
---|---|---|---|
monero-cpp | latest | monero wallet and payment system | ✔️ |
sqlite3 | 3.38.0 | database management | ✔️ |
QR Code generator | ? | qr code generation | ✔️ |
json | ? | json parsing and msgpack | ✔️ |
curl | ? | currency conversion | ⭕ |
openssl | 1.1.1 | for curl, sha256 sum and message encryption | ✔️ |
Qt | 5.12.8 | graphical user interface | ✔️ |
raft | ? | consensus mechanism | ❔ |
stduuid | ? | unique id generation | ⭕ |
linenoise | ? | command line interface | ✔️ 🔳 |
lua | 5.1.5 | configuration script | ✔️ |
cxxopts | ? | command line option parser | ✔️ |
libzmq | ? | networking | ❔ |
libi2pd | latest | network proxy | ❔ |
libjuice | ? | NAT traversal (clearnet) | ⭕ |
Compiling neroshop from source
0. Install prerequisites
Debian/Ubuntu
sudo apt install build-essential cmake git
Arch
sudo pacman -Sy --needed base-devel cmake git
Fedora
sudo dnf install gcc gcc-c++ make cmake git
1. Clone neroshop (and its submodules)
git clone --recurse-submodules https://github.com/larteyoh/testshop.git
cd testshop
2. Install dependencies
Debian/Ubuntu
# neroshop
sudo apt install libcurl4-openssl-dev libssl-dev qtdeclarative5-dev qml-module-qt-labs-platform qml-module-qtquick-controls qml-module-qtquick-controls2 qml-module-qtquick-shapes qml-module-qtquick-dialogs
# monero-cpp (monero)
sudo apt update && sudo apt install pkg-config libssl-dev libzmq3-dev libsodium-dev libunwind8-dev liblzma-dev libreadline6-dev libpgm-dev qttools5-dev-tools libhidapi-dev libusb-1.0-0-dev libprotobuf-dev protobuf-compiler libudev-dev libboost-chrono-dev libboost-date-time-dev libboost-filesystem-dev libboost-locale-dev libboost-program-options-dev libboost-regex-dev libboost-serialization-dev libboost-system-dev libboost-thread-dev python3 ccache
Arch (missing Qt/QML libraries)
# neroshop
sudo pacman -Sy --needed curl openssl qt5-declarative
# monero-cpp (monero)
sudo pacman -Syu --needed boost openssl zeromq libpgm unbound libsodium libunwind xz readline gtest python3 ccache qt5-tools hidapi libusb protobuf systemd
Fedora (missing Qt/QML libraries)
# neroshop
sudo dnf install libcurl-devel openssl-devel
# monero-cpp (monero)
sudo dnf install boost-static libstdc++-static pkgconf boost-devel openssl-devel zeromq-devel openpgm-devel unbound-devel libsodium-devel libunwind-devel xz-devel readline-devel gtest-devel ccache qt5-linguist hidapi-devel libusbx-devel protobuf-devel protobuf-compiler systemd-devel
3. Update monero-cpp submodules
cd external/monero-cpp && ./bin/update_submodules.sh
cd external/monero-project
4. Install expat and unbound (May be required to build monero-project on Debian/Ubuntu otherwise, this step can be skipped):
wget https://github.com/libexpat/libexpat/releases/download/R_2_4_8/expat-2.4.8.tar.bz2
tar -xf expat-2.4.8.tar.bz2
rm expat-2.4.8.tar.bz2
cd expat-2.4.8
./configure --enable-static --disable-shared
make
sudo make install
cd ../
wget https://www.nlnetlabs.nl/downloads/unbound/unbound-1.16.1.tar.gz
tar -xzf unbound-1.16.1.tar.gz
rm unbound-1.16.1.tar.gz
cd unbound-1.16.1
./configure --disable-shared --enable-static --without-pyunbound --with-libevent=no --without-pythonmodule --disable-flto --with-pthreads --with-libunbound-only --with-pic
make
cd ../
If you happen to run into an undefined reference to icu_*
error, you may need to add this line under the find_package(Boost ...
in "external/monero-cpp/external/monero-project/CMakeLists.txt":
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -licuio -licui18n -licuuc -licudata")
5. Build monero-project to create .a libraries
make release-static -j$(nproc)
cd ../../../../
6. Build neroshop
To build with CMake:
# Build external libraries
cd external/
cmake . && cmake --build . --target juice-static
make -j$(nproc)
cd ..
# Build neroshop
cd build
cmake .. #-DNEROSHOP_BUILD_CLI=1 #-DNEROSHOP_BUILD_TESTS=1
make -j$(nproc)
# Run neroshop
./neroshop
Contributing
See CONTRIBUTING.md
License
This project is licensed under the GNU General Public License v3.0 (GPLv3)
Donations
You may support the neroshop project directly by donating to any of the addresses below. Received payments will be used to reward developers for their contributions to the project (mostly by completing bounties) and will also be used to fund our official website domain name.
Monero (XMR):
83QbQvnnyo7515rEnW8XwF1hbP5qMab6sHXFzP6pg3EKGscgXCbVjbt1FX5SF7AV9p4Ur1tiommuQSzrQQRHkZicVYu6j8Y
Wownero (WOW):
WW2pQTQWHpyJf2CHrCmZG7Tn3zBnYRZTH8g4U3pSZf5s6xsTXrZc9odDWmrWzjRc9MMQWrKXxjHsRdzH5JpJ7kzx1jZuSVSfi
OpenAlias:
donate.neroshop.org
or donate@neroshop.org
Donations Log:
amount sender timestamp
--------------------------------
0.12 xmr anonymous 2022-10-25
0.50 xmr anonymous 2022-11-15
0.02 xmr anonymous 2022-11-22
0.003 xmr anonymous 2023-01-03
Resources
-
Website: neroshop.org
-
Wiki: Wikipage
-
Git (Unofficial): github.com/larteyoh/testshop
-
Git (Official): github.com/larteyoh/neroshop
-
Matrix: #neroshop:matrix.org
-
Matrix 2: #neroshop-dev:matrix.org
Thanks
u/EchoingCat — for the revision of the official neroshop logo
woodser — for his guidance and for his work on the monero-cpp library which has made the development of this app possible
yuriio147 — for his work on various QML components, the currency converter, wallet address qr provider, fixing a major bug in the RSA encryption code, the RSA signing and verifying functions, and for teaching me some Qt/Quick techniques
lza_menace — for his help on creating the new monero.fail JSON API endpoint
everyone in our matrix room — for sharing many great ideas that could be used to improve the project