pub struct BitcoinLikeGrinder {
pub id: &'static str,
pub display_name: &'static str,
pub version_byte: u8,
pub lead: &'static str,
pub wallet_hint: &'static str,
pub pattern_hint: &'static str,
}Fields§
§id: &'static str§display_name: &'static str§version_byte: u8§lead: &'static strFirst character every address gets from version_byte.
wallet_hint: &'static str§pattern_hint: &'static strImplementations§
Trait Implementations§
Source§impl ChainGrinder for BitcoinLikeGrinder
impl ChainGrinder for BitcoinLikeGrinder
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 Freeze for BitcoinLikeGrinder
impl RefUnwindSafe for BitcoinLikeGrinder
impl Send for BitcoinLikeGrinder
impl Sync for BitcoinLikeGrinder
impl Unpin for BitcoinLikeGrinder
impl UnsafeUnpin for BitcoinLikeGrinder
impl UnwindSafe for BitcoinLikeGrinder
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