Skip to Studio content
Sepolia 11155111
Encrypted Predicates

Aggregate Predicate Lab

Build one approved aggregate predicate intent from 2 to 8 encrypted field predicates.

1. Target

Select the collection and token.

2. Bundle

Add 2 to 8 eligible fields and operands.

3. Approve

Move the intent through the allowed demo or Sepolia approval flow.

4. Execute

Compute one aggregate result after approval.

Aggregate predicate wizard
1. Select collection and token
Collection scope
Token scope
Collection
0xD00a8FBF40036924f47C7434e272B8550Ca42889
Token
#1 CMT Demo Phone X
Aggregate execution
  1. Requester creates an aggregate predicate intent (2-8 fields).
  2. Token owner or brand admin approves the intent.
  3. Contract computes encrypted comparisons internally.
  4. Contract aggregates all comparisons into one encrypted boolean.
  5. Authorized viewer sees one final yes/no result.
2. Optional aggregate templates

batteryEnduranceCycles >= 800 + batteryMinRetainedCapacity >= 80 | osUpdatesUntil >= 1893456000 + complianceStatus == true | repairabilityScore >= 70 + batteryStateOfHealth >= 80 + repairCount <= 3 | supplierForcedLaborRiskScore <= 10 + unknownSupplierCount <= 2 | guaranteeExpiration >= 1893456000 + purchasePrice >= 20000

3. Build predicate bundle

Add eligible encrypted fields, choose operators, and enter operands for the aggregate check.

Selected eligible field predicates: 0 / minimum 2

Aggregate predicates require 2 to 8 eligible fields. Single-field execution is not supported.

No selected fields

Add at least two eligible fields to build an aggregate predicate bundle.

Create predicate intent disabled: at least 2 eligible field predicates are required.
4. Select eligible fields

These fields can be added to an aggregate predicate bundle.

Repairability Score
repairabilityScore
Eligible for aggregate predicate
EUINT8repairerPredicate enabled

Eligible for aggregate predicate.

Battery State Of Health
batteryStateOfHealth
Eligible for aggregate predicate
EUINT8repairerPredicate enabled

Eligible for aggregate predicate.

Recyclability Score
recyclabilityScore
Eligible for aggregate predicate
EUINT8recyclerPredicate enabled

Eligible for aggregate predicate.

Compliance Status
complianceStatus
Eligible for aggregate predicate
EBOOLmarketSurveillanceAuthorityPredicate enabled

Eligible for aggregate predicate.

Repair Count
repairCount
Eligible for aggregate predicate
EUINT16repairerPredicate enabled

Eligible for aggregate predicate.

Os Updates Until
osUpdatesUntil
Eligible for aggregate predicate
EUINT64Token owner or collection ownerPredicate enabled

Eligible for aggregate predicate.

Battery Endurance Cycles
batteryEnduranceCycles
Eligible for aggregate predicate
EUINT16Token owner or collection ownerPredicate enabled

Eligible for aggregate predicate.

Battery Min Retained Capacity
batteryMinRetainedCapacity
Eligible for aggregate predicate
EUINT8Token owner or collection ownerPredicate enabled

Eligible for aggregate predicate.

Supplier Forced Labor Risk Score
supplierForcedLaborRiskScore
Eligible for aggregate predicate
EUINT8supplyChainAuthorityPredicate enabled

Eligible for aggregate predicate.

Unknown Supplier Count
unknownSupplierCount
Eligible for aggregate predicate
EUINT16supplyChainAuthorityPredicate enabled

Eligible for aggregate predicate.

Disabled or unavailable fields
Supplier Audit Risk Score
supplierAuditRiskScore
Predicate disabled
EUINT8supplyChainAuthorityPredicate disabled

Predicate disabled: authority-only disclosure. This prevents threshold probing or indirect approximation of sensitive supplier risk scores.

Supplier Sanction Exposure Score
supplierSanctionExposureScore
Predicate disabled
EUINT8supplyChainAuthorityPredicate disabled

Predicate disabled: authority-only disclosure. This prevents threshold probing or indirect approximation of sensitive supplier risk scores.

Supplier Batch Anomaly Score
supplierBatchAnomalyScore
Predicate disabled
EUINT8supplyChainAuthorityPredicate disabled

Predicate disabled: authority-only disclosure. This prevents threshold probing or indirect approximation of sensitive supplier risk scores.

8. Aggregate predicate output
Pending
encrypted aggregate result: not computed
Aggregate predicate result: pending

The final result is one encrypted boolean over the selected predicate bundle, not a result per field.

Existing aggregate intents
0 total