pub struct LegacySig {
    pub sig: Signature,
    pub sighash_type: SighashType,
}Fields§
§sig: SignatureThe underlying ECDSA Signature
sighash_type: SighashTypeThe corresponding hash type
Implementations§
source§impl LegacySig
 
impl LegacySig
sourcepub fn sighash_all(sig: Signature) -> LegacySig
 
pub fn sighash_all(sig: Signature) -> LegacySig
Constructs an ECDSA bitcoin signature for [SighashType::All].
sourcepub fn from_bytes(bytes: &[u8]) -> Result<LegacySig, SigError>
 
pub fn from_bytes(bytes: &[u8]) -> Result<LegacySig, SigError>
Deserializes from slice following the standardness rules for
SighashType.
Trait Implementations§
source§impl PartialEq for LegacySig
 
impl PartialEq for LegacySig
source§impl StrictDecode for LegacySig
 
impl StrictDecode for LegacySig
fn strict_decode(reader: &mut impl TypedRead) -> Result<LegacySig, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
source§impl StrictDumb for LegacySig
 
impl StrictDumb for LegacySig
fn strict_dumb() -> LegacySig
source§impl StrictEncode for LegacySig
 
impl StrictEncode for LegacySig
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
    W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
source§impl StrictStruct for LegacySig
 
impl StrictStruct for LegacySig
const ALL_FIELDS: &'static [&'static str] = _
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for LegacySig
 
impl StrictType for LegacySig
const STRICT_LIB_NAME: &'static str = LIB_NAME_BITCOIN
fn strict_name() -> Option<TypeName>
impl Copy for LegacySig
impl Eq for LegacySig
impl StrictProduct for LegacySig
impl StructuralPartialEq for LegacySig
Auto Trait Implementations§
impl Freeze for LegacySig
impl RefUnwindSafe for LegacySig
impl Send for LegacySig
impl Sync for LegacySig
impl Unpin for LegacySig
impl UnwindSafe for LegacySig
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
source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.