First public-testnet swap settled in 3 min 39 s

Keep it shielded. Spend it in dollars.

Pay anyone an exact dollar amount straight from shielded ZEC. A lock on Zcash and a lock on the dollar chain open with the same key, so either both sides settle or both get their money back. No bridge, no custodian, no wrapped token.

Open source (MIT). Live on six public testnets. Experimental and not audited.

Paying Acme Coffee25.00 USDC on Base
Settled
  1. 1You lock 0.019714 ZEC on Zcash7c1e…a90b
  2. 2The maker locks 25.00 USDC on Base0x4b2f…e1d7
  3. 3Acme Coffee is paid, revealing the key0x91ac…03fe
  4. 4The maker opens the ZEC lock with itd03a…5c7e
Illustration with example values. T is when the dollar lock expires and N is when the ZEC refund opens. T always comes long before N, so whoever learns the key has time to use it.

Pay with a link.

A shop shares a link with an address and a price. You pay from your shielded balance, and they receive exactly what they asked for, on the chain they chose. The ZEC amount rounds up, never the dollars.

Acme CoffeeSettled

25.00 USDC

received on Base, exactly as requested

You paid
0.019714 ZECfrom your shielded balance
Held by
Two on-chain locks. No custodian.
If it stalls
Both sides refund
Base claim
0x91ac…03fe

Example values

Two locks, one key.

Each chain holds one side of the trade, and claiming your side hands the other party the key to theirs. The other party is a maker: it quotes a price, locks the stablecoins and earns the spread. Anyone can run one.

  1. 1Your device

    You pick a secret

    It stays on your device until you claim your dollars.

  2. 2Zcash

    You lock ZEC

    Only the secret lets the maker take it. If the maker never does, it's yours again at block N.

  3. 3EVM chain

    The maker locks dollars

    Once your ZEC is confirmed, the maker locks stablecoins under the same secret, refundable to it after time T, long before N.

  4. 4EVM chain

    You claim the dollars

    The SDK checks that lock on-chain first. Claiming reveals the secret; in a payment, the dollars go straight to the person you pay.

  5. 5Zcash

    The maker claims the ZEC

    It uses the secret your claim revealed. Both sides are paid, and nobody held anyone else's money.

Standard mode shown. Private mode replaces the shared hash with adaptor signatures; the guarantees are the same.

What can go wrong? Nothing that costs you.

Pick a failure and watch both chains. The Zcash script and the EVM contract decide every outcome, not a person. The ZEC refund window outlasts the dollar lock at least 2×, so whoever learns the key always has time to use it.

Everything settles0.019714 ZEC for 25.00 USDC on Base
Settled
  1. 1You lock 0.019714 ZEC on Zcash. Only the key opens it for the maker.
  2. 2The maker locks 25.00 USDC on Base under the same hash.
  3. 3You check that lock on-chain, then claim. The claim reveals the key.
  4. 4The maker reads the key on Base and opens the ZEC lock, long before N.
Balance changes
PartyZECUSDC
You−0.019714+25.00
Maker+0.019714−25.00

Settled. Each side received exactly what the other gave up.

The maker never locks0.019714 ZEC for 25.00 USDC on Base
Refunded
  1. 1You lock 0.019714 ZEC on Zcash.
  2. 2No dollar lock arrives. The SDK stops waiting, and the key never leaves your device.
  3. 3Block N arrives. You spend the refund path and your ZEC comes back.
Balance changes
PartyZECUSDC
You±0±0ZEC back at N
Maker±0±0never locked

Refunded. Nothing changed hands but a network fee.

You never claim0.019714 ZEC for 25.00 USDC on Base
Refunded
  1. 1You lock 0.019714 ZEC on Zcash.
  2. 2The maker locks 25.00 USDC on Base.
  3. 3You go offline and never claim. The key stays with you, so the maker can't open the ZEC.
  4. 4Time T passes. The maker takes its 25.00 USDC back.
  5. 5Block N arrives, and you take your ZEC back.
Balance changes
PartyZECUSDC
You±0±0ZEC back at N
Maker±0±0USDC back at T

Both refunded. The maker's refund opens first, and yours is guaranteed after it.

Someone copies the secret0.019714 ZEC for 25.00 USDC on Base
Settled
  1. 1You lock 0.019714 ZEC on Zcash.
  2. 2The maker locks 25.00 USDC on Base.
  3. 3You claim. While it waits in the mempool, anyone can read the secret.
  4. 4A bot copies it and claims first. The contract pays the recipient fixed at lock time: you.
  5. 5The bot tries the ZEC lock too. That spend also needs the maker's signature, so it fails.
  6. 6The maker claims the ZEC with the secret, as agreed.
Balance changes
PartyZECUSDC
You−0.019714+25.00
Maker+0.019714−25.00
Bot±0±0paid the gas

Settled as agreed. Copying the secret earns nothing.

Example values, htlc mode, network fees aside. Private mode has the same outcomes without a public secret.

Privacy in three levels.

Removing the middleman is step one. The rest is what the two chains can reveal about you. Pick a level to see what someone watching each chain can read.

Watching Zcashtransparent

Lock
Transparent HTLC (P2SH)
Script
OP_SHA256 9f2c…e41a OP_EQUALVERIFY …
Amount
0.5 ZEC, a standard size
Your wallet
Shielded before and after

Watching the EVM chainpublic

Contract
ParalockHTLC
Hashlock
9f2c…e41a
Recipient
A fresh address, used once
Claim sent by
A relayer, so no gas needed

Value linking the chainsThe same sha256 hash on both chainsAnyone can pair the two legs. Your wallet history stays out of it.

Watching Zcashtransparent

Lock
2-of-2 multisig (P2SH)
Spend
Two ordinary signatures
Amount
0.5 ZEC, a standard size
Your wallet
Shielded before and after

Watching the EVM chainpublic

Contract
ParalockAdaptorEscrow
Unlocks with
A one-time key's signature
Recipient
A fresh address, used once
Claim sent by
A relayer, so no gas needed

Value linking the chainsNoneNo hash, preimage or key appears on both chains. Only amounts and timing remain to correlate.

Watching Zcashshielded pool

Lock
A normal shielded transaction
Spend
Shielded, FROST 2-of-2
Amount
Hidden
Your wallet
Never leaves the pool

Watching the EVM chainpublic

Contract
ParalockAdaptorEscrow
Unlocks with
A one-time key's signature
Recipient
A fresh address, used once
Claim sent by
A relayer, so no gas needed

Value linking the chainsNoneOnly the EVM leg is visible at all. Open work: a cross-curve proof and Ironwood support in FROST.

At every level your wallet history stays out of the swap. Amounts and timing can still be correlated, and standard amounts and jitter make that harder. Example values. Read the privacy design

It runs on public testnets.

The escrows are deployed with verified source on six public testnets, and the SDK has swapped testnet ZEC for OUSD on Tempo through a public lightwalletd server, without a node of its own, from TypeScript and again from Rust. These are the real transactions.

0.015 TAZ for 19.39 OUSDZcash testnet to Tempo Moderato · htlc mode · 2026-10-12
  1. 08:19:59The maker accepts the quote and reserves 19.391457 OUSD, before any ZEC movesoff-chain
  2. 08:20:00The taker locks 0.015 TAZ in the Zcash HTLC8a05579a…4c89
  3. 08:21:05The maker locks 19.391457 OUSD on Tempo0xd7375edf…793f
  4. 08:21:07A relayer claims the OUSD for the taker, revealing the secret0x4fb82cf5…abd5
  5. 08:23:38The maker claims the TAZ with the secret7ac65ea9…2de1
Settled in 3 min 39 s. On Tempo, the lock and the claim were 2 s apart.

Run 1 failed safely

An hour earlier, a 0.1 TAZ swap hit a bug the devnet's 3-second blocks had hidden: the quote expired before the maker accepted, so it never locked. The ZEC came back through the refund path at block 4,491,543. The fix, d6af580, has the maker commit before any ZEC moves.

Checking the Zcash side

No public explorer indexes the NU7 testnet yet, so the Zcash txids are listed to copy. Look them up through any lightwalletd server on that chain, such as testnet.zec.rocks.

All three runs, step by step

Zcash to six dollar chains.

The same two escrow contracts everywhere. Tempo settles in OUSD, the rest in USDC, and the whole set also runs locally with one command. All addresses

ZcashZEC, from the shielded poolTestnet through public lightwalletd. No node to run.
  • TempoOUSDModerato 42431Source
  • BaseUSDCBase Sepolia 84532Source
  • EthereumUSDCSepolia 11155111Source
  • ArbitrumUSDCArbitrum Sepolia 421614Source
  • Robinhood ChainUSDCRobinhood testnet 46630Source
  • HyperEVMUSDCHyperEVM testnet 998Source

Build on it.

Dollar payments from shielded ZEC in a few lines of TypeScript. The SDK runs both chains, the timeouts and the recovery, and your app never holds user funds. MIT-licensed: embed the taker, or run a maker and earn the spread.

npm install @paralock/sdk

Node 20+. Or start from a working app: the quickstart runs a payment end to end on a local devnet.

pay.tsTypeScript
import { SwapFailedError, createTaker } from "@paralock/sdk";
import { LightwalletdClient } from "@paralock/lightwalletd";

const taker = createTaker({
  zcash: {
    network: "testnet",
    key: process.env.ZEC_KEY!,
    node: new LightwalletdClient("testnet.zec.rocks:443"), // no node to run
  },
  evm: { base: { rpcUrl, chainId: 84532, htlc, adaptorEscrow, account } },
  maker: "https://maker.example",
  store: "./swaps", // secrets are saved before anything is broadcast
});

// Pay Acme Coffee exactly 25 USDC on Base Sepolia, in private mode.
const quote = await taker.quoteExactOut(25_000_000n, "base", "adaptor");

try {
  await taker.swap(quote, { recipient: "0x5aE1…c9F2", label: "Acme Coffee" });
} catch (err) {
  // It failed after the ZEC was locked: take it back after the refund height.
  if (err instanceof SwapFailedError) await taker.refund(err.swap.id);
}

Three calls to pay

createTaker wires the Zcash backend, the escrows and a durable store. quoteExactOut fixes the dollar amount, and swap verifies the maker's lock on-chain before it reveals anything. Escrow addresses for each testnet are in the contracts reference.

terminalShell
# Check Node, Docker, ths and anvil; prints a fix for anything missing
npx paralock doctor

# Zcash regtest, six EVM chains, the contracts and a maker
npx paralock dev --evm all

# Swap 1 ZEC for USDC on Base, with nothing linking the two legs
npx paralock swap --zec 1 --chain base --private

# Pay exactly $25 to an address on Tempo
npx paralock pay --usd 25 --to 0x5aE1…c9F2 --chain tempo

# Lock ZEC, let the maker vanish, and watch the refund
npx paralock swap --zec 1 --refund-demo

The whole stack on your laptop

One command starts a Zcash regtest, an anvil per EVM chain, the escrows and a maker. Then swap, pay, resume or refund from the terminal. You need Node 20+, Docker or OrbStack, Foundry 1.8+ and ths.

No clone needed. To work on the code, run the same commands from a checkout: pnpm install && pnpm build, then pnpm paralock dev.

src/main.rsRust
// cargo add paralock --features evm,lightwalletd,price-feed
use std::sync::Arc;

use paralock::builder::*;
use paralock::paralock_evm::testnet_deployment;
use paralock::{CoinGecko, EvmChain, Hex, Network, SwapMode, SwapOptions, TakerPriceCheck};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Zcash through a public lightwalletd server: no node to run.
    let lwd = ZcashBackend::Lightwalletd { url: "testnet.zec.rocks:443".into() };
    let zcash = ZcashOptions::new(Network::Testnet, lwd, std::env::var("ZEC_KEY")?);

    // Paralock's verified escrows on Base Sepolia ship with the crate.
    let d = testnet_deployment(84532).ok_or("no deployment")?;
    let htlc = Hex::from_bytes(d.htlc.as_slice());
    let mut base = EvmChainOptions::new("https://sepolia.base.org", 84532, htlc, std::env::var("EVM_KEY")?);
    base.adaptor_escrow = Some(Hex::from_bytes(d.adaptor_escrow.as_slice()));
    base.from_block = Some(d.start_block);

    let taker = create_taker(
        CreateTakerOptions::new(
            zcash,
            MakerEndpoint::Url("https://maker.example".into()),
            StoreOption::Dir("./swaps".into()), // secrets are saved before anything is broadcast
            TakerPriceCheck::Source(Arc::new(CoinGecko::new()?)),
        )
        .with_chain(EvmChain::Base, TakerEvmChainOptions::new(base, vec![])),
    )
    .await?;

    // 0.1 ZEC for USDC, private mode: nothing on-chain links the two legs.
    let quote = taker.quote(10_000_000, EvmChain::Base, SwapMode::Adaptor).await?;
    let swap = taker.swap(&quote, SwapOptions::default()).await?;
    println!("{} {:?}", swap.id, swap.status);
    Ok(())
}

The same protocol, native in Rust

The paralock crate embeds a taker or a maker (served with axum) in a Rust service, with no Node.js process. It speaks the same wire protocol as the TypeScript SDK, and this program compiles as shown. Prefer a terminal? The paralock binary does the same from a paralock.toml.

Install the binary with curl -fsSL https://paralock.xyz/install | sh or cargo install paralock-cli.

agentsShell
# Claude Code
claude mcp add --transport http paralock https://paralock.xyz/mcp

# Cursor and other clients: add it to your mcpServers
{ "mcpServers": { "paralock": { "url": "https://paralock.xyz/mcp" } } }

# The skill, for coding agents that integrate the SDK
npx skills add bitfalt/paralock

Docs and addresses for your agent

A read-only MCP server with four tools: list_docs, read_doc, search_docs and get_deployments. It never holds keys or sends transactions. Every docs page is also plain Markdown, indexed in llms.txt.

  • Never custodial

    Your app never holds user funds. They sit in two on-chain locks and move only when the protocol says so.

  • Checks before it commits

    The taker verifies the maker's lock on-chain (recipient, token, amount, time left) before it reveals anything.

  • Crash-safe

    Secrets and refund data are saved before anything is broadcast. resume() and refund() work from a fresh process.

What it's for.

Anywhere shielded ZEC needs to become exact dollars, without handing it to someone in the middle.

  • Private payroll

    Keep the treasury in shielded ZEC and pay each contributor an exact amount on the chain they choose. One devnet run paid $4,665.75 to four people on four chains.

    See the example
  • Sell a secret for ZEC

    Make the secret a decryption key. The seller is paid only by revealing it on-chain, and the buyer reads it from the claim. No escrow agent.

    See the example
  • Wallets and agents

    A Zcash wallet or an AI agent embeds the SDK and pays anywhere stablecoins work: exact amounts, no exchange account.

  • OTC trades

    Settle large ZEC trades through two on-chain locks instead of trusting the other desk. The price is fixed before anything locks.

Roadmap.

What ships today, what comes next and what is still research, at a glance. No dates: each item ships when it is built, tested and reviewed.

Shipped9

  • TypeScript SDK@paralock/* on npm: taker, maker, both modes, crash-safe recovery
  • Rust SDK and binaryFour crates on crates.io, and a native paralock CLI
  • Private modeAdaptor signatures: no shared hash links the two legs
  • Pay and payment linksExact dollars to any address, from shielded ZEC
  • Six EVM testnetsBoth escrows deployed with verified source
  • Public testnet swapsThree runs on Zcash testnet and Tempo, one safe refund
  • Protocol spec v1.1Cross-language test vectors shared by TypeScript and Rust
  • One-command devnetnpx paralock dev: Zcash regtest, anvils, contracts, a maker
  • Docs for agentsllms.txt, Markdown pages, an MCP server and a skill

Next10

  • Bindings from the Rust coreNode.js, browsers, Swift, Kotlin, Python and Go
  • A hosted testnet makerTry a public-network swap without running a maker
  • Third-party security auditContracts, protocol and core
  • Mainnet, after the auditStarting with OUSD on Tempo
  • A maker networkMany makers compete for each swap
  • Dollars to ZECThe reverse direction
  • Shielded refundsRefunds straight to a shielded address
  • Wallet integrationsPay in dollars from the Zcash wallet you use
  • MPP paymentsAgents pay HTTP 402 APIs from shielded ZEC
  • SolanaSame hashlock; private mode via secp256k1_recover

In research1

  • A fully shielded Zcash legFROST 2-of-2 on shielded notes, Schnorr adaptor signatures and a cross-curve proof

Mainnet comes after a third-party audit, not before. Until then the escrows run on public testnets only.

The full roadmap, with the reason for each item

Questions

Is it really trustless?

Nobody but you and the maker ever holds the funds, and neither of you can take the other side without paying. The Zcash script and the EVM contract enforce it: either both sides settle or both refund.

What you still rely on: the code, which is experimental and not audited, and the maker's price, which you accept before anything locks. You also need to claim before T; the SDK watches both chains and does it for you.

Can the secret be front-run?

No. Anyone who copies the secret from the mempool can submit the claim, but the dollar lock only pays the recipient fixed when it was created, and the ZEC lock also requires the maker's signature. In private mode no secret is published at all: the claim publishes a signature that only the maker can turn into the key.

How is this different from CrossPay or NEAR Intents?

Zodl's CrossPay spends shielded ZEC through NEAR Intents market makers, and deposits move through NEAR's PoA bridge, which holds them in a treasury. THORChain's ZEC pool keeps funds in validator-held vaults. Both are good products, but an intermediary holds your money while the swap is in flight.

With Paralock, only the two parties ever hold funds, the SDK is self-hostable, and it settles natively on Tempo, which isn't a NEAR Intents destination.

Is the Zcash leg private?

Partly, depending on the mode. Your shielded balance never touches the swap: only the swap amount is unshielded, and change and refunds are shielded again.

In standard mode the Zcash lock is a transparent HTLC carrying the same hash as the dollar lock, so the two legs can be paired. Private mode removes that hash, and Zcash sees an ordinary 2-of-2 multisig. A fully shielded Zcash leg through FROST is in research.

Is there a Rust SDK?

Yes, on crates.io. paralock embeds a taker or a maker in a Rust service and trades with TypeScript makers and takers on the same wire protocol. It builds on paralock-core, the protocol checked byte for byte against shared vectors, and paralock-evm, alloy clients for both escrows. The standalone paralock binary installs with one command.

Can I use it with real money?

Not yet. The escrows are deployed on six public testnets, and a full swap has settled between the Zcash testnet and Tempo Moderato through a public lightwalletd server. The hosted app uses a simulated maker. The code is experimental and has not been audited, so mainnet isn't supported.

Try a payment.

The hosted app runs against a simulated maker, so nothing real moves. Try all three endings (settled, the maker vanishes, you never claim) and watch both locks.