Skip to content

Security

Security model

Every Portuna product follows the same rules: your keys stay with you, funds move only to your addresses, and the code that moves them is small, verifiable and immutable. Below is how Portuna Sweep keeps them.

Our three rules

  1. 1

    Your keys stay with you

    We never create or hold the keys to your deposit addresses. You sign in your own HSM, KMS or MPC; we never see a key.

  2. 2

    Funds go only where you allow

    To your addresses written into an immutable contract, or with your signature on a specific operation. Anyone can check the code, and it has no admin keys.

  3. 3

    Pay per success, no fee without a saving

    You pay a fee only for transfers that reach your hot wallet; a failed transfer costs only its gas. The fee is priced against what the same operation costs you today – its conventional cost, which you can check – and where we save you nothing, there is no fee.

Products

Portuna Sweep

Non-custodial

Deposit keys never leave your custody. A deposit address signs one thing: an EIP-7702 authorization that puts your delegate's code on it, on one chain. You sign it in your own HSM, KMS or MPC; we never see the key.

Funds go from the deposit address straight to your hot wallet, inside the batch transaction. They never pass through an address of ours.

The key keeps working: you can send from a deposit address as before, and revoke the delegation at any time to turn it back into a plain address.

Three small contracts

Immutable, ownerless, without upgrades or admin roles. Each customer gets its own batcher and delegates, so no contract of ours touches two customers.

  • SweepFactory

    Shared and ownerless; the same address on every chain. It deploys a customer's batcher and delegates, always for the caller's own gas wallet.

  • SweepBatcher

    Yours. Accepts batches only from your gas wallet and goes through the deposits one by one: if an address fails, it is skipped and reported, and the rest of the batch still runs.

  • SweepDelegate

    The code on your deposit addresses, one per hot wallet or per set of up to 8. It does one thing: when your batcher asks, it sends a token or the native coin to one of the hot wallets written into its bytecode.

Who can do what

Who Can Cannot
You Everything you could before: the deposit keys are yours. Revoke the delegation at any time. –
The Portuna service Send batches of your sweeps from the dedicated gas wallet you prepay. Send funds anywhere but your hot wallets.
Us, as a company Decide when a batch goes out. Change your hot wallets: they are part of the delegate's code.
Anyone else Nothing: the delegate accepts calls only from your batcher. Trigger, redirect or block your sweeps.

Verify before you sign

All contracts are created with CREATE2, so an address is a hash of the creator, the salt and the full creation code – bytecode and constructor arguments. Change a single byte and the address changes. If the address computed from the open code matches the one on-chain and there is code there, it is exactly that code, with exactly your hot wallets and gas wallet.

verify-delegate, part of the Go and TypeScript SDKs, does it in one command before any deposit signs: it computes the factory, your batcher and your delegate, checks their code on-chain and compares the delegate with the one the API returned.

Factory

The address changes with any change of the code.

Gas wallet keys

Gas wallet keys live in a separate signing service, the only component that can sign. The API servers never see them.

The signer signs only this protocol's transactions: deploying your contracts, your batches and revocations, the fees due, and payouts of your balance to your own hot wallets. It stays within per-network gas caps and a daily gas budget per gas wallet, and journals every signature and refusal.

Source code

The contracts' source code is published, and every mainnet deployment is verified on Etherscan and Sourcify.

Report a vulnerability

Found a weakness? Write to us before disclosing it publicly. We answer every report.

[email protected]

Try it on testnet

Access to the console is by request. Write to us, and we'll open it, starting with testnet on Ethereum and BSC.

Request access

Tell us about your processing, and we'll reply by email.