Valun

valun-zcash-settlement/1 · ZIP-321 · Orchard 512B Memo

Sub-millisecond agent tabs. Shielded Zcash net settlement.

Agents meter thousands of tool calls offline inside signed Schnorr credit tabs, clear reciprocal loops at zero cash cost, and settle only the net residual in one shielded Zcash Orchard transaction—without leaking your supplier graph on a public chain.

Why Valun + Zcash Orchard

DimensionPublic Chain USDC / L1Valun Tabs + Zcash Shielded
Per-tool-call latencyBlock wait + gas per call<1ms offline Schnorr voucher (valun-tab-voucher/1)
Commercial graph privacyEvery vendor & spend public foreverShielded Orchard tx + encrypted 512-byte receipt memo
Loop netting100% gross cash up frontReciprocal & 3-way loop set-off; settle net residual only
Dispute & audit proofDoxx whole wallet or trust blindSelective single-tx Viewing Key / ZIP-311 disclosure

ZIP-321 Shielded Settlement Builder

Generated ZIP-321 Request (0.05 ZEC · unified · testnet)

zcash:utest176pe5f3x3gh38t9lkyevvh5xjxtyje7fux2ltc8axm3hqnl2ch6ulyr0sc94sgcl96l83fk3esswvd99alrt5karjvrenvk93cfgesnn?amount=0.05&memo=dmFsdW4temNhc2gtbWVtby8xCnZhbHVuLXRlc3RuZXQtMQp0YWJfc2V0dGxlbWVudAp2dGFiXzAwMDAwMDAwMDAwMDAwMDEKNTAwMDAwMAozZGZmNjJlMDcwOTlhZWE3YjQ0ODBiMGVlYzU1MzcyYzgyY2M5YTA0NGVjZWRkNTI2YWRjNzM0OThlYWIyYWY5&label=Valun%20shielded%20net%20settlement

Encrypted 512-Byte Orchard Memo Commitment (144 / 512 bytes · sha256 298463c7a950839b4dcf7e4a0009d135d7a439581e71545084113eba3b772d6c)

valun-zcash-memo/1
valun-testnet-1
tab_settlement
vtab_0000000000000001
5000000
3dff62e07099aea7b4480b0eec55372c82cc9a044ecedd526adc73498eab2af9

Preview uses a non-spendable illustrative utest1 address until you enter your own shielded address. A ZIP-321 payment request URI is an unsigned instruction for a non-custodial Zcash wallet (Zashi, Zingo, YWallet). Generating it never moves funds or proves settlement.

Viewing-Key, ZIP-311 & Signed Chain-Witness Verifier (valun-zcash-verify/2 · valun-zcash-verify/3)

Never trust a bare txid. Verify a shielded settlement selectively with an Incoming Viewing Key (uivk1... / uview1...) or ZIP-311 payment disclosure against your own zcashd / lightwalletd node:

# Offline structural + memo verification (returns status: awaiting_chain_witness)
npx --yes @fitzdoud/valun@0.9.16 verify-settlement --rail zcash-shielded   --address utest176pe5f3x3gh38t9lkyevvh5xjxtyje7fux2ltc8axm3hqnl2ch6ulyr0sc94sgcl96l83fk3esswvd99alrt5karjvrenvk93cfgesnn --txid <64-hex-txid>   --ref-id  --commitment    --zatoshi 5000000 --viewing-key <uivk1...> --memo dmFsdW4temNhc2gtbWVtby8xCnZhbHVuLXRlc3RuZXQtMQp0YWJfc2V0dGxlbWVudAp2dGFiXzAwMDAwMDAwMDAwMDAwMDEKNTAwMDAwMAozZGZmNjJlMDcwOTlhZWE3YjQ0ODBiMGVlYzU1MzcyYzgyY2M5YTA0NGVjZWRkNTI2YWRjNzM0OThlYWIyYWY5

# Live node witness verification (promotes to verified_by_viewing_key on >=1 conf)
npx --yes @fitzdoud/valun@0.9.16 verify-settlement --rail zcash-shielded ... --rpc-url http://127.0.0.1:8232

HTTP endpoint: POST /pilot/v1/zcash/verify (zero custody, zero tracker mutation, never fakes chain confirmations).

Phase Z3 (valun-zcash-verify/3, valun 0.9.7+): a witness that read the chain signs a valun-zcash-chain-witness/1 envelope. The verifier (verifyZcashChainWitnessEnvelope / verify_zcash_chain_witness_envelope, or the endpoint above with a chain_witness and trusted_witness_pubkeys) accepts it only when the witness key is one you pinned, the transaction is finalized with at least your minimum confirmations, and the memo commitment matches; a reorganized block reads reorged_out. Spending keys and seed phrases are refused; set allow_ufvk to false to refuse full viewing keys too. All 16 golden vectors (V01–V16, spec/vectors/zcash_phase_z3_vectors.json) pass on the server, browser JS and Python.

No Zcash payment is recorded in the operator's proof registry (/pilot/v1/mainnet-proofs) as of December 4, 2026: on Valun, Zcash is request building and verification so far.

Zero-Dependency SDK Parity (Browser-Safe JS & Python)

JavaScript

import { buildZcashZip321Uri } from '@fitzdoud/valun/zcash';
const req = buildZcashZip321Uri({
  address: 'u1...',
  amount_zatoshi: 5000000,
  kind: 'tab_settlement',
  ref_id: 'vtab_0123456789abcdef',
  commitment_sha256: tabDigest,
});

Python

from valun.zcash import build_zcash_zip321_uri
req = build_zcash_zip321_uri(
    address='u1...',
    amount_zatoshi=5_000_000,
    kind='tab_settlement',
    ref_id='vtab_0123456789abcdef',
    commitment_sha256=tab_digest,
)

Transparent t1/t3 addresses are refused on the zcash-shielded rail by construction. Settlement is recorded as verified only when an independent Viewing Key or ZIP-311 payment disclosure confirms recipient, zatoshi, memo SHA-256, and confirmations >= 1.