Struct secret_toolkit_viewing_key::ViewingKey
source · pub struct ViewingKey;
Expand description
This is the default implementation of the viewing key store, using the “viewing_keys” storage prefix.
You can use another storage location by implementing ViewingKeyStore
for your own type.
Trait Implementations§
source§impl ViewingKeyStore for ViewingKey
impl ViewingKeyStore for ViewingKey
const STORAGE_KEY: &'static [u8] = b"viewing_keys"
source§fn create(
storage: &mut dyn Storage,
info: &MessageInfo,
env: &Env,
account: &str,
entropy: &[u8]
) -> String
fn create( storage: &mut dyn Storage, info: &MessageInfo, env: &Env, account: &str, entropy: &[u8] ) -> String
Create a new viewing key, save it to storage, and return it. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ViewingKey
impl Send for ViewingKey
impl Sync for ViewingKey
impl Unpin for ViewingKey
impl UnwindSafe for ViewingKey
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