FAQ
Common questions about confidentiality, the TEE model, and the local dev experience.
edited & set
by Ezra Nahumury
Privacy
↳ Who can see how much I donated?
Nobody, except you. The amount is encrypted client-side via the Nox gateway before it ever leaves your browser. Even the campaign creator only sees the aggregate total, never your individual contribution.
↳ Why is the aggregate public?
Crowdfunding accountability requires that anyone can verify how much was raised. We expose only the aggregate via Nox.allowPublicDecryption; per-donor handles stay private.
Tooling
↳ Why is there UTF-8 handling code in metadata.ts?
Browser btoa/atob only handle Latin-1 codepoints. Em dashes and other multi-byte UTF-8 characters get corrupted on encode, which is why metadata.ts uses TextEncoder/TextDecoder for round-trip safety.
↳ What does withCorrectedClock do?
The Nox gateway validates EIP-712 timestamps strictly. If the user's machine clock is even a few seconds ahead of UTC, every fresh token is rejected as “not active or expired”. withCorrectedClock probes the gateway clock via /api/time and patches Date.now() for the duration of the SDK call.
Deployment
↳ Why deploy your own SGD instead of using cUSDC?
The Circle USDC faucet is blocked by Indonesian ISPs. To onboard testers from anywhere we deploy a public ERC-20 (SGD) plus a confidential wrapper (cSGD) using iExec's ERC20ToERC7984Wrapper. Anyone can claim 1,000 SGD per 24 h, no faucet, no VPN.
↳ Why does forge test work without an RPC?
The repo ships offline-compile stubs for the Nox precompile under sc-StealthGive/vendor/iexec-nox-stubs/. Tests exercise the contract logic against the stubs without needing a TEE-enabled RPC.