[−][src]Enum bitcoin::blockdata::transaction::SigHashType
Hashtype of a transaction, encoded in the last byte of a signature Fixed values so they can be casted as integer types for encoding
Variants
0x1: Sign all outputs
0x2: Sign no outputs --- anyone can choose the destination
0x3: Sign the output whose index matches this input's index. If none exists,
sign the hash 0000000000000000000000000000000000000000000000000000000000000001
.
(This rule is probably an unintentional C++ism, but it's consensus so we have
to follow it.)
0x81: Sign all outputs but only this input
0x82: Sign no outputs and only this input
0x83: Sign one output and only this input (see Single
for what "one output" means)
Implementations
impl SigHashType
[src]
pub fn from_u32(n: u32) -> SigHashType
[src]
Reads a 4-byte uint32 as a sighash type
pub fn as_u32(self) -> u32
[src]
Converts to a u32
Trait Implementations
impl Clone for SigHashType
[src]
pub fn clone(&self) -> SigHashType
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SigHashType
[src]
impl Debug for SigHashType
[src]
impl Deserialize for SigHashType
[src]
impl Display for SigHashType
[src]
impl Eq for SigHashType
[src]
impl FromStr for SigHashType
[src]
type Err = String
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl PartialEq<SigHashType> for SigHashType
[src]
pub fn eq(&self, other: &SigHashType) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for SigHashType
[src]
impl StructuralEq for SigHashType
[src]
impl StructuralPartialEq for SigHashType
[src]
Auto Trait Implementations
impl RefUnwindSafe for SigHashType
[src]
impl Send for SigHashType
[src]
impl Sync for SigHashType
[src]
impl Unpin for SigHashType
[src]
impl UnwindSafe for SigHashType
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,