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
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.
7c1e…a90b0x4b2f…e1d70x91ac…03fed03a…5c7eA 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.
paralock.xyz/app?pay=0x5aE1…c9F2&usd=25&chain=base&label=Acme%20Coffee
private settles with adaptor signatures, so no hash links the two chains.25.00 USDC
received on Base, exactly as requested
0x91ac…03feExample values
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.
It stays on your device until you claim your dollars.
Only the secret lets the maker take it. If the maker never does, it's yours again at block N.
Once your ZEC is confirmed, the maker locks stablecoins under the same secret, refundable to it after time T, long before N.
The SDK checks that lock on-chain first. Claiming reveals the secret; in a payment, the dollars go straight to the person you pay.
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.
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.
| Party | ZEC | USDC |
|---|---|---|
| You | −0.019714 | +25.00 |
| Maker | +0.019714 | −25.00 |
Settled. Each side received exactly what the other gave up.
| Party | ZEC | USDC |
|---|---|---|
| You | ±0 | ±0ZEC back at N |
| Maker | ±0 | ±0never locked |
Refunded. Nothing changed hands but a network fee.
| Party | ZEC | USDC |
|---|---|---|
| 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.
| Party | ZEC | USDC |
|---|---|---|
| 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.
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.
Value linking the chainsThe same sha256 hash on both chainsAnyone can pair the two legs. Your wallet history stays out of it.
Value linking the chainsNoneNo hash, preimage or key appears on both chains. Only amounts and timing remain to correlate.
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
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.
8a05579a…4c890xd7375edf…793f0x4fb82cf5…abd57ac65ea9…2de1An 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.
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.
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
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/sdkNode 20+. Or start from a working app: the quickstart runs a payment end to end on a local devnet.
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);
}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.
# 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-demoOne 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.
// 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("e, SwapOptions::default()).await?;
println!("{} {:?}", swap.id, swap.status);
Ok(())
}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.
# 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/paralockA 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.
@paralock/sdknpmcreateTaker and createMaker: both modes, exact-amount payments, privacy options, crash-safe recovery.@paralock/zcashnpmHTLC and 2-of-2 locks, v5 transactions, ZIP 244 signing and ZIP 317 fees. Runs in browsers.@paralock/adaptornpmECDSA adaptor signatures on secp256k1 with DLEQ proofs. Runs in browsers.@paralock/evmnpmviem clients for the hashlock and signature escrows, and a verified network registry.@paralock/lightwalletdnpmA public lightwalletd server as the Zcash backend. No full node to run.paralockcrates.ioThe Rust SDK: taker and maker engines, axum maker server, alloy escrow clients. Speaks the same wire protocol as @paralock/sdk.paralock-corecrates.ioThe protocol in pure, synchronous Rust, byte-for-byte with the TypeScript packages. Builds for wasm32.paralockCLInpx paralock for the local devnet, or one native binary for any network: swaps, payments, recovery, a maker.Your app never holds user funds. They sit in two on-chain locks and move only when the protocol says so.
The taker verifies the maker's lock on-chain (recipient, token, amount, time left) before it reveals anything.
Secrets and refund data are saved before anything is broadcast. resume() and refund() work from a fresh process.
600+ tests across the contracts, the SDK and the Rust core. Experimental and not audited.
Anywhere shielded ZEC needs to become exact dollars, without handing it to someone in the middle.
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 exampleMake 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 exampleA Zcash wallet or an AI agent embeds the SDK and pays anywhere stablecoins work: exact amounts, no exchange account.
Settle large ZEC trades through two on-chain locks instead of trusting the other desk. The price is fixed before anything locks.
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.
Mainnet comes after a third-party audit, not before. Until then the escrows run on public testnets only.
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.
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.
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.
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.
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.
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.
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.