Compare commits

50 Commits
main ... main

Author SHA1 Message Date
a6dc4278f2 Update .gitea/workflows/build.yaml 2026-01-09 09:50:17 -08:00
398fe0fe55 Update .gitea/workflows/build.yaml 2026-01-09 09:19:49 -08:00
5d443e34a8 Update .gitea/workflows/build.yaml 2026-01-09 08:56:22 -08:00
2b23667d39 Update .gitea/workflows/build.yaml 2026-01-09 08:31:43 -08:00
7bb87accbb Update .gitea/workflows/build.yaml 2026-01-09 08:02:45 -08:00
6387555aad Update .gitea/workflows/build.yaml 2026-01-09 06:58:18 -08:00
56cc8943f2 Update .gitea/workflows/build.yaml 2026-01-07 13:28:35 -08:00
96c28eb6fc Update .gitea/workflows/build.yaml 2026-01-07 10:26:31 -08:00
f5a88c41bf Update .gitea/workflows/build.yaml 2026-01-07 10:20:38 -08:00
058cf2152d Update .gitea/workflows/build.yaml 2026-01-07 10:19:55 -08:00
5d4e58d718 Update .gitea/workflows/build.yaml 2026-01-07 09:48:48 -08:00
0c65372252 Update .gitea/workflows/build.yaml 2026-01-07 09:33:45 -08:00
9577d18354 Update .gitea/workflows/build.yaml 2026-01-07 09:16:40 -08:00
2b94312974 Update .gitea/workflows/build.yaml 2026-01-07 06:44:23 -08:00
324ae6aa0d Update .gitea/workflows/build.yaml 2026-01-07 06:25:14 -08:00
6d8157e85e Update .gitea/workflows/build.yaml 2026-01-07 05:45:02 -08:00
9493b24bd9 Update .gitea/workflows/build.yaml 2026-01-07 05:24:31 -08:00
17dbccfd14 Update .gitea/workflows/build.yaml 2026-01-06 08:39:55 -08:00
0069e47e36 Update .gitea/workflows/build.yaml 2026-01-06 08:26:17 -08:00
79416cc196 Update .gitea/workflows/build.yaml 2026-01-06 08:18:07 -08:00
2e071c9fdf Update .gitea/workflows/build.yaml 2026-01-06 07:56:25 -08:00
386850d7ce Update .gitea/workflows/build.yaml 2026-01-06 07:05:41 -08:00
cf498f709e Update .gitea/workflows/build.yaml 2026-01-06 06:54:53 -08:00
2918352283 Update .gitea/workflows/build.yaml 2026-01-05 12:27:08 -08:00
8594c23cb6 triple tap windows with mkdir -p 2026-01-05 12:21:05 -08:00
578c5560b3 triple tab windows 2026-01-05 12:03:55 -08:00
93447e5a90 frfr final windows 2026-01-05 11:57:38 -08:00
368372c3f8 windows fix maybe? 2026-01-05 11:50:40 -08:00
0d89c592cb windows final solution 2026-01-05 11:35:06 -08:00
9b7dde6847 fix windows infinity 2026-01-05 11:14:34 -08:00
cb1bbd01c6 fix windows build 99999999 2026-01-05 10:45:14 -08:00
7f13f8d135 windows fix 234567 2026-01-05 10:27:16 -08:00
72eb47af9c fix windows build 54321 2026-01-05 10:14:51 -08:00
a341e367d3 update windows build 12345 2026-01-05 09:27:14 -08:00
02830e8e0b fix windows build part 7777 2026-01-05 09:15:03 -08:00
52446c5216 fix windows part 321 2026-01-05 08:53:00 -08:00
d80a33027a fix windows part 67 2026-01-05 08:37:18 -08:00
20512b8df4 fix boost version for windows 2026-01-05 08:21:44 -08:00
0afd7bce51 fix cert issue and update windows build 2026-01-05 08:07:16 -08:00
4dc711041b fix windows build deps 2026-01-05 07:51:24 -08:00
a1910c7fac Fix windows build 2026-01-05 07:26:19 -08:00
a994aacae2 add windows and linux and make release zips 2026-01-05 07:13:13 -08:00
44b3155116 Update .gitea/workflows/build.yaml 2026-01-05 06:42:31 -08:00
2a5f2cf1b1 hot patch macos to remove rt lib 2026-01-05 06:30:41 -08:00
784a8a49d3 Update .gitea/workflows/build.yaml 2026-01-05 06:05:19 -08:00
469bd6cdcc Update .gitea/workflows/build.yaml 2026-01-05 05:49:58 -08:00
4d19b87919 Update .gitea/workflows/build.yaml 2026-01-04 13:55:16 -08:00
22f77429a5 Update .gitea/workflows/build.yaml 2026-01-04 13:18:14 -08:00
ba10e14d83 Add .gitea/workflows/build.yaml 2026-01-04 12:43:31 -08:00
jwinterm
3427c60315 Port monero-lws to wownero-lws
Adapts monero-lws for Wownero cryptocurrency:

- Rename all monero-lws-* binaries to wownero-lws-*
- Update submodule to point to official Wownero repo
- Use Wownero default ports (RPC: 34568, ZMQ: 34569)
- Update data directory to ~/.wownero/light_wallet_server
- Adapt next_difficulty() calls for Wownero API signature

Key technical changes for Wownero compatibility:

- BulletproofPlus (RCTTypeBulletproofPlus, type 8) commitment verification:
  Wownero stores BP+ commitments in 'divided by 8' form. Must call
  rct::scalarmult8() on outPk commitment before comparing with computed
  commitment (mask*G + amount*H). This is essential for amount decryption.

- Pass rct_type to decode_amount() for proper commitment handling

- Handle Wownero's ZMQ JSON format for ecdhTuple (32-byte mask/amount fields)

No fork of Wownero is required - uses official codeberg.org/wownero/wownero.
2026-01-04 13:12:56 -05:00
2 changed files with 199 additions and 23 deletions

195
.gitea/workflows/build.yaml Normal file
View File

@@ -0,0 +1,195 @@
name: Build Wownero LWS
on:
push:
workflow_dispatch:
# --- GLOBAL FIX FOR SSL UPLOADS ---
env:
NODE_TLS_REJECT_UNAUTHORIZED: '0'
# ----------------------------------
jobs:
build-macos:
runs-on: macos-latest
steps:
- name: Manual Checkout (Local)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "Cleaning workspace..."
rm -rf *
git config --global --add safe.directory '*'
# Clone from Localhost (Port 3000)
echo "Cloning from Localhost..."
git clone http://oauth2:$GITHUB_TOKEN@localhost:3000/${{ github.repository }}.git .
# Update Submodules
git config --global url."https://github.com/".insteadOf "git@github.com:"
git config --global url."https://codeberg.org/".insteadOf "git@codeberg.org:"
echo "Initializing submodules..."
git submodule update --init --recursive
- name: Prepare Environment
run: |
cmake --version
qmake --version || echo "QMake found via brew"
- name: Patch for macOS (Remove librt)
run: |
echo "Patching CMakeLists..."
perl -i -pe 's/\brt\b//g' src/CMakeLists.txt
if [ -f "CMakeLists.txt" ]; then
perl -i -pe 's/\brt\b//g' CMakeLists.txt
fi
- name: Build macOS
run: |
mkdir build && cd build
cmake .. -DCMAKE_PREFIX_PATH=$(brew --prefix qt@5) -DCMAKE_BUILD_TYPE=Release
make -j$(sysctl -n hw.ncpu)
- name: Package macOS
run: |
cd build/src
zip ../../wownero-lws-macos.zip wownero-lws-daemon wownero-lws-admin wownero-lws-client
- name: Upload macOS Artifact
uses: actions/upload-artifact@v3
with:
name: wownero-lws-macos
path: wownero-lws-macos.zip
- name: Release macOS
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: wownero-lws-macos.zip
build-linux:
runs-on: ubuntu-latest
steps:
- name: Manual Checkout (LAN)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
rm -rf *
# Clone from Mac's LAN IP
git clone http://oauth2:$GITHUB_TOKEN@192.168.88.230:3000/${{ github.repository }}.git .
git config --global url."https://github.com/".insteadOf "git@github.com:"
git submodule update --init --recursive
- name: Build Linux
run: |
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
- name: Package Linux
run: |
cd build/src
zip ../../wownero-lws-linux.zip wownero-lws-daemon wownero-lws-admin wownero-lws-client
- name: Upload Linux Artifact
uses: actions/upload-artifact@v3
with:
name: wownero-lws-linux
path: wownero-lws-linux.zip
- name: Release Linux
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: wownero-lws-linux.zip
build-windows:
runs-on: ubuntu-latest
steps:
- name: Manual Checkout (LAN)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "Cleaning workspace..."
rm -rf *
git clone http://oauth2:$GITHUB_TOKEN@192.168.88.230:3000/${{ github.repository }}.git .
git config --global url."https://github.com/".insteadOf "git@github.com:"
git config --global url."https://codeberg.org/".insteadOf "git@codeberg.org:"
echo "Initializing submodules..."
git submodule update --init --recursive
- name: Build Windows via Docker
run: |
echo "Starting Docker Build..."
docker run --rm \
-v "$PWD:/source" \
-w /source \
wownero-builder \
/bin/bash -c "
set -e
# 1. Trust the repo
git config --global --add safe.directory '*'
# --- THE MEGA PATCH v2: UPGRADE BOOST TO 1.80.0 ---
BOOST_MK=external/monero/contrib/depends/packages/boost.mk
echo 'Applying Mega Patch v2 to boost.mk...'
# A. Set Version and Hash
sed -i 's/1_69_0/1_80_0/g' \$BOOST_MK
sed -i 's/1.69.0/1.80.0/g' \$BOOST_MK
sed -i 's/sha256_hash=.*$/sha256_hash=4b2136f98bdd1f5857f1c3dea9ac2018effe65286cf251534b6ae20cc45e1847/g' \$BOOST_MK
# B. NUKE ALL PATCHES (The Fix)
# Instead of deleting specific files, we delete any line containing '.patch'
# This ensures 'fix_arm_arch.patch' and any others are gone forever.
sed -i '/\.patch/d' \$BOOST_MK
# C. Add Context and Coroutine to the build list
# Safely append libraries to the config line
sed -i '/package_config_libraries/s/filesystem/filesystem context coroutine/' \$BOOST_MK
# --- END PATCH ---
# 2. Build Dependencies
echo 'Building Dependencies (Boost 1.80)...'
cd external/monero/contrib/depends
make HOST=x86_64-w64-mingw32 -j$(nproc)
# 3. Configure Project
echo 'Configuring Wownero LWS...'
cd ../../../..
mkdir -p build && cd build
# Ensure CMake looks for 1.80
sed -i 's/1.70/1.80/g' ../CMakeLists.txt || true
# Standard CMake Configure
cmake .. \
-DCMAKE_TOOLCHAIN_FILE=../external/monero/contrib/depends/x86_64-w64-mingw32/share/toolchain.cmake \
-DCMAKE_BUILD_TYPE=Release \
-DBoost_USE_STATIC_LIBS=ON \
-DBoost_DEBUG=ON
# 4. Compile
echo 'Compiling...'
make -j$(nproc)
"
- name: Package Windows
run: |
cd build/src
zip ../../wownero-lws-windows.zip wownero-lws-daemon.exe wownero-lws-admin.exe wownero-lws-client.exe
- name: Upload Windows Artifact
uses: actions/upload-artifact@v3
with:
name: wownero-lws-windows
path: wownero-lws-windows.zip
- name: Release Windows
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: wownero-lws-windows.zip

View File

@@ -112,40 +112,21 @@ The binaries will be in `build/src/`:
### Advanced Build (Separate Wownero tree)
If you already have a Wownero source tree built (e.g. you compiled `wownerod` yourself), you can link against it. However, **the standard Wownero build uses OBJECT libraries**, which are not compatible with wownero-lws's linking requirements.
If you already have a Wownero source tree built (e.g. you compiled `wownerod` yourself), you should link against it to ensure binary compatibility.
You have two options:
#### Option A: Use the LWS-compatible Wownero fork (easiest)
```bash
git clone https://codeberg.org/jw_wow/wownero.git
cd wownero
git checkout lws-compat-fix
git submodule update --init --recursive
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j$(nproc)
```
This fork adds 3 commits that force static library generation (`liblmdb_lib.a`, etc.) which wownero-lws requires.
Then build wownero-lws:
**Important:** Use `WOWNERO_SOURCE_DIR`, not `Monero_DIR`.
```bash
# Assuming wownero is built at ~/wownero/build
git clone https://codeberg.org/wownero/wownero-lws.git
cd wownero-lws
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release \
-DWOWNERO_SOURCE_DIR=~/wownero \
-DWOWNERO_BUILD_DIR=~/wownero/build/Linux/master/release ..
-DWOWNERO_BUILD_DIR=~/wownero/build ..
make -j$(nproc)
```
#### Option B: Use the submodule method (no fork needed)
The Quick Build method above uses Wownero as a submodule and builds it internally with the correct settings. This is the recommended approach if you don't need to link against a specific `wownerod` binary.
## Running wownero-lws