pub struct BitcoinSegwitGrinder {
pub address_type: BtcAddressType,
}Fields§
§address_type: BtcAddressTypeImplementations§
Trait Implementations§
Source§impl ChainGrinder for BitcoinSegwitGrinder
impl ChainGrinder for BitcoinSegwitGrinder
fn id(&self) -> &'static str
fn display_name(&self) -> &'static str
Source§fn grind_attempt(&self) -> (String, GrindAttempt)
fn grind_attempt(&self) -> (String, GrindAttempt)
Generate address + retain secret material for finalize on match.
Source§fn finalize(&self, attempt: GrindAttempt) -> KeypairResult
fn finalize(&self, attempt: GrindAttempt) -> KeypairResult
Build export formats from a winning attempt (called once on success).
fn build_pattern( &self, prefix: Option<&str>, suffix: Option<&str>, contains: Option<&str>, exact: bool, ) -> Result<Pattern, String>
fn expected_attempts(&self, pattern: &Pattern) -> f64
fn matches(&self, address: &str, pattern: &Pattern) -> bool
fn supports_exact_case(&self) -> bool
fn pattern_hint(&self) -> &'static str
Auto Trait Implementations§
impl Forget for BitcoinSegwitGrinder
impl Freeze for BitcoinSegwitGrinder
impl Move for BitcoinSegwitGrinder
impl RefUnwindSafe for BitcoinSegwitGrinder
impl Send for BitcoinSegwitGrinder
impl Sync for BitcoinSegwitGrinder
impl Unpin for BitcoinSegwitGrinder
impl UnsafeUnpin for BitcoinSegwitGrinder
impl UnwindSafe for BitcoinSegwitGrinder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more