Struct lightning_signer::persist::ExternalPersistHelper
source · pub struct ExternalPersistHelper { /* private fields */ }Expand description
An external persister helper
Implementations§
source§impl ExternalPersistHelper
impl ExternalPersistHelper
sourcepub fn new_nonce(&mut self, entropy_source: &dyn EntropySource) -> [u8; 32]
pub fn new_nonce(&mut self, entropy_source: &dyn EntropySource) -> [u8; 32]
Generate and store a new nonce
sourcepub fn client_hmac(&self, kvs: &Mutations) -> [u8; 32]
pub fn client_hmac(&self, kvs: &Mutations) -> [u8; 32]
Generate a client HMAC - this proves the client constructed the data
sourcepub fn server_hmac(&self, kvs: &Mutations) -> [u8; 32]
pub fn server_hmac(&self, kvs: &Mutations) -> [u8; 32]
Generate a server HMAC - this proves the server saw and persisted the data for a put request.
Trait Implementations§
source§impl Clone for ExternalPersistHelper
impl Clone for ExternalPersistHelper
source§fn clone(&self) -> ExternalPersistHelper
fn clone(&self) -> ExternalPersistHelper
Returns a copy 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 RefUnwindSafe for ExternalPersistHelper
impl Send for ExternalPersistHelper
impl Sync for ExternalPersistHelper
impl Unpin for ExternalPersistHelper
impl UnwindSafe for ExternalPersistHelper
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