pub struct PubKeyInfo {
pub compressed: bool,
pub pubkey_type: PubkeyType,
}
Expand description
Information about a Pubkey
Fields§
§compressed: bool
If the pubkey is compressed. Only ECDSA pubkey can be uncompressed.
pubkey_type: PubkeyType
Implementations§
Source§impl PubKeyInfo
impl PubKeyInfo
pub fn from_instruction_ecdsa( instruction: &Instruction<'_>, ) -> Option<PubKeyInfo>
pub fn from_u8_slice_ecdsa(bytes: &[u8]) -> Option<PubKeyInfo>
pub fn from_input(input: &TxIn) -> Result<Vec<PubKeyInfo>, InputError>
pub fn from_output(output: &TxOut) -> Result<Vec<PubKeyInfo>, OutputError>
Trait Implementations§
Source§impl Clone for PubKeyInfo
impl Clone for PubKeyInfo
Source§fn clone(&self) -> PubKeyInfo
fn clone(&self) -> PubKeyInfo
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 PubKeyInfo
impl Debug for PubKeyInfo
Source§impl PartialEq for PubKeyInfo
impl PartialEq for PubKeyInfo
impl Eq for PubKeyInfo
impl StructuralPartialEq for PubKeyInfo
Auto Trait Implementations§
impl Freeze for PubKeyInfo
impl RefUnwindSafe for PubKeyInfo
impl Send for PubKeyInfo
impl Sync for PubKeyInfo
impl Unpin for PubKeyInfo
impl UnwindSafe for PubKeyInfo
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