pub struct RestreamerKeys { /* private fields */ }Expand description
Key material C2 holds and relays.
Implementations§
Source§impl RestreamerKeys
impl RestreamerKeys
pub fn generate(hq_recipient_public: PublicKeyBytes) -> Self
pub fn from_seeds(c2_seed: [u8; 32], hq_public: [u8; 32]) -> Self
pub fn upstream_public_keys(&self) -> (PublicKeyBytes, PublicKeyBytes)
pub fn rotate_hq_recipient(&mut self, new_public: PublicKeyBytes)
pub fn end_rotation_window(&mut self)
pub fn hq_recipient_public(&self) -> PublicKeyBytes
pub fn previous_hq_recipient_public(&self) -> Option<PublicKeyBytes>
pub fn c2_public(&self) -> PublicKeyBytes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RestreamerKeys
impl RefUnwindSafe for RestreamerKeys
impl Send for RestreamerKeys
impl Sync for RestreamerKeys
impl Unpin for RestreamerKeys
impl UnsafeUnpin for RestreamerKeys
impl UnwindSafe for RestreamerKeys
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