[−][src]Struct grin_wallet_impls::LMDBBackend
Fields
keychain: Option<K>
Keychain
master_checksum: Box<Option<Blake2bResult>>
Check value for XORed keychain seed
Methods
impl<'ck, C, K> LMDBBackend<'ck, C, K> where
C: NodeClient + 'ck,
K: Keychain + 'ck,
[src]
C: NodeClient + 'ck,
K: Keychain + 'ck,
pub fn new(data_file_dir: &str, n_client: C) -> Result<Self, Error>
[src]
pub fn exists(data_file_dir: &str) -> bool
[src]
Just test to see if database files exist in the current directory. If so, use a DB backend for all operations
Trait Implementations
impl<'ck, C, K> WalletBackend<'ck, C, K> for LMDBBackend<'ck, C, K> where
C: NodeClient + 'ck,
K: Keychain + 'ck,
[src]
C: NodeClient + 'ck,
K: Keychain + 'ck,
fn set_keychain(
&mut self,
k: Box<K>,
mask: bool,
use_test_rng: bool
) -> Result<Option<SecretKey>, Error>
[src]
&mut self,
k: Box<K>,
mask: bool,
use_test_rng: bool
) -> Result<Option<SecretKey>, Error>
Set the keychain, which should already have been opened
fn close(&mut self) -> Result<(), Error>
[src]
Close wallet
fn keychain(&self, mask: Option<&SecretKey>) -> Result<K, Error>
[src]
Return the keychain being used, cloned with XORed token value for temporary use
fn w2n_client(&mut self) -> &mut C
[src]
Return the node client being used
fn calc_commit_for_cache(
&mut self,
keychain_mask: Option<&SecretKey>,
amount: u64,
id: &Identifier
) -> Result<Option<String>, Error>
[src]
&mut self,
keychain_mask: Option<&SecretKey>,
amount: u64,
id: &Identifier
) -> Result<Option<String>, Error>
return the version of the commit for caching
fn set_parent_key_id_by_name(&mut self, label: &str) -> Result<(), Error>
[src]
Set parent path by account name
fn set_parent_key_id(&mut self, id: Identifier)
[src]
set parent path
fn parent_key_id(&mut self) -> Identifier
[src]
fn get(
&self,
id: &Identifier,
mmr_index: &Option<u64>
) -> Result<OutputData, Error>
[src]
&self,
id: &Identifier,
mmr_index: &Option<u64>
) -> Result<OutputData, Error>
fn iter<'a>(&'a self) -> Box<dyn Iterator<Item = OutputData> + 'a>
[src]
fn get_tx_log_entry(&self, u: &Uuid) -> Result<Option<TxLogEntry>, Error>
[src]
fn tx_log_iter<'a>(&'a self) -> Box<dyn Iterator<Item = TxLogEntry> + 'a>
[src]
fn get_private_context(
&mut self,
keychain_mask: Option<&SecretKey>,
slate_id: &[u8],
participant_id: usize
) -> Result<Context, Error>
[src]
&mut self,
keychain_mask: Option<&SecretKey>,
slate_id: &[u8],
participant_id: usize
) -> Result<Context, Error>
fn acct_path_iter<'a>(
&'a self
) -> Box<dyn Iterator<Item = AcctPathMapping> + 'a>
[src]
&'a self
) -> Box<dyn Iterator<Item = AcctPathMapping> + 'a>
fn get_acct_path(&self, label: String) -> Result<Option<AcctPathMapping>, Error>
[src]
fn store_tx(&self, uuid: &str, tx: &Transaction) -> Result<(), Error>
[src]
fn get_stored_tx(
&self,
entry: &TxLogEntry
) -> Result<Option<Transaction>, Error>
[src]
&self,
entry: &TxLogEntry
) -> Result<Option<Transaction>, Error>
fn batch<'a>(
&'a mut self,
keychain_mask: Option<&SecretKey>
) -> Result<Box<dyn WalletOutputBatch<K> + 'a>, Error>
[src]
&'a mut self,
keychain_mask: Option<&SecretKey>
) -> Result<Box<dyn WalletOutputBatch<K> + 'a>, Error>
fn batch_no_mask<'a>(
&'a mut self
) -> Result<Box<dyn WalletOutputBatch<K> + 'a>, Error>
[src]
&'a mut self
) -> Result<Box<dyn WalletOutputBatch<K> + 'a>, Error>
fn current_child_index<'a>(
&mut self,
parent_key_id: &Identifier
) -> Result<u32, Error>
[src]
&mut self,
parent_key_id: &Identifier
) -> Result<u32, Error>
fn next_child<'a>(
&mut self,
keychain_mask: Option<&SecretKey>
) -> Result<Identifier, Error>
[src]
&mut self,
keychain_mask: Option<&SecretKey>
) -> Result<Identifier, Error>
fn last_confirmed_height<'a>(&mut self) -> Result<u64, Error>
[src]
fn last_scanned_block<'a>(&mut self) -> Result<ScannedBlockInfo, Error>
[src]
fn init_status<'a>(&mut self) -> Result<WalletInitStatus, Error>
[src]
Auto Trait Implementations
impl<'ck, C, K> !RefUnwindSafe for LMDBBackend<'ck, C, K>
impl<'ck, C, K> Send for LMDBBackend<'ck, C, K>
impl<'ck, C, K> Sync for LMDBBackend<'ck, C, K>
impl<'ck, C, K> Unpin for LMDBBackend<'ck, C, K> where
C: Unpin,
K: Unpin,
C: Unpin,
K: Unpin,
impl<'ck, C, K> !UnwindSafe for LMDBBackend<'ck, C, K>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,