Repository navigation
[PVM-host] Let privilege holders hand over their role via bless - #375
Merged
Merged
Conversation
- implements Graypaper #558 - lets a non-manager `bless` hand over the assign, designate and registrar roles it holds - returns HUH when a non-manager changes any other privilege - keeps the current value for a register of `2^64 − 1` or an assign service entry of `2^32 − 1` - records a holder's hand-over in `change_by_self`, so the manager's change still wins by `R(o, a, b)` - renames `change_by_bless` to `change_by_manager` - merges the designate and registrar partial states into `OwnedPrivilegePartialState` - relabels the `bless_from_non_manager` vectors, since vector 1 also passes always-accumulate services
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements GP #558.
Deviation
This feature is part of deviation of 0.8.0 jam-test-vectors and fuzz campaign from GP v0.8.0.
blessmanager-only and returnsHUHto any other caller.bless, and states that #519 and #558 will be applied together.bless_from_non_manager)Changes
bless.2^64−1in them,a,v,rororegister keeps the current value, and an assigner entry of2^32−1keeps that core's assigner.OKonly if it changes nothing but the assign, designate or registrar roles it currently holds. It must also leave the manager and the always-accumulate services unchanged. OtherwiseHUH. The order stays panic,HUH,WHO.change_by_selfand the manager's change aschange_by_manager(waschange_by_bless). The merge keepsR(o, a, b), so the manager's change wins, otherwise the holder's own change.DesignateServicePartialStateandRegistrarServicePartialStatewere identical, so they become oneOwnedPrivilegePartialState.host_assignreads the current assigner throughcurrent_of_core.