pub struct ElectrumWalletFile { /* private fields */ }
Expand description
Representation of an electrum wallet file. Has custom serialization and de-serialization routines to more accurately represent what we need, and the electrum wallet file format.
Implementations
sourceimpl ElectrumWalletFile
impl ElectrumWalletFile
sourcepub fn new(keystores: &[Keystore], min_signatures: u8) -> Result<Self, String>
pub fn new(keystores: &[Keystore], min_signatures: u8) -> Result<Self, String>
Construct a wallet
sourcepub fn wallet_type(&self) -> &WalletType
pub fn wallet_type(&self) -> &WalletType
Getter for wallet_type
sourcepub fn keystores(&self) -> &Vec<Keystore>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
pub fn keystores(&self) -> &Vec<Keystore>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Getter for keystores
sourcepub fn to_file(&self, wallet_file: &Path) -> Result<(), String>
pub fn to_file(&self, wallet_file: &Path) -> Result<(), String>
Write to an electrum wallet file
sourcepub fn from_descriptor(desc: &str) -> Result<Self, String>
pub fn from_descriptor(desc: &str) -> Result<Self, String>
Construct from an output descriptor. Only the external descriptor is needed, the change descriptor is implied.
Trait Implementations
sourceimpl Clone for ElectrumWalletFile
impl Clone for ElectrumWalletFile
sourcefn clone(&self) -> ElectrumWalletFile
fn clone(&self) -> ElectrumWalletFile
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ElectrumWalletFile
impl Debug for ElectrumWalletFile
sourceimpl<'de> Deserialize<'de> for ElectrumWalletFile
impl<'de> Deserialize<'de> for ElectrumWalletFile
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ElectrumWalletFile> for ElectrumWalletFile
impl PartialEq<ElectrumWalletFile> for ElectrumWalletFile
sourcefn eq(&self, other: &ElectrumWalletFile) -> bool
fn eq(&self, other: &ElectrumWalletFile) -> bool
sourceimpl Serialize for ElectrumWalletFile
impl Serialize for ElectrumWalletFile
impl StructuralPartialEq for ElectrumWalletFile
Auto Trait Implementations
impl RefUnwindSafe for ElectrumWalletFile
impl Send for ElectrumWalletFile
impl Sync for ElectrumWalletFile
impl Unpin for ElectrumWalletFile
impl UnwindSafe for ElectrumWalletFile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more