Struct monero::blockdata::transaction::Transaction [−][src]
A full transaction containing the prefix and all signing data
Fields
prefix: TransactionPrefix
The transaction prefix
signatures: Vec<Vec<Signature>>
The signatures
rct_signatures: RctSig
RingCT signatures
Implementations
impl Transaction
[src]
pub fn prefix(&self) -> &TransactionPrefix
[src]
Return the transaction prefix
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
pub fn get_amount<'a>(
&self,
view_pair: &ViewPair,
out: &OwnedTxOut<'_>
) -> Result<u64, RecoveryError>
[src]
&self,
view_pair: &ViewPair,
out: &OwnedTxOut<'_>
) -> Result<u64, RecoveryError>
Calculate an output’s amount
Trait Implementations
impl Clone for Transaction
[src]
fn clone(&self) -> Transaction
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Transaction
[src]
impl Decodable for Transaction
[src]
fn consensus_decode<D: Read>(d: &mut D) -> Result<Transaction, Error>
[src]
impl Default for Transaction
[src]
fn default() -> Transaction
[src]
impl<'de> Deserialize<'de> for Transaction
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for Transaction
[src]
impl Encodable for Transaction
[src]
impl Hashable for Transaction
[src]
fn hash(&self) -> Hash
[src]
fn hash_to_scalar(&self) -> PrivateKey
[src]
impl Serialize for Transaction
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StrictDecode for Transaction
[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 Transaction
[src]
This is supported on crate feature
strict_encoding_support
only.Auto Trait Implementations
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
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>,