Skip to content

lease #4

@amitu

Description

@amitu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions