[−][src]Struct btc_transaction_utils::InputSignature
A signature data with the embedded sighash type byte.
Methods
impl InputSignature
[src]
pub fn new(inner: Vec<u8>, sighash_type: SigHashType) -> InputSignature
[src]
Constructs input signature from the given signature data and the given sighash type.
pub fn from_bytes(bytes: Vec<u8>) -> Result<InputSignature, Error>
[src]
Tries to construct input signature from the raw bytes.
pub fn content(&self) -> &[u8]
[src]
Returns the signature content in canonical form.
pub fn sighash_type(&self) -> SigHashType
[src]
Returns a sighash type of the given input signature.
Trait Implementations
impl AsRef<[u8]> for InputSignature
[src]
impl PartialEq<InputSignature> for InputSignature
[src]
fn eq(&self, other: &InputSignature) -> bool
[src]
fn ne(&self, other: &InputSignature) -> bool
[src]
impl From<InputSignature> for Vec<u8>
[src]
fn from(s: InputSignature) -> Self
[src]
impl<'a> From<&'a InputSignature> for InputSignatureRef<'a>
[src]
fn from(s: &'a InputSignature) -> InputSignatureRef
[src]
impl<'a> From<InputSignatureRef<'a>> for InputSignature
[src]
fn from(s: InputSignatureRef<'a>) -> InputSignature
[src]
impl Clone for InputSignature
[src]
fn clone(&self) -> InputSignature
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for InputSignature
[src]
Auto Trait Implementations
impl Send for InputSignature
impl Sync for InputSignature
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToBase32 for T where
T: AsRef<[u8]>,
T: AsRef<[u8]>,
impl<'f, T> CheckBase32 for T where
T: AsRef<[u8]>,
T: AsRef<[u8]>,
type Err = Error
Error type if conversion fails
fn check_base32(self) -> Result<Vec<u5>, <T as CheckBase32<Vec<u5>>>::Err>
impl<T> ToHex for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,