parent
845daaee16
commit
2aac5a1f81
|
@ -433,7 +433,7 @@ impl TransactionExt for Transaction {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Iterates over transaction outputs and for each output yields the length of the scriptPubkey.
|
/// Iterates over transaction outputs and for each output yields the length of the scriptPubkey.
|
||||||
// This exists to hardcode the type of the closure crated by `map`.
|
// This exists to hardcode the type of the closure created by `map`.
|
||||||
pub struct TxOutToScriptPubkeyLengthIter<'a> {
|
pub struct TxOutToScriptPubkeyLengthIter<'a> {
|
||||||
inner: core::slice::Iter<'a, TxOut>,
|
inner: core::slice::Iter<'a, TxOut>,
|
||||||
}
|
}
|
||||||
|
|
|
@ -997,7 +997,7 @@ impl fmt::Display for FromWifError {
|
||||||
InvalidBase58PayloadLength(ref e) =>
|
InvalidBase58PayloadLength(ref e) =>
|
||||||
write_err!(f, "decoded base58 data was an invalid length"; e),
|
write_err!(f, "decoded base58 data was an invalid length"; e),
|
||||||
InvalidAddressVersion(ref e) =>
|
InvalidAddressVersion(ref e) =>
|
||||||
write_err!(f, "decoded base58 data contained an invalid address version btye"; e),
|
write_err!(f, "decoded base58 data contained an invalid address version byte"; e),
|
||||||
Secp256k1(ref e) => write_err!(f, "private key validation failed"; e),
|
Secp256k1(ref e) => write_err!(f, "private key validation failed"; e),
|
||||||
InvalidWifCompressionFlag(ref e) => write_err!(f, "invalid WIF compression flag";e),
|
InvalidWifCompressionFlag(ref e) => write_err!(f, "invalid WIF compression flag";e),
|
||||||
}
|
}
|
||||||
|
|
|
@ -193,7 +193,7 @@ macro_rules! hash_newtype {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Implements string functions using hex for a new type crated with [`crate::hash_newtype`] macro.
|
/// Implements string functions using hex for a new type created with [`crate::hash_newtype`] macro.
|
||||||
///
|
///
|
||||||
/// Implements:
|
/// Implements:
|
||||||
///
|
///
|
||||||
|
@ -210,7 +210,7 @@ macro_rules! impl_hex_for_newtype {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Implements `fmt::Debug` using hex for a new type crated with [`crate::hash_newtype`] macro.
|
/// Implements `fmt::Debug` using hex for a new type created with [`crate::hash_newtype`] macro.
|
||||||
///
|
///
|
||||||
/// This is provided in case you do not want to use the `hex` feature.
|
/// This is provided in case you do not want to use the `hex` feature.
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
|
|
Loading…
Reference in New Issue