pub struct Codex32String(/* private fields */);Expand description
A codex32 string, containing a valid checksum
Implementations§
Source§impl Codex32String
impl Codex32String
Sourcepub fn from_unchecksummed_string(s: String) -> Result<Self, Error>
pub fn from_unchecksummed_string(s: String) -> Result<Self, Error>
Construct a codex32 string from a not-yet-checksummed string
Sourcepub fn from_string(s: String) -> Result<Self, Error>
pub fn from_string(s: String) -> Result<Self, Error>
Construct a codex32 string from an already-checksummed string
Sourcepub fn interpolate_at(
shares: &[Codex32String],
target: Fe,
) -> Result<Codex32String, Error>
pub fn interpolate_at( shares: &[Codex32String], target: Fe, ) -> Result<Codex32String, Error>
Interpolate a set of shares to derive a share at a specific index.
Using the index Fe::S will recover the master seed.
Trait Implementations§
Source§impl Clone for Codex32String
impl Clone for Codex32String
Source§fn clone(&self) -> Codex32String
fn clone(&self) -> Codex32String
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Codex32String
impl Debug for Codex32String
Source§impl Display for Codex32String
impl Display for Codex32String
Source§impl Hash for Codex32String
impl Hash for Codex32String
Source§impl PartialEq for Codex32String
impl PartialEq for Codex32String
impl Eq for Codex32String
impl StructuralPartialEq for Codex32String
Auto Trait Implementations§
impl Freeze for Codex32String
impl RefUnwindSafe for Codex32String
impl Send for Codex32String
impl Sync for Codex32String
impl Unpin for Codex32String
impl UnwindSafe for Codex32String
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