Struct monero::blockdata::transaction::TransactionPrefix [−][src]
The part of a transaction that contains all the data except signatures.
Can generate the transaction prefix hash with tx_prefix.hash()
Fields
version: VarInt
Transaction format version
unlock_time: VarInt
UNIX timestamp
inputs: Vec<TxIn>
Array of inputs
outputs: Vec<TxOut>
Array of outputs
extra: ExtraField
Additional data associated with a transaction
Implementations
impl TransactionPrefix
[src]
pub fn nb_inputs(&self) -> usize
[src]
Return the number of transaction’s inputs
pub fn nb_outputs(&self) -> usize
[src]
Return the number of transaction’s outputs
pub fn tx_pubkey(&self) -> Option<PublicKey>
[src]
Return the transaction public key present in extra field
pub fn tx_additional_pubkeys(&self) -> Option<Vec<PublicKey>>
[src]
Return the additional public keys present in extra field
pub fn check_outputs(
&self,
pair: &ViewPair,
major: Range<u32>,
minor: Range<u32>
) -> Result<Vec<OwnedTxOut<'_>>, Error>
[src]
&self,
pair: &ViewPair,
major: Range<u32>,
minor: Range<u32>
) -> Result<Vec<OwnedTxOut<'_>>, Error>
Iterate over transaction outputs and find outputs related to view pair
Trait Implementations
impl Clone for TransactionPrefix
[src]
fn clone(&self) -> TransactionPrefix
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TransactionPrefix
[src]
impl Decodable for TransactionPrefix
[src]
fn consensus_decode<D: Read>(d: &mut D) -> Result<TransactionPrefix, Error>
[src]
impl Default for TransactionPrefix
[src]
fn default() -> TransactionPrefix
[src]
impl<'de> Deserialize<'de> for TransactionPrefix
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for TransactionPrefix
[src]
impl Encodable for TransactionPrefix
[src]
impl Hashable for TransactionPrefix
[src]
fn hash(&self) -> Hash
[src]
fn hash_to_scalar(&self) -> PrivateKey
[src]
impl Serialize for TransactionPrefix
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StrictDecode for TransactionPrefix
[src]
This is supported on crate feature
strict_encoding_support
only.fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
[src]
pub fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
[src]
impl StrictEncode for TransactionPrefix
[src]
This is supported on crate feature
strict_encoding_support
only.Auto Trait Implementations
impl RefUnwindSafe for TransactionPrefix
impl Send for TransactionPrefix
impl Sync for TransactionPrefix
impl Unpin for TransactionPrefix
impl UnwindSafe for TransactionPrefix
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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>,