Struct dubp_documents::transaction::v10::TransactionDocumentV10[][src]

pub struct TransactionDocumentV10 { /* fields omitted */ }

Wrap a Transaction document.

Must be created by parsing a text document or using a builder.

Implementations

impl TransactionDocumentV10[src]

pub fn compact_size_in_lines(&self) -> usize[src]

Compute compact size in lines

pub fn compute_hash(&self) -> Hash[src]

Compute transaction hash

pub fn get_hash_opt(&self) -> Option<Hash>[src]

get transaction hash option

pub fn get_hash(&self) -> Hash[src]

Get transaction hash

pub fn recipients_keys(&self) -> Vec<PublicKey>[src]

pub fn reduce(&mut self)[src]

Lightens the transaction (for example to store it while minimizing the space required) WARNING: do not remove the hash as it's necessary to reverse the transaction !

pub fn verify_comment(comment: &str) -> bool[src]

Verify comment validity

pub fn writable_on(
    &self,
    inputs_written_on: &[u64],
    inputs_scripts: &[WalletScriptV10]
) -> Result<u64, SourceV10NotUnlockableError>
[src]

Indicates from which blockchain timestamp the transaction can be writable.

Trait Implementations

impl Clone for TransactionDocumentV10[src]

impl CompactTextDocument for TransactionDocumentV10[src]

impl Debug for TransactionDocumentV10[src]

impl Default for TransactionDocumentV10[src]

impl<'de> Deserialize<'de> for TransactionDocumentV10[src]

impl Document for TransactionDocumentV10[src]

type PublicKey = PublicKey

Type of the PublicKey used by the document.

impl Eq for TransactionDocumentV10[src]

impl PartialEq<TransactionDocumentV10> for TransactionDocumentV10[src]

impl Serialize for TransactionDocumentV10[src]

impl StructuralEq for TransactionDocumentV10[src]

impl StructuralPartialEq for TransactionDocumentV10[src]

impl TextDocument for TransactionDocumentV10[src]

type CompactTextDocument_ = TransactionDocumentV10

Type of associated compact document.

impl ToStringObject for TransactionDocumentV10[src]

type StringObject = TransactionDocumentV10Stringified

Generated string object

impl<'a> TransactionDocumentTrait<'a> for TransactionDocumentV10[src]

type Address = WalletScriptV10

type Input = TransactionInputV10

type Inputs = &'a [TransactionInputV10]

type InputUnlocks = TransactionInputUnlocksV10

type InputsUnlocks = &'a [TransactionInputUnlocksV10]

type Output = TransactionOutputV10

type Outputs = &'a [TransactionOutputV10]

type PubKey = PublicKey

type RawTx = String

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.