pub struct OwnerRotateProposal {Show 14 fields
pub schema: String,
pub proposal_id: String,
pub frontier_id: String,
pub old_owner_actor_id: String,
pub old_owner_pubkey: String,
pub new_owner_actor_id: String,
pub new_owner_pubkey: String,
pub owner_epoch: u64,
pub previous_registry_entry_hash: String,
pub governance_policy_id: String,
pub reason: String,
pub created_at: String,
pub expires_at: String,
pub nonce: String,
}Expand description
Content-addressed proposal binding a specific owner rotation. Governance attestations sign the canonical preimage of this object so they cannot be replayed against a different frontier, owner, key, policy, or registry entry.
Fields§
§schema: String§proposal_id: String§frontier_id: String§old_owner_actor_id: String§old_owner_pubkey: String§new_owner_actor_id: String§new_owner_pubkey: String§owner_epoch: u64§previous_registry_entry_hash: String§governance_policy_id: String§reason: String§created_at: String§expires_at: String§nonce: StringImplementations§
Source§impl OwnerRotateProposal
impl OwnerRotateProposal
Sourcepub fn from_draft(draft: ProposalDraft) -> Result<Self, String>
pub fn from_draft(draft: ProposalDraft) -> Result<Self, String>
Build a proposal from a draft, deriving the content-
addressed vop_* id from canonical bytes of the body.
Sourcepub fn derive_id(&self) -> Result<String, String>
pub fn derive_id(&self) -> Result<String, String>
Compute the content-addressed vop_* id over canonical bytes
of the body with proposal_id zeroed.
Sourcepub fn preimage_bytes(&self) -> Result<Vec<u8>, String>
pub fn preimage_bytes(&self) -> Result<Vec<u8>, String>
Canonical preimage bytes used as the message body for
governance attestation signatures. Excludes proposal_id
so the preimage is computed from semantics alone.
Sourcepub fn preimage_hash(&self) -> Result<String, String>
pub fn preimage_hash(&self) -> Result<String, String>
The sha256:<hex> string used as the
proposal_preimage_hash field in attestation bundles.
Trait Implementations§
Source§impl Clone for OwnerRotateProposal
impl Clone for OwnerRotateProposal
Source§fn clone(&self) -> OwnerRotateProposal
fn clone(&self) -> OwnerRotateProposal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OwnerRotateProposal
impl Debug for OwnerRotateProposal
Source§impl<'de> Deserialize<'de> for OwnerRotateProposal
impl<'de> Deserialize<'de> for OwnerRotateProposal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OwnerRotateProposal
impl PartialEq for OwnerRotateProposal
Source§fn eq(&self, other: &OwnerRotateProposal) -> bool
fn eq(&self, other: &OwnerRotateProposal) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OwnerRotateProposal
impl Serialize for OwnerRotateProposal
impl Eq for OwnerRotateProposal
impl StructuralPartialEq for OwnerRotateProposal
Auto Trait Implementations§
impl Freeze for OwnerRotateProposal
impl RefUnwindSafe for OwnerRotateProposal
impl Send for OwnerRotateProposal
impl Sync for OwnerRotateProposal
impl Unpin for OwnerRotateProposal
impl UnsafeUnpin for OwnerRotateProposal
impl UnwindSafe for OwnerRotateProposal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.