pub struct RootCapRefreshV0 {
pub refresh_ref: ObjectRef,
pub write_cap: Option<RepoWriteCapSecret>,
}
Expand description
RootCapRefresh. renew the capabilities of the root branch, or all transactional branches and the root_branch.
Each branch forms its separate chain for that purpose. can refresh the topic ids, or not ACKS: current HEADS in the branch at the moment of refresh. DEPS to the previous RootBranch commit that will be superseded. the chain on the root_branch is : RootCapRefresh -> RemovePermission/RemoveMember -> UpdateRootBranch -> optional AddPermission(s) -> AddBranch x for each branch and on each transactional branch: BranchCapRefresh -> UpdateBranch always eventually followed at the end of each chain by a SyncSignature (each branch its own). The key used in EventV0 to encrypt the key for that SyncSignature commit is the refresh_secret (RefreshSecretV0.0).
On each new topic, the first commit (singleton) is a BranchCapRefreshed that contains internal references to the old branch (but no DEPS or ACKS).
Fields§
§refresh_ref: ObjectRef
§write_cap: Option<RepoWriteCapSecret>
write cap encrypted with the refresh_secret RefreshSecretV0.1 only allowed if the user has RefreshWriteCap permission
Trait Implementations§
Source§impl Clone for RootCapRefreshV0
impl Clone for RootCapRefreshV0
Source§fn clone(&self) -> RootCapRefreshV0
fn clone(&self) -> RootCapRefreshV0
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more