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) -> RestreamerKeys
pub fn from_seeds(c2_seed: [u8; 32], hq_public: [u8; 32]) -> RestreamerKeys
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§
Source§impl Clone for RestreamerKeys
impl Clone for RestreamerKeys
Source§fn clone(&self) -> RestreamerKeys
fn clone(&self) -> RestreamerKeys
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 moreAuto 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