3. Sessions
a program, its proof, its relay
A session is a public account that nobody owns. A proof moves part of one of your notes into it, with a program of up to eight orders, and when the program is done the session comes home as a fresh note of yours. The chain sees the session. It does not see that it is yours.
3.1.The Note
The note that pays. Open your notes on page 2 first; this page reads the same tab.
3.2.The Program
- the pool nownil
- the first order receives at leastnil
3.3.The Cap
What the session reserves from the note: what its orders spend, the relayer's fee, and the keepers' pay for every later fire and the close. Whatever is not used comes home with the session. The rest of the note stays hidden as change, with the cover it has earned settled into it.
- ETH reservednil
- SESSION reservednil
- change, still hiddennil
3.4.Expiry and Relay
A session MUST close within 30 days. Whoever submits the proof MAY be repaid from the session, up to the fee cap the proof names, and never more than its gas times the base fee plus 1 gwei.
- expiresnil
- relayer's fee capnil
- keepers' pay reservednil
3.5.The Proof
Made in this browser, in a Web Worker: about 3 seconds in a browser, and the line below shows this one's timing. Five steps: the tree, then the wires, the permutation, the quotient and the openings.
3.6.Send It
From a wallet that is not the depositing one, or as a relay ticket for anyone to submit. A session sent from the depositing wallet is that wallet's in public. To send from another wallet, switch accounts in your wallet now: the proof stays on this page.
LinkedThe connected wallet is the one that made this note. Sent from it, this session is yours in public.