jemc
released this
12 Mar 21:30
Add capability-based security to protect all `TCP` actions.
Now we have the following hierarchy:
- `Env.Root`
- `TCP.Connect.Auth`
- `TCP.Connect.Ticket`
- `TCP.Listen.Auth`
- `TCP.Listen.Ticket`
Additionally we have `TCP.Accept.Ticket` which can only come from
an actual pending connection trying to connect to a TCP listener.
Attenuating through the hierarchy to create a connect ticket looks like this:
```savi
TCP.auth(env.root).connect.to(host, port)
```
Attentuating through the hierarchy to create a listen ticket looks like this:
```savi
TCP.auth(env.root).listen.on(host, port)
```