Struct miden_client::auth::StoreAuthenticator
source · pub struct StoreAuthenticator<R, S> { /* private fields */ }Expand description
Represents an authenticator based on a Store
Implementations§
source§impl<R: Rng, S: Store> StoreAuthenticator<R, S>
impl<R: Rng, S: Store> StoreAuthenticator<R, S>
pub fn new_with_rng(store: Rc<S>, rng: R) -> Self
Trait Implementations§
source§impl<R: Rng, S: Store> TransactionAuthenticator for StoreAuthenticator<R, S>
impl<R: Rng, S: Store> TransactionAuthenticator for StoreAuthenticator<R, S>
source§fn get_signature(
&self,
pub_key: Word,
message: Word,
_account_delta: &AccountDelta,
) -> Result<Vec<Felt>, AuthenticationError>
fn get_signature( &self, pub_key: Word, message: Word, _account_delta: &AccountDelta, ) -> Result<Vec<Felt>, AuthenticationError>
Gets a signature over a message, given a public key.
The pub key should correspond to one of the keys tracked by the authenticator’s store.
§Errors
If the public key is not found in the store, AuthenticationError::UnknownKey is returned.
Auto Trait Implementations§
impl<R, S> !Freeze for StoreAuthenticator<R, S>
impl<R, S> !RefUnwindSafe for StoreAuthenticator<R, S>
impl<R, S> !Send for StoreAuthenticator<R, S>
impl<R, S> !Sync for StoreAuthenticator<R, S>
impl<R, S> Unpin for StoreAuthenticator<R, S>where
R: Unpin,
impl<R, S> UnwindSafe for StoreAuthenticator<R, S>where
S: RefUnwindSafe,
R: UnwindSafe,
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