pub struct KeyProvider { /* private fields */ }Implementations§
Source§impl KeyProvider
impl KeyProvider
Sourcepub fn new(options: KeyProviderOptions) -> Self
pub fn new(options: KeyProviderOptions) -> Self
By default, the key provider is not shared
pub fn set_key( &self, identity: &ParticipantIdentity, key_index: i32, key: Vec<u8>, ) -> bool
pub fn ratchet_key( &self, identity: &ParticipantIdentity, key_index: i32, ) -> Option<Vec<u8>>
pub fn get_key( &self, identity: &ParticipantIdentity, key_index: i32, ) -> Option<Vec<u8>>
pub fn set_sif_trailer(&self, trailer: Vec<u8>)
pub fn get_latest_key_index(&self) -> i32
Trait Implementations§
Source§impl Clone for KeyProvider
impl Clone for KeyProvider
Source§fn clone(&self) -> KeyProvider
fn clone(&self) -> KeyProvider
Returns a duplicate of the value. Read more
1.0.0 · 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 KeyProvider
impl RefUnwindSafe for KeyProvider
impl Send for KeyProvider
impl Sync for KeyProvider
impl Unpin for KeyProvider
impl UnsafeUnpin for KeyProvider
impl UnwindSafe for KeyProvider
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