Struct btc_transaction_utils::InputSignature [−][src]
pub struct InputSignature(_);
A signature data with the embedded sighash type byte.
Methods
impl InputSignature
[src]
impl InputSignature
pub fn new(inner: Vec<u8>, sighash_type: SigHashType) -> InputSignature
[src]
pub fn new(inner: Vec<u8>, sighash_type: SigHashType) -> InputSignature
Constructs input signature from the given signature data and the given sighash type.
pub fn from_bytes<C>(
ctx: &Secp256k1<C>,
bytes: Vec<u8>
) -> Result<InputSignature, Error>
[src]
pub fn from_bytes<C>(
ctx: &Secp256k1<C>,
bytes: Vec<u8>
) -> Result<InputSignature, Error>
Tries to construct input signature from the raw bytes.
pub fn content(&self) -> &[u8]
[src]
pub fn content(&self) -> &[u8]
Returns the signature content in canonical form.
pub fn sighash_type(&self) -> SigHashType
[src]
pub fn sighash_type(&self) -> SigHashType
Returns a sighash type of the given input signature.
Trait Implementations
impl Debug for InputSignature
[src]
impl Debug for InputSignature
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for InputSignature
[src]
impl Clone for InputSignature
fn clone(&self) -> InputSignature
[src]
fn clone(&self) -> InputSignature
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for InputSignature
[src]
impl PartialEq for InputSignature
fn eq(&self, other: &InputSignature) -> bool
[src]
fn eq(&self, other: &InputSignature) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &InputSignature) -> bool
[src]
fn ne(&self, other: &InputSignature) -> bool
This method tests for !=
.
impl From<InputSignature> for Vec<u8>
[src]
impl From<InputSignature> for Vec<u8>
fn from(s: InputSignature) -> Self
[src]
fn from(s: InputSignature) -> Self
Performs the conversion.
impl AsRef<[u8]> for InputSignature
[src]
impl AsRef<[u8]> for InputSignature
impl<'a> From<&'a InputSignature> for InputSignatureRef<'a>
[src]
impl<'a> From<&'a InputSignature> for InputSignatureRef<'a>
fn from(s: &'a InputSignature) -> InputSignatureRef
[src]
fn from(s: &'a InputSignature) -> InputSignatureRef
Performs the conversion.
impl<'a> From<InputSignatureRef<'a>> for InputSignature
[src]
impl<'a> From<InputSignatureRef<'a>> for InputSignature
fn from(s: InputSignatureRef<'a>) -> InputSignature
[src]
fn from(s: InputSignatureRef<'a>) -> InputSignature
Performs the conversion.
Auto Trait Implementations
impl Send for InputSignature
impl Send for InputSignature
impl Sync for InputSignature
impl Sync for InputSignature