Trait iapyx::qr::SecretFromQrCode
source · pub trait SecretFromQrCode {
// Required methods
fn from_file<P: AsRef<Path>>(
qr: P,
pin_read_mode: PinReadMode
) -> Result<Secret, Error>;
fn from_bytes(
bytes: Vec<u8>,
pin_read_mode: PinReadMode
) -> Result<Secret, Error>;
fn to_bech32(self) -> Result<String, Error>;
fn from_payload_file<P: AsRef<Path>>(
payload_file: P,
pin_read_mode: PinReadMode
) -> Result<Secret, Error>;
}
Expand description
Trait for converting qr code into secret key