Module S.AuthorizedKeys

val authorize : ContainerIdentifier.t -> root_secret_key:Signify.SecretKey.t -> Signify.PublicKey.t -> tree -> (Eris.urn * tree) Lwt.t

authorize container_id ~root_secret_key public_key tree adds public_key to the list of authorized keys for container with identifier container_id. The root secret key of the container must be provided with root_secret_key to sign the operation.

val to_list : ContainerIdentifier.t -> tree -> Signify.PublicKey.t list Lwt.t

to_list container_id tree returns a list of known authorized keys for the container.