Struct btc_transaction_utils::InputSignature
[−]
[src]
pub struct 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(
ctx: &Secp256k1,
bytes: Vec<u8>
) -> Result<InputSignature, Error>
[src]
ctx: &Secp256k1,
bytes: Vec<u8>
) -> Result<InputSignature, Error>
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 Debug for InputSignature
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for InputSignature
[src]
fn clone(&self) -> InputSignature
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for InputSignature
[src]
fn eq(&self, __arg_0: &InputSignature) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &InputSignature) -> bool
[src]
This method tests for !=
.
impl From<InputSignature> for Vec<u8>
[src]
fn from(s: InputSignature) -> Self
[src]
Performs the conversion.
impl AsRef<[u8]> for InputSignature
[src]
impl<'a> From<&'a InputSignature> for InputSignatureRef<'a>
[src]
fn from(s: &'a InputSignature) -> InputSignatureRef
[src]
Performs the conversion.
impl<'a> From<InputSignatureRef<'a>> for InputSignature
[src]
fn from(s: InputSignatureRef<'a>) -> InputSignature
[src]
Performs the conversion.