Application

Weaving

Subscribers’ transactions are combined on a blockchain before they are signed, with no company and no outside party in the middle.

Orderflow and weaving, defined.

Orderflow

The stream of transactions on their way to a chain

Every trade or payment a wallet sends has value to others: whoever sees it first can trade ahead of it, and whoever places it in a block can charge for the position. In most wallets that value goes to outside parties.

Weaving

Combining confirmed transactions before they are signed

In an ordinary wallet, the signature comes first. Each transaction is signed on the owner's phone or hardware wallet before it leaves, and a signed transaction cannot be changed. Whoever handles it afterwards can only decide when it goes out and in what order.

In Counterseal, the signature comes last. Each owner confirms what the transaction may do, and Counterseal holds it unsigned on a blockchain. Because nothing is signed yet, its form is still open: it can be matched against other subscribers' transactions, combined with them, sent by a different route, or prepared for whichever destination suits it. The result is checked against the limits each owner approved, and only then signed.

Weaving is more than matching.

Matching buyers with sellers is the best-known use of a combined flow, and it is only one of several. Because every transaction in the flow is still unsigned, Counterseal can give the flow the form that suits its next step.

Alice sells 1 ETH Bob buys 1 ETH Carol swaps USDC Dan pays three people COUNTERSEAL · NOTHING IS SIGNED YET Match Combine Change the route Choose the block builder Each result is checked against its owner's limits. Only then is it signed. Back to subscribers savings and rebates Public chains delivered on a private channel
An example. Alice's and Bob's trades are matched with each other. Dan's three payments are combined into one transaction. Carol's swap is sent by the route that suits it. The finished package goes to a chosen block builder on a private channel.
MatchIf you are selling what another subscriber is buying, the two trades settle against each other directly. No fee is paid to an outside exchange, and the network fee is paid once. A match can also run around three or more subscribers, and a large order can be filled in parts as counterparties arrive.
CombineMany transfers travel in one transaction and share its cost. Steps that depend on each other, such as granting a permission and making the trade that uses it, go in one unit that succeeds or fails as a whole.
Change the routeA trade written for one exchange can be sent to another exchange or swap service instead, when its owner has allowed that. Part of a trade can be matched and the rest sent to an outside market.
Choose the block builderA block builder is a party that assembles blocks; on some chains the same role is called a sequencer or a validator. The finished package goes to a block builder chosen by the terms each one offers, with others as a fallback. Outside traders can also bid for the position directly behind a transaction, and the winning bid is paid into the pool that is shared out.
Deliver privatelyWhatever leaves is handed over on a private channel. It is not broadcast to the public waiting area for unconfirmed transactions, where anyone can see an order and trade ahead of it.

Only matching needs a counterparty. The other four work on any flow, including a small one. All five are worth more as the flow grows: more matches, larger combined transactions, and better terms from block builders.

The value in your transaction comes back to you.

When you trade on a public chain, other parties see your order before it settles and profit from it. Weaving keeps that value with the subscribers whose transactions created it.

ReturnSavings from matching are yours. Most of the value that others would have taken from your trade is paid back to you. The remainder covers protocol costs.
ShowEach transaction comes with a receipt: your price, your rebate, and what you received.

Who receives the value. Savings from matching go to the subscribers whose orders were matched. Most of the value that outside parties would have taken is paid back to the subscriber whose transaction created it. The remainder goes to the protocol's treasury and covers the service's running costs. Counterseal, Inc. receives none of it.

The signature comes last. That is what makes weaving possible.

In an ordinary wallet the phone signs first. A signed transaction is fixed, so anyone who gathers such transactions can only decide the order they go in. Counterseal signs last, so the form of each transaction can still be chosen.

  1. You confirm an envelopeOn your device you approve what you want and your limits: the most you give, the least you receive, the fee, the deadline, and the ways of carrying it out that you allow.
  2. The transactions are wovenCode on a blockchain gives the gathered transactions their final form: it matches opposite orders, combines transfers, chooses the route for what remains, and chooses who will place the package in a block.
  3. The result is checkedBefore any signature exists, the same code works out what the combined result does to your account and confirms it is inside your envelope.
  4. Only then is it signedThe signed package goes out privately. While it was being combined there was nothing to steal, copy or trade ahead of.
Ordinary walletsOrder-matching servicesCounterseal
What you approveA finished transactionAn order with limits, signed on your phoneAn envelope, confirmed on your device
Who combines the ordersNobody; they can only be put in orderOutside parties, who can see the ordersCode on a public blockchain
Can the form of your transaction still change?NoYes, for token swapsYes, for any way of carrying it out that you allowed
Does something usable by others exist while orders are combined?Yes: the signed transactionYes: the signed orderNo
Who checks the result against what you approvedNobodyA contract on the chainThe signer, before signing, and the chain

What is different. Counterseal is the only wallet architecture we know of in which the weaving of subscribers' transactions is itself performed on a blockchain. Elsewhere, companies or outside parties combine the orders, and a blockchain only checks the result. In Counterseal, whoever combines the transactions cannot see them early, cannot alter them, and cannot sign anything their owners did not approve, because the combiner and the signer are the same public code.

What it depends on.

The number of subscribersOnly matching needs a counterparty: a buyer for every seller. With few subscribers, most trades go to outside markets, and the benefit comes from the other forms of weaving: combining, choosing the route, choosing the block builder and private delivery. All of them are worth more as subscribers join.
Your envelopeWeaving can do anything inside the limits you confirmed and nothing outside them.
A short waitHolding an order to look for a match takes time. Your deadline sets how long.
Your choiceAn account can exclude its transactions from matching, from auctions, or from being combined with other accounts' transactions.

Status. Weaving is designed and is the subject of a pending patent application. It is not yet built. It is a separate application from the wallet, and the wallet works without it.

Weaving is described in more detail in the investor presentation.