pub struct SplitKeyGrinder { /* private fields */ }Expand description
Bob-side grinder: searches sk_b so address(base_pk + sk_b·G) matches.
Implementations§
Source§impl SplitKeyGrinder
impl SplitKeyGrinder
pub fn new( base_pubkey_hex: &str, coin: BitcoinLikeGrinder, ) -> Result<Self, String>
pub fn coin(&self) -> &BitcoinLikeGrinder
Trait Implementations§
Source§impl ChainGrinder for SplitKeyGrinder
impl ChainGrinder for SplitKeyGrinder
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 SplitKeyGrinder
impl Freeze for SplitKeyGrinder
impl Move for SplitKeyGrinder
impl RefUnwindSafe for SplitKeyGrinder
impl Send for SplitKeyGrinder
impl Sync for SplitKeyGrinder
impl Unpin for SplitKeyGrinder
impl UnsafeUnpin for SplitKeyGrinder
impl UnwindSafe for SplitKeyGrinder
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