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.
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.
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.
- 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.
- 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.
- 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.
- 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 wallets | Order-matching services | Counterseal | |
|---|---|---|---|
| What you approve | A finished transaction | An order with limits, signed on your phone | An envelope, confirmed on your device |
| Who combines the orders | Nobody; they can only be put in order | Outside parties, who can see the orders | Code on a public blockchain |
| Can the form of your transaction still change? | No | Yes, for token swaps | Yes, for any way of carrying it out that you allowed |
| Does something usable by others exist while orders are combined? | Yes: the signed transaction | Yes: the signed order | No |
| Who checks the result against what you approved | Nobody | A contract on the chain | The 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.
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.