Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,22 +250,33 @@ docker volume rm zeroj-usecases_compliance-credential-plonk-cache
From the repository root:

```bash
# If Gradle is installed locally, use the root aggregate tasks:
gradle buildAllUsecasesNoTests
gradle testAllUsecases
# Root aggregate tasks (each runs the module's own wrapper):
./gradlew buildAllUsecasesNoTests
./gradlew testAllUsecases

# Or use the repo script, which runs each module's wrapper:
./build-all.sh build -x test
```

Each module is a standalone Gradle build, so the root wrapper can also run one module's tasks
with `-p`, for example the Pedersen demo UI:

```bash
./gradlew -p pedersen-commitments bootRun -PwithFrontend # http://localhost:8093
```

`zerojVersion` in `version.properties` may name a ZeroJ commit snapshot
(`<version>-<commit>-SNAPSHOT`); builds resolve those from
`https://repo.bloxbean.org/maven/snapshots` (restricted to the `org.zeroj` group).

To test against a local ZeroJ build:

```bash
cd ../zeroj
./gradlew publishToMavenLocal

cd ../zeroj-usecases
gradle buildAllUsecasesNoTests -PzerojVersion=<local-zeroj-version>
./gradlew buildAllUsecasesNoTests -PzerojVersion=<local-zeroj-version>
```

`<local-zeroj-version>` is the version the ZeroJ build published (a `-SNAPSHOT` version is
Expand Down
1 change: 1 addition & 0 deletions account-ownership/cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ repositories {
mavenLocal()
mavenCentral()
maven { url = uri("https://central.sonatype.com/repository/maven-snapshots"); content { snapshotsOnly() } }
maven { url = uri("https://repo.bloxbean.org/maven/snapshots"); content { snapshotsOnly(); includeGroup("org.zeroj") } }
maven { url = uri("https://repo.spring.io/milestone") }
}

Expand Down
1 change: 1 addition & 0 deletions account-ownership/ui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ repositories {
mavenLocal()
mavenCentral()
maven { url = uri("https://central.sonatype.com/repository/maven-snapshots"); content { snapshotsOnly() } }
maven { url = uri("https://repo.bloxbean.org/maven/snapshots"); content { snapshotsOnly(); includeGroup("org.zeroj") } }
maven { url = uri("https://repo.spring.io/milestone") }
}

Expand Down
9 changes: 7 additions & 2 deletions demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -307,14 +307,19 @@ run_flow() {
post_json "/api/kyc/claim" "{\"recipientAddress\":\"${recipient}\"}"
;;
pedersen-commitments)
# /api/status answers while the demos warm up; wait until all three are ready.
for _ in $(seq 1 120); do
# /api/status answers while the demos warm up; wait until every demo is ready.
for _ in $(seq 1 200); do
curl -fsS "${BASE_URL}/api/status" | grep -q '"ready":true' && break
sleep 3
done
post_json "/api/points/issue" '{"to":"alice","amount":1000}'
post_json "/api/points/transfer" '{"from":"alice","to":"bob","amount":700}'
post_json "/api/points/redeem" '{"from":"bob","price":120}'
post_json "/api/payroll/pay" '{"to":"carol","amount":5000}'
post_json "/api/payroll/transfer" '{"from":"carol","to":"dave","amount":800}'
post_json "/api/auction/open" '{"item":"Painting","deposit":100,"reserve":10}'
post_json "/api/auction/bid" '{"bidder":"alice","amount":40}'
post_json "/api/auction/bid" '{"bidder":"bob","amount":70}'
post_json "/api/credit/issue" '{"income":85000,"creditScore":720,"birthYear":1990,"country":356}'
post_json "/api/credit/claim" '{"who":"alice","minIncome":50000,"minScore":650}'
post_json "/api/solvency/attest" '{"reservesAda":2000}'
Expand Down
8 changes: 8 additions & 0 deletions digital-product-passport/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ repositories {
url = uri("https://central.sonatype.com/repository/maven-snapshots")
content { snapshotsOnly() }
}
// ZeroJ commit snapshots published by ZeroJ's bloxbean-snapshot workflow.
maven {
url = uri("https://repo.bloxbean.org/maven/snapshots")
content {
snapshotsOnly()
includeGroup("org.zeroj")
}
}
maven {
url = uri("https://repo.spring.io/milestone")
}
Expand Down
13 changes: 10 additions & 3 deletions docs/adr/0006-pedersen-commitment-demos.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

- **Status:** Proposed. Implementation is on `feat/pedersen-private-ballot-and-demos`.
- **Date:** 2026-10-04 (r2: amended after the design review; r3: after the implementation review —
demo C is bound to an attestation period)
demo C is bound to an attestation period; r4, 2026-10-10: demo A's notes and demo C's entries
carry on-chain deliveries, see [ADR-0007](0007-confidential-notes-in-pedersen-demos.md))
- **Superseded in part (r4):** demo A's ledger, datums and circuits are now ADR-0007's
`NoteLedger` (ZeroJ ADR-0055 M3). Demo C's attestation datum gains deliveries (ADR-0007 N6).
The rest of this ADR stands.
- **Related:**
- ZeroJ ADR-0051 and its specs, `pedersen-jubjub-v1` and `pedersen-jubjub-vector-v1`.
- ZeroJ's reference validators `ConfidentialNoteValidator` and
Expand Down Expand Up @@ -130,7 +134,8 @@ should re-split its note.
- the number of notes.

Points cannot be burned, so zero-value notes, and the min-ADA they hold, accumulate. Openings are
given to recipients off-chain; that delivery channel is out of scope.
given to recipients off-chain; that delivery channel is out of scope. (r4: openings are now
delivered on-chain; see ADR-0007.)

---

Expand Down Expand Up @@ -305,7 +310,9 @@ exchange's process runs the single-party dev setup, which is acceptable only as
binding. They deliberately have no issuance control and no business rules. Demos A and B add
those.
- **A sealed-bid auction.** Making it complete needs either an auctioneer who sees every bid, or
an on-chain auction state machine. It was deferred as larger than a demo.
an on-chain auction state machine. It was deferred as larger than a demo. (r4: built in
[ADR-0008](0008-sealed-bid-auction-enforced-disclosure.md), with bids encrypted to the
auctioneer under `elgamal-jubjub-v1`.)
- **Demo C as a mint-only attestation, with the token at the exchange's own address.** Rejected
in review. The exchange could move the token and swap the datum after proving, and it could
reuse the same reserves for several attestations.
Expand Down
Loading