pub struct OwnerKey(/* private fields */);Expand description
Owner signing authority, distinct from the local owner RPC credential and node keys. Deliberately has no Debug or Serialize implementation.
Implementations§
Source§impl OwnerKey
impl OwnerKey
Sourcepub fn bind_legacy_agent(
&self,
state: &VerifiedState,
agent: &str,
node: &str,
now: u64,
) -> Result<SignedLegacyAgentBinding>
pub fn bind_legacy_agent( &self, state: &VerifiedState, agent: &str, node: &str, now: u64, ) -> Result<SignedLegacyAgentBinding>
Trusted owner migration approval. The runtime must retain unique bindings and reject a chat UUID already assigned to a different node.
Source§impl OwnerKey
impl OwnerKey
pub fn generate() -> Result<Self>
pub fn from_secret_bytes(bytes: &[u8; 32]) -> Self
Sourcepub fn expose_secret(&self) -> Zeroizing<[u8; 32]>
pub fn expose_secret(&self) -> Zeroizing<[u8; 32]>
For protected endpoint storage only. Never pass the result to a chat or relay.
pub fn public_key(&self) -> PublicKey
pub fn create_cluster( &self, name: &str, first: &NodeIdentity, node_name: &str, now: u64, ) -> Result<VerifiedState>
Sourcepub fn create_cluster_with_id(
&self,
cluster: (&str, &str),
first: &NodeIdentity,
node_name: &str,
policy: Policy,
now: u64,
) -> Result<VerifiedState>
pub fn create_cluster_with_id( &self, cluster: (&str, &str), first: &NodeIdentity, node_name: &str, policy: Policy, now: u64, ) -> Result<VerifiedState>
Bootstrap a locally owned cluster while preserving an existing local ID. This does not authorize replacing any previously pinned trust anchor.
Trait Implementations§
Source§impl ConfigurationSigner for OwnerKey
impl ConfigurationSigner for OwnerKey
fn sign_revision( &self, previous: &VerifiedState, state: ClusterState, ) -> Result<SignedState>
Auto Trait Implementations§
impl Forget for OwnerKey
impl Freeze for OwnerKey
impl Move for OwnerKey
impl RefUnwindSafe for OwnerKey
impl Send for OwnerKey
impl Sync for OwnerKey
impl Unpin for OwnerKey
impl UnsafeUnpin for OwnerKey
impl UnwindSafe for OwnerKey
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