-
Notifications
You must be signed in to change notification settings - Fork 0
Description
So we are going to need some sort of lease pattern, you would often be "known as" some fastn-p2p::PublicKey, and access control systems will manage access to the "known" entities, but you will not want to keep your fastn-p2p::SecretKey at devices, nor it makes any sense to try to share private key as two iroh nodes with same secret key will be conflict, never share secret key, so what we do is create a fixed time, say 30 mins, a lease token (stricter peers can chose to contact "known"ed to revalidate key even sooner, and knowened, lets call it owning identity, can keep a revoke list, so paranoid can reconfirm, and leases can be pulled even sooner than 30 mins). How to make this natural, it must be done at connection level, we already have some on connection handler, it can get the lease object, and we have to add lease object along with secret key to create an outgoing connection.