Struct monero::blockdata::transaction::Transaction [−][src]
pub struct Transaction { pub prefix: TransactionPrefix, pub signatures: Vec<Vec<Signature>>, pub rct_signatures: RctSig, }
Expand description
A full transaction containing the prefix and all the signing data.
As transaction implements hash::Hashable
it is possible to generate the transaction hash
with tx.hash()
.
Fields
prefix: TransactionPrefix
The transaction prefix.
signatures: Vec<Vec<Signature>>
The signatures.
rct_signatures: RctSig
The RingCT signatures.
Implementations
impl Transaction
[src]
impl Transaction
[src]pub fn prefix(&self) -> &TransactionPrefix
[src]
pub fn prefix(&self) -> &TransactionPrefix
[src]Return the transaction prefix.
pub fn nb_outputs(&self) -> usize
[src]
pub fn nb_outputs(&self) -> usize
[src]Return the number of transaction’s outputs.
pub fn tx_pubkey(&self) -> Option<PublicKey>
[src]
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]
pub fn tx_additional_pubkeys(&self) -> Option<Vec<PublicKey>>
[src]Return the additional public keys present in extra field.
Trait Implementations
impl Clone for Transaction
[src]
impl Clone for Transaction
[src]fn clone(&self) -> Transaction
[src]
fn clone(&self) -> Transaction
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for Transaction
[src]
impl Debug for Transaction
[src]impl Decodable for Transaction
[src]
impl Decodable for Transaction
[src]fn consensus_decode<D: Read>(d: &mut D) -> Result<Transaction, Error>
[src]
fn consensus_decode<D: Read>(d: &mut D) -> Result<Transaction, Error>
[src]Decode an object with a well-defined format.
impl Default for Transaction
[src]
impl Default for Transaction
[src]fn default() -> Transaction
[src]
fn default() -> Transaction
[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for Transaction
[src]
impl<'de> Deserialize<'de> for Transaction
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Display for Transaction
[src]
impl Display for Transaction
[src]impl Encodable for Transaction
[src]
impl Encodable for Transaction
[src]impl Hashable for Transaction
[src]
impl Hashable for Transaction
[src]fn hash_to_scalar(&self) -> PrivateKey
[src]
fn hash_to_scalar(&self) -> PrivateKey
[src]impl Serialize for Transaction
[src]
impl Serialize for Transaction
[src]impl StrictDecode for Transaction
[src]
impl StrictDecode for Transaction
[src]strict_encoding_support
only.impl StrictEncode for Transaction
[src]
impl StrictEncode for Transaction
[src]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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,