Skip to content

[PVM-host] Let privilege holders hand over their role via bless - #375

Merged
0xjunha merged 1 commit into
mainfrom
bless-delegation
Nov 18, 2026
Merged

0xjunha merged 1 commit into
mainfrom
bless-delegation

Conversation

@0xjunha

@0xjunha 0xjunha commented Nov 18, 2026

Copy link
Copy Markdown
Member

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.

  • GP v0.8.0 (GP #519) makes bless manager-only and returns HUH to any other caller.
  • The 0.8.0 conformance material does not refuse a non-manager bless, and states that #519 and #558 will be applied together.

Changes

  • Keep-current values in bless. 2^64−1 in the m, a, v, r or o register keeps the current value, and an assigner entry of 2^32−1 keeps that core's assigner.
  • A non-manager gets OK only 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. Otherwise HUH. The order stays panic, HUH, WHO.
  • A hand-over is recorded as change_by_self and the manager's change as change_by_manager (was change_by_bless). The merge keeps R(o, a, b), so the manager's change wins, otherwise the holder's own change.
  • DesignateServicePartialState and RegistrarServicePartialState were identical, so they become one OwnedPrivilegePartialState.
  • host_assign reads the current assigner through current_of_core.

- 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
@0xjunha
0xjunha merged commit 437c083 into main Nov 18, 2026
1 check passed
@0xjunha
0xjunha deleted the bless-delegation branch November 18, 2026 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant