Live on Midnight testnet
Every app has a night mode.
Every app can be made private. Sig.Network gives Midnight contracts real accounts on Ethereum, so your users trade on Uniswap, lend on Aave and deposit from any wallet or exchange exactly as they do today, with nobody’s name on any of it.
How it works
Your Midnight contract gets its own account on Ethereum.
Sig.Network is a signing network. It holds the key to an Ethereum account on behalf of your contract, and signs only what your contract asks it to. To Ethereum it is an ordinary account doing ordinary things. To your users it is your app, with their balances and their identities shielded on Midnight.
- 01 · Midnight
Your contract decides.
A Compact circuit checks the request, burns the user’s shielded claim and queues one Ethereum transaction.
- 02 · sig.network
The network signs.
A threshold of independent signers produces a standard Ethereum signature. No single signer can act alone, and nothing is bridged or wrapped.
- 03 · Ethereum
The chain settles.
Uniswap, Aave or a plain transfer executes from your account at the real price. The result is attested back to Midnight and the user is credited.
Use cases
Three things to build this quarter.
-
A dark pool on any DEX
Orders net inside your pool on Midnight. Only the net hits Uniswap, from one account, at Uniswap’s price. You set the privacy fee.
For trading venues and aggregators -
Private positions on a public book
Users take positions on Polymarket through your pool. The market sees the pool, the pool knows the client, and the venue can ask.
For prediction and perps front ends -
Shielded in, shielded out
Deposits arrive from any wallet or exchange to a one-time address, earn on Ethereum, and leave to a fresh address. No reusable address anywhere.
For wallets, payments and ZEC
Adopt it one layer at a time.
Start with a private pool in front of an app people already use. Then move your logic onto Midnight piece by piece: the strategy, then routing, then lending. Every layer below the line keeps Ethereum’s liquidity, and every app draws its own line.
Developers
Write it in Rust, or in Compact.
Import the Signet module and queue Ethereum transactions from your circuits. Keep your own ledger and
your own rules. The examples repo has a complete ERC-20 vault with deposit, withdraw, swap and supply,
deploy tooling and integration tests. Prefer Rust? MinoCrab is an experimental eDSL that compiles the
same contracts with cargo, rust-analyzer and #[test].
import "@sig-net/midnight/src/Signet";
// Declared above: signetSigner, evmChainId, mpcKeyVersion, the gas settings and two small helpers.
export ledger transfers: SignBidirectionalEventMapV1<EvmType2TxParams<2, 0, 0>, 34>;
// File token.transfer(to, amount) on Ethereum from the treasury's account.
export circuit sendErc20(evmNonce: Uint<64>, token: Bytes<20>, to: Bytes<20>, amount: Uint<64>): [] {
const calldata = EvmCalldata<2> {
selector: Bytes [0xa9, 0x05, 0x9c, 0xbb], // transfer(address,uint256)
noWords: 2 as Uint<16>,
words: [evmAddressAbiWord(disclose(to)), numericAbiWord(disclose(amount) as Uint<128>)]
};
const txParams = EvmType2TxParams<2, 0, 0> {
chainId: evmChainId, nonce: disclose(evmNonce),
maxPriorityFeePerGas: maxPriorityFeePerGas, maxFeePerGas: maxFeePerGas, gasLimit: gasLimit,
to: disclose(token), value: 0 as Uint<128>,
calldata: some<EvmCalldata<2>>(calldata), accessListEntryCount: 0, accessList: []
};
const request = constructSignBidirectionalEventV1<EvmType2TxParams<2, 0, 0>, 34>(
mpcKeyVersion, kernel.self(), treasuryPath(),
MPCSignatureAlgorithm.ecdsa, TxParamType.evmType2, txParams, ethereumCaip2Id(),
MPCDestination.unused, pad(64, ""), successOutputSchema()
);
const requestId = calculateEvmType2RequestIdV1<2, 0, 0, 34>(request);
assert(!transfers.member(requestId), "Request already sent");
transfers.insert(requestId, request);
// Tell the signing network where to find the request.
signetSigner.signBidirectional(requestId, constructSignBidirectionalEventNotificationV1(
kernel.self(), 1 as Uint<8>, [6, 0, 0, 0] as Vector<4, Uint<8>>, // the ledger index of transfers
));
}
type Transfer = Filed<erc20::Transfer, schema::Success>;
#[derive(Ledger)]
pub struct Treasury {
pub signet: Signet,
pub transfers: Pending<Transfer, Owned<Amount>, 2>,
}
#[contract]
impl Treasury {
// File token.transfer(to, amount) on Ethereum, remembering the amount and the caller.
// The selector, ABI encoding, gas envelope and signing path come from the slot's type.
#[circuit]
pub fn send(
c: &mut Circuit3, evm_nonce: Uint<64>, token: Contract<Erc20>, to: Bytes<20>, amount: Uint<64>,
) -> Discloses<(SentAmount, OwnerCommitment, Requested)> {
let sent = amount.field().disclose_as::<SentAmount>(c);
TREASURY.transfers.request_owned::<OwnerCommitment>(
c, token, (to, amount.widen::<128>()), evm_nonce,
|_, _| Amount { amount: Uint::from_field_unchecked(sent) },
);
Discloses::of(())
}
// The transfer executed and returned true. Anyone may call this: the attestation is the gate.
#[circuit]
pub fn complete(c: &mut Circuit3, ticket: Succeeded<Transfer>) -> Discloses<Settled> {
TREASURY.transfers.complete(c, ticket);
Discloses::of(())
}
}
Compliance
Compliance, built in.
Deposit rules
Your contract defines what it accepts, holds or returns. Screen on arrival and credit only what passes.
Screening
Your pool is an ordinary Ethereum account. The tools regulated venues already use work on it unchanged.
Segregation
Each app has its own accounts. Nothing sits in a shared pot with actors you don’t trust.
Disclosure
Define in your contract what users share to take part, and who may ask. Your Midnight ledger is a complete record.
Roadmap
One pool, every chain.
The pool lives on Midnight and holds an account on each chain it reaches. Moving between chains never leaves the pool, so every chain added makes every crossing rarer.
- Testnet · nowMidnight → EthereumDeposits, Uniswap swaps, Aave supply, withdrawals to any address. Open examples and a full-stack demo.
- Mainnet · 27 November 2026Midnight mainnetThe same contracts and the same accounts, with real funds.
- 29 December 2026TronWhere the dollars move. One pool, two chains, no crossing between them.
FAQ
Questions people ask first.
Is this a bridge?
No. Nothing is locked, minted or wrapped. Your contract holds a real Ethereum account, and assets stay on Ethereum the whole time. What moves is a signature.
Who holds the keys?
A threshold network of independent signers. No single signer has the key, and the network signs only requests that come from your contract on Midnight. Your contract is the policy.
What does Ethereum see?
One ordinary account doing ordinary things: a transfer in, a swap, a supply, a transfer out. Not who, not how much of whose, not why. Amounts and timing on the public leg are visible, as they are for any Ethereum account.
How does compliance work?
Your pool is a normal Ethereum account, so the screening tools venues already use apply unchanged. Your contract sets the deposit rules, and you decide who may ask what, written in code rather than negotiated afterwards.
What does it cost?
Each transaction costs about $0.01, plus the gas fee on the destination chain.